Page 5 of 6
Re: LÖVE 0.6.0
Posted: Thu Dec 31, 2009 8:13 am
by Robin
Jasoco wrote:Like how do I do the main loop now?
The main loop is now in love.run(), but you can just leave it and it will use a sensible default one.
Re: LÖVE 0.6.0
Posted: Fri Jan 01, 2010 8:26 pm
by egli
Is there a replacement for love.system.exit()?
Re: LÖVE 0.6.0
Posted: Fri Jan 01, 2010 8:28 pm
by bartbes
love.event.push("q")
Re: LÖVE 0.6.0
Posted: Fri Jan 01, 2010 8:42 pm
by Robin
bartbes wrote:love.event.post("q")
Make that love.event.
push("q")
Re: LÖVE 0.6.0
Posted: Fri Jan 01, 2010 8:49 pm
by egli
Thanks bartbes, robin.
Continuing to port my code to 0.6.0 and I'm having a problem where love.graphics.toggleFullscreen() will put me in fullscreen but not take me back out (but it's still returning true). I'm using OS X. Anyone else having this problem?
For now I've just resorted to using love.graphics.setMode().
Re: LÖVE 0.6.0
Posted: Sat Jan 02, 2010 10:41 pm
by radian
For me it's flickering and showing the window behind. The betas weren't doing that.
Any Ideas? I'm on Win XP / GeForce 6200
Re: LÖVE 0.6.0
Posted: Sun Jan 03, 2010 11:00 am
by bartbes
Looking at the shortlog I can't explain why it would be any different from one of the pre-release builds.
Re: LÖVE 0.6.0
Posted: Sun Jan 03, 2010 1:52 pm
by Henko
Was anything changed with the fonts? The following line used to work quite well, but since I upgraded to 0.6, löve doesn't want to execute it
Code:
Code: Select all
love.graphics.setFont(love.default_font, 12)
Error:
Code: Select all
graphics.lua:34: Incorrect parameter type: expected userdata.
Traceback
[C]: in function 'setFont1'
graphics.lua:34: in function 'setFont'
Furthermore, why did the animation module have to go? It was quite useful - are you planning any replacement for it?
Re: LÖVE 0.6.0
Posted: Sun Jan 03, 2010 3:13 pm
by osuf oboys
Some more changes documented here:
http://love2d.org/wiki/index.php?title=Version_0.6.0. It is however not clear that there are not also planned features of revisions.
Re: LÖVE 0.6.0
Posted: Sun Jan 03, 2010 3:16 pm
by osuf oboys
Henko wrote:Was anything changed with the fonts? The following line used to work quite well, but since I upgraded to 0.6, löve doesn't want to execute it
Code:
Code: Select all
love.graphics.setFont(love.default_font, 12)
Error:
Code: Select all
graphics.lua:34: Incorrect parameter type: expected userdata.
Traceback
[C]: in function 'setFont1'
graphics.lua:34: in function 'setFont'
Furthermore, why did the animation module have to go? It was quite useful - are you planning any replacement for it?
To use the default font, call the newFont or setFont function without any fontname. E.g. "love.setFont(14)".
Note that all constants have been replaced by strings. Instead of using, say, love.key_left, just use "left".
Furthermore, it is very bad to use setFont without a loaded font object. This will use up new memory each frame. See the Font tutorial at
http://love2d.org/wiki/index.php?title= ... s_and_Text. Regarding animations, see
http://love2d.org/forum/viewtopic.php?f=5&t=948#p9409.