retroluxury/test/main.lua
2015-05-20 20:37:57 -03:00

21 lines
471 B
Lua

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