0.6.0 Update

General discussion about LÖVE, Lua, game development, puns, and unicorns.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: 0.6.0 Update

Post by TechnoCat »

kikito wrote: After a (pitiful) try to browse the LÖVE source code it seems that newRectangleShape is removed from 0.6.
love.graphics.rectangle( mode, x, y, width, height )
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: 0.6.0 Update

Post by bartbes »

He meant rectangles for physics, not drawing them.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: 0.6.0 Update

Post by kikito »

Exactly - I meant the physics stuff.

The potato docs don't mention any "new*" stuff (newRectangleShape, newCircleShape...) and I could not find references to any of this by browsing the source code - maybe this isn't ported yet, I can't say for sure.
When I write def I mean function.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: 0.6.0 Update

Post by kikito »

Hi again

newRectangleShape does seem to have the same syntax as before. My problem was somewhere else in my code - apologies.
When I write def I mean function.
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: 0.6.0 Update

Post by kikito »

Ok now I think I got one missing thing on 0.6.0

I tried calling body:setVelocity(0,0) on a pysics body and I got a "tried to call a non-existing (nil) function" error.

Regards!
When I write def I mean function.
User avatar
napco
Party member
Posts: 129
Joined: Fri Jun 12, 2009 9:28 pm
Location: Ital... ehm...

Re: 0.6.0 Update

Post by napco »

It looks like love.filesystem.enumerate has been removed... But how can i rewrite a similar function? I've found it very useful to load game resources in automatic, allowing me to drag and drop pgn files to the resource folder without adding a silgle line of code...
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: 0.6.0 Update

Post by rude »

kikito: That function has been changed to setLinearVelocity to conform better with Box2D.

napco: It hasn't been removed.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: 0.6.0 Update

Post by bartbes »

rude wrote: napco: It hasn't been removed.
I added it to potato.
User avatar
napco
Party member
Posts: 129
Joined: Fri Jun 12, 2009 9:28 pm
Location: Ital... ehm...

Re: 0.6.0 Update

Post by napco »

Ok, very well. By the way, potato lacks of informations about "conf.lua" and the new constants names. When are you going to post a "downloadable" version of the potato?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: 0.6.0 Update

Post by bartbes »

Potato lacks a lot of information, it's based on what users enter, so hereby I tell you to start entering stuff in potato!
Post Reply

Who is online

Users browsing this forum: No registered users and 22 guests