'No game' error?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
ForeverDev
Prole
Posts: 2
Joined: Thu Mar 06, 2014 9:41 pm

'No game' error?

Post 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
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: 'No game' error?

Post by Jasoco »

What OS.

What Löve version.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: 'No game' error?

Post 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
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ForeverDev
Prole
Posts: 2
Joined: Thu Mar 06, 2014 9:41 pm

Re: 'No game' error?

Post 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.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: 'No game' error?

Post by Robin »

What exactly are you dragging on the LÖVE executable?
Help us help you: attach a .love.
harshit
Prole
Posts: 1
Joined: Thu May 29, 2014 9:23 am

Re: 'No game' error?

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests