'No game' error?
Posted: Thu Mar 06, 2014 9:44 pm
My Love has always been working, and I know what I'm doing with Lua. Recently whenever I drag my game onto the Love application, it says 'No game'. I just uninstalled and re-downloaded Love. Does anyone know how I can fix this? I have a basic outline of my game here, I'm pretty sure I'm not doing anything wrong..
Code: Select all
function love.load()
player = {}
player.x = 50
player.y = 50
player.speed = 5
end
function love.update(dt)
if love.keyboard.isDown("left") then
player.x = player.x - player.speed * dt
elseif love.keyboard.isDown("right") then
player.x = player.x + player.speed * dt
end
end
function love.draw()
love.graphics.rectangle("fill". player.x, player.y, 30, 30)
end