Page 1 of 1

love.system

Posted: Sat Dec 26, 2009 6:11 pm
by dbltnk
So - if love.system has beed removed, what doI have to call to get those functions working again?

Code: Select all

function love.keypressed(key)
	--exit the game when ESC is pressed
	if key == love.key_escape then
		love.system.exit()
	end
	--restart the game when R is presses
	if key == love.key_r then
		love.system.restart()
	end	
end

Re: love.system

Posted: Sat Dec 26, 2009 7:01 pm
by bmelts
love.system.exit() is now love.event.push('q'). There is no equivalent for love.system.restart(); that functionality has been removed.

Re: love.system

Posted: Sat Dec 26, 2009 7:30 pm
by dbltnk
Thanks for the info, anjo. Looks like there are quite some nasty surprises in the 0.6.0-changelog. The "image size must be a power of 2" thing also had me spinning some time until I found out where the error was. =D

Re: love.system

Posted: Sat Dec 26, 2009 8:45 pm
by bartbes
There is a function posted on the forums which can pad the images for you.

Re: love.system

Posted: Sun Dec 27, 2009 1:12 am
by bmelts