Search found 3091 matches

by kikito
Mon Nov 09, 2009 11:20 pm
Forum: Libraries and Tools
Topic: PÄSSION: object-oriented LÖVE
Replies: 90
Views: 20739

Re: PÄSSION: object-oriented LÖVE

Ok I got it working with 0.6! A couple notes: Since images are not "centered" any more on 0.6, I had to add some setCenter and getCenter helper methods. I'm still not satisfied with the results (the borders are not exactly "pixel-perfect" with the images), but I believe I'll leave them as they are n...
by kikito
Mon Nov 09, 2009 11:06 pm
Forum: General
Topic: 0.6.0 Update
Replies: 221
Views: 35528

Re: 0.6.0 Update

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!
by kikito
Mon Nov 09, 2009 12:01 am
Forum: General
Topic: 0.6.0 Update
Replies: 221
Views: 35528

Re: 0.6.0 Update

Hi again

newRectangleShape does seem to have the same syntax as before. My problem was somewhere else in my code - apologies.
by kikito
Sun Nov 08, 2009 9:34 pm
Forum: General
Topic: 0.6.0 Update
Replies: 221
Views: 35528

Re: 0.6.0 Update

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.
by kikito
Sun Nov 08, 2009 6:10 pm
Forum: General
Topic: 0.6.0 Update
Replies: 221
Views: 35528

Re: 0.6.0 Update

Hi everyone, I'm not sure if this is the right place to start asking about specifics of 0.6 - please move it to other place if not. How do we do rectangular shapes in 0.6? In order words, what would be the equivalent of this: shape = love.physics.newRectangleShape(x, y, w, h) After a (pitiful) try t...
by kikito
Sat Nov 07, 2009 8:08 pm
Forum: Libraries and Tools
Topic: PÄSSION: object-oriented LÖVE
Replies: 90
Views: 20739

Re: PÄSSION: object-oriented LÖVE

Hi Technocat, Again, thanks for testing. If you are interested, I based my "super()" implementation on one of the most recent changes in ObjectLua( http://lua-users.org/wiki/ObjectLua ) - a lua OO lib for grown-ups. I really don't have a clear idea why the balls stop colliding after time. The the ac...
by kikito
Sat Nov 07, 2009 12:22 pm
Forum: Libraries and Tools
Topic: PÄSSION: object-oriented LÖVE
Replies: 90
Views: 20739

Re: PÄSSION: object-oriented LÖVE

Hi technocat,

Thank you for spotting this.

I didn't build the zip file correctly (I left the top folder - this is what you get for progamming at 2 in the morning). I've corrected this now.
by kikito
Sat Nov 07, 2009 1:33 am
Forum: Libraries and Tools
Topic: PÄSSION: object-oriented LÖVE
Replies: 90
Views: 20739

PÄSSION: object-oriented LÖVE

Hi everyone, For the last couple of months I've been toying with the idea of adding object oriented functionality to LÖVE. I've developed one (still very experimental!) library called PÄSSION (passion in the code). Its main features are: There's an Actor class Actors can have an associated image and...
by kikito
Fri Oct 09, 2009 3:41 pm
Forum: Support and Development
Topic: Modules in Löve
Replies: 9
Views: 2281

Re: Modules in Löve

Hey guys, Thanks for your input. However, you didn't tell me anything I didn't already know. What I need are the details. For example: What should Iwrite on main.lua? require 'package'? 'package.module1'? or love.filesystem.require something? Should I use Can I use "module" on my module files? If so...
by kikito
Thu Oct 08, 2009 8:42 pm
Forum: Support and Development
Topic: Modules in Löve
Replies: 9
Views: 2281

Modules in Löve

Hello fellow lövers! I'd like to develop something on LÖVE, but I'd be much more comfortable if I was able to split my lua code on several files. A folder would actually be nice, too. "Vanilla" LUA offers "require" and "module" functions for organizing your code - what is the nearest equivalent in L...