retroluxury/test/main.lua

21 lines
471 B
Lua
Raw Normal View History

2015-05-20 04:18:39 +00:00
rl.create( 400, 300 )
local tileset = rl.loadTileSet( 'city.tls' )
local imageset = rl.loadImageSet( 'city.ims' )
local map = rl.loadMap( 'city.map', tileset, imageset )
2015-05-20 23:37:57 +00:00
local music = rl.playMusic( 'sketch008.ogg', true, function( voice, reason ) print( reason ) end )
--local tick = rl.loadSound( 'tick.pcm', false )
--tick:play()
2015-05-20 04:18:39 +00:00
local pad = {}
return function()
rl.getInputState( 1, pad )
map:blit0( 0, 0 )
map:blitn( 1, 0, 0 )
rl.presentVideo()
end