39 lines
705 B
Lua
39 lines
705 B
Lua
local love = assert( love )
|
|
local player = require( "player" )
|
|
local settings = require( "settings" )
|
|
local t = {}
|
|
|
|
function t.play()
|
|
local scene = require( "scene" )
|
|
return scene.load( t )
|
|
end
|
|
|
|
function t.draw()
|
|
love.graphics.setScissor( )
|
|
love.graphics.push( "transform" )
|
|
love.graphics.scale( love.graphics.getWidth(), love.graphics.getHeight() )
|
|
love.graphics.rectangle( "fill", player.x, player.y, 6, 6 )
|
|
love.graphics.pop()
|
|
end
|
|
|
|
function t.update( dt )
|
|
|
|
end
|
|
|
|
function t.mousepressed( x, y, button, isTouch, presses )
|
|
|
|
end
|
|
|
|
function t.keypressed( key, code, isrepeat )
|
|
|
|
end
|
|
|
|
function t.keyreleased( key, code )
|
|
|
|
end
|
|
|
|
function t.mousemoved( x, y, dx, dy, isTouch )
|
|
|
|
end
|
|
|
|
return t |