Search found 7 matches
- Mon Jun 18, 2012 9:22 pm
- Forum: Support and Development
- Topic: YOU CANNOT FATHOM THE DEPTH OF MY FRUSTRATION.
- Replies: 4
- Views: 2547
Re: YOU CANNOT FATHOM THE DEPTH OF MY FRUSTRATION.
Your problem is the use of math.floor instead of math.ceil... remember, the y axis is inverted, so the "bottom" is the mathematical ceiling. if mapCollide(player.x + 1, player.y + player.h + k*j) or mapCollide(player.x + player.w - 1, player.y + player.h + k*j) then player.y = math.ceil(pl...
- Mon Jun 18, 2012 3:36 pm
- Forum: Support and Development
- Topic: How to get rid of the pig!
- Replies: 4
- Views: 3596
Re: How to get rid of the pig!
Or you can create a shortcut to love.exe, and set the Starting Working Directory (forgot what it's really called like, but it's in the the shortcut's properties dialog) to your game folder. The shortcut can then be placed anywhere.
- Mon Jun 18, 2012 3:27 pm
- Forum: Support and Development
- Topic: world:destroy() => "A body has escaped Memoizer!"
- Replies: 8
- Views: 5806
Re: world:destroy() => "A body has escaped Memoizer!"
Huh... that does indeed seem to fix it. I tried a few other things (like calling collectgarbage() right before :destroy(), or removing the 'contact' argument from collisionBeginContact), but apparently only your suggestion works.
What a peculiar bug. Anyway, many thanks!
What a peculiar bug. Anyway, many thanks!
- Mon Jun 18, 2012 2:20 pm
- Forum: Support and Development
- Topic: world:destroy() => "A body has escaped Memoizer!"
- Replies: 8
- Views: 5806
world:destroy() => "A body has escaped Memoizer!"
Code: Select all
69 if world then
70 world:destroy()
71 end
Is this an internal error, or one on my part? And can I avoid it somehow?
- Thu May 10, 2012 2:07 pm
- Forum: Support and Development
- Topic: Questions on printf and love.thread [solved]
- Replies: 3
- Views: 2580
Re: Questions on printf and love.thread
Oh, wow... that's perfect. I was apparently searching in the wrong place (i.e. love.font, which has nothing). Many thanks!
- Thu May 10, 2012 1:12 pm
- Forum: Support and Development
- Topic: Questions on printf and love.thread [solved]
- Replies: 3
- Views: 2580
Questions on printf and love.thread [solved]
Question 1 I have a little info box in which various things print information. The height of the box is variable... the width is not, so I use love.graphics.printf's wrapping feature. So, question: how can I figure out the total height of the box if I already know what text is going to be shown, bu...
- Sun May 06, 2012 2:56 pm
- Forum: Libraries and Tools
- Topic: Deterministic network physics example
- Replies: 1
- Views: 7488
Deterministic network physics example
Yup. Just what the title says. There's no real game yet in the example, just the basic stuff I needed to put in to test all the tech. The idea: every client sends out the actions it wants to do to the server; the server schedules commands from all players into 'ticks'; the clients receive tick infor...