LÖVE 0.6.0

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: LÖVE 0.6.0

Post 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.
Help us help you: attach a .love.
User avatar
egli
Prole
Posts: 2
Joined: Fri Jan 01, 2010 8:24 pm
Contact:

Re: LÖVE 0.6.0

Post by egli »

Is there a replacement for love.system.exit()?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: LÖVE 0.6.0

Post by bartbes »

love.event.push("q")
Last edited by bartbes on Fri Jan 01, 2010 9:12 pm, edited 1 time in total.
Reason: Thx robin
User avatar
Robin
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands
Contact:

Re: LÖVE 0.6.0

Post by Robin »

bartbes wrote:love.event.post("q")
Make that love.event.push("q")
Help us help you: attach a .love.
User avatar
egli
Prole
Posts: 2
Joined: Fri Jan 01, 2010 8:24 pm
Contact:

Re: LÖVE 0.6.0

Post 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().
User avatar
radian
Prole
Posts: 1
Joined: Thu Dec 17, 2009 11:53 pm

Re: LÖVE 0.6.0

Post 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
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: LÖVE 0.6.0

Post by bartbes »

Looking at the shortlog I can't explain why it would be any different from one of the pre-release builds.
Henko
Prole
Posts: 9
Joined: Sun Jan 03, 2010 12:19 pm
Location: Wyk/Föhr, Germany
Contact:

Re: LÖVE 0.6.0

Post 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?
osuf oboys
Party member
Posts: 215
Joined: Sun Jan 18, 2009 8:03 pm

Re: LÖVE 0.6.0

Post 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.
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.
osuf oboys
Party member
Posts: 215
Joined: Sun Jan 18, 2009 8:03 pm

Re: LÖVE 0.6.0

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

Who is online

Users browsing this forum: No registered users and 163 guests