Page 1 of 1

'No game' error?

Posted: Thu Mar 06, 2014 9:44 pm
by ForeverDev
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

Re: 'No game' error?

Posted: Thu Mar 06, 2014 10:04 pm
by Jasoco
What OS.

What Löve version.

Re: 'No game' error?

Posted: Thu Mar 06, 2014 10:06 pm
by Nixola
That error should happen when you try to open an invalid .love file or feed LÖVE an invalid path... Do other folders, or .love files (you can find a bunch of them in the Project and Demos section, here's one) work?
EDIT: Yes, probably providing more informations would help too

Re: 'No game' error?

Posted: Fri Mar 07, 2014 2:45 am
by ForeverDev
Operating system: Windows 8
LOVE Version: 0.9.0

Other games are not working with LOVE. I tried re-downloading it but it still didn't work.

Re: 'No game' error?

Posted: Fri Mar 07, 2014 12:50 pm
by Robin
What exactly are you dragging on the LÖVE executable?

Re: 'No game' error?

Posted: Thu May 29, 2014 9:36 am
by harshit
function love.draw()
love.graphics.rectangle("fill". player.x, player.y, 30, 30)
end
it has a syntax error. You've used a dot after fill. use a comma.