Search found 98 matches

by Mud
Tue Dec 07, 2010 3:30 am
Forum: Support and Development
Topic: Wonder if this is right for me?
Replies: 8
Views: 5038

Re: Wonder if this is right for me?

Twiggy wrote:I was hoping to use Torque 2D but when I saw that it doesn't support real time interactions
What does that mean?
by Mud
Sat Dec 04, 2010 10:04 pm
Forum: Libraries and Tools
Topic: fuzzy love
Replies: 39
Views: 21048

Re: fuzzy love

i made a radix sorting algorithm in lua and in Squirrel to see how much faster the Squirrel arrays where than lua and it was by orders of magnitude If performance is the goal, just use LuaJIT. It smokes nearly everything. there are a number of other things like bit-wise operators, increment, deincr...
by Mud
Sat Dec 04, 2010 8:36 pm
Forum: Libraries and Tools
Topic: fuzzy love
Replies: 39
Views: 21048

Re: fuzzy love

Squirrel has arrays, Lua doesn't. Lua has arrays, it just doesn't use a special language construct for them. If you use a table as an array, internally it is an array. Every table has an array and a hashtable portion (if you never use one portion, it's never even allocated). See the last two lines:...
by Mud
Sat Dec 04, 2010 9:43 am
Forum: Games and Creations
Topic: Squario: A squary survival horror
Replies: 18
Views: 8303

Re: Squario: The squariest platformer in LOVE.

I've messed with the ground code, and it turns out the graphics are offset and the ground has holes. Well, since you were feeling so discouraged , I took a look at it (while waiting for Ubunto to download). Biggest problem: self.body = love.physics.newBody(GetWorld(), p.x, p.y, m, i) self.shape = l...
by Mud
Sat Dec 04, 2010 7:24 am
Forum: Libraries and Tools
Topic: Grid Engine
Replies: 58
Views: 27600

Re: Grid Engine

ZenX2 wrote:I got frustrated with my other projects
Ahhh... :(
by Mud
Fri Dec 03, 2010 7:28 pm
Forum: Support and Development
Topic: Need some help with a weapon
Replies: 8
Views: 7454

Re: Need some help with a weapon

OOP in Lua At a minimum you can use this for basic prototype-based inheritance: local Object = {} function Object:new (o) o = o or {} -- create object if user does not provide one setmetatable(o, self) self.__index = self return o end You can use it something like this: Point = Object:new { x = 0, ...
by Mud
Fri Dec 03, 2010 8:54 am
Forum: Games and Creations
Topic: Squario: A squary survival horror
Replies: 18
Views: 8303

Re: Squario: The squariest platformer in LOVE.

Argh, so close. Anyways, passing self as the first argument doesn't work :| Erm, you can have the version I played with last night. The only change was to drop in my class library (because I didn't feel like debugging the one you had) and fixing the superclass method calls. This got Mr. Squario to ...
by Mud
Thu Dec 02, 2010 9:44 am
Forum: Games and Creations
Topic: Squario: A squary survival horror
Replies: 18
Views: 8303

Re: Squario: The squariest platformer in LOVE.

Player:Think is never being called, only the base class method is. I took a look at the class library and it made me want to punch a baby, so you're on your own there... >.>
by Mud
Thu Dec 02, 2010 5:41 am
Forum: Support and Development
Topic: Images?
Replies: 9
Views: 4161

Re: Images?

zac352 wrote:Lua changed some syntax here...
It has.
by Mud
Wed Dec 01, 2010 8:11 pm
Forum: Games and Creations
Topic: 8-bit Architecture Playhouse Party!
Replies: 7
Views: 4441

Re: 8-bit Architecture Playhouse Party!

Did you forget something?