The main loop is now in love.run(), but you can just leave it and it will use a sensible default one.Jasoco wrote:Like how do I do the main loop now?
LÖVE 0.6.0
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: LÖVE 0.6.0
Help us help you: attach a .love.
Re: LÖVE 0.6.0
Is there a replacement for love.system.exit()?
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: LÖVE 0.6.0
love.event.push("q")
Last edited by bartbes on Fri Jan 01, 2010 9:12 pm, edited 1 time in total.
Reason: Thx robin
Reason: Thx robin
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: LÖVE 0.6.0
Make that love.event.push("q")bartbes wrote:love.event.post("q")
Help us help you: attach a .love.
Re: LÖVE 0.6.0
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().
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
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
Any Ideas? I'm on Win XP / GeForce 6200
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: LÖVE 0.6.0
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
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:
Error:
Furthermore, why did the animation module have to go? It was quite useful - are you planning any replacement for it?
Code:
Code: Select all
love.graphics.setFont(love.default_font, 12)
Code: Select all
graphics.lua:34: Incorrect parameter type: expected userdata.
Traceback
[C]: in function 'setFont1'
graphics.lua:34: in function 'setFont'
-
- Party member
- Posts: 215
- Joined: Sun Jan 18, 2009 8:03 pm
Re: LÖVE 0.6.0
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.
If I haven't written anything else, you may assume that my work is released under the LPC License - the LÖVE Community. See http://love2d.org/wiki/index.php?title=LPC_License.
-
- Party member
- Posts: 215
- Joined: Sun Jan 18, 2009 8:03 pm
Re: LÖVE 0.6.0
To use the default font, call the newFont or setFont function without any fontname. E.g. "love.setFont(14)".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:Error:Code: Select all
love.graphics.setFont(love.default_font, 12)
Furthermore, why did the animation module have to go? It was quite useful - are you planning any replacement for it?Code: Select all
graphics.lua:34: Incorrect parameter type: expected userdata. Traceback [C]: in function 'setFont1' graphics.lua:34: in function 'setFont'
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.
If I haven't written anything else, you may assume that my work is released under the LPC License - the LÖVE Community. See http://love2d.org/wiki/index.php?title=LPC_License.
Who is online
Users browsing this forum: Ahrefs [Bot] and 2 guests