Slick Forums

Discuss the Slick 2D Library
It is currently Tue May 21, 2019 4:39 am

All times are UTC

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Bug: Phys2d Platformer
PostPosted: Mon Feb 23, 2009 10:01 pm 
User avatar

Joined: Thu Dec 18, 2008 6:07 pm
Posts: 238
Location: Bournemouth, UK
org.newdawn.hoorah.InGameState: Line 180

controlInterval -= totalDelta;

should be
totalDelta -= controlInterval;

controlInterval will keep decreasing until it becomes lower than the value an int can hold, and when it does it becomes a positive value, and the selection statement (line 179 i think)
if (totalDelta > controlInterval) {

return false; so no controls are executed after that point. ;]

Unless I missed something...

- Gwinnell (,
- Game Jolt Moderator

 Post subject:
PostPosted: Tue Feb 24, 2009 11:01 am 
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Thanks for the report, however the platformer is just sample code I released when i was finished playing with it. It doesn't form part of the distribution, infact I'm not even sure it's in source control.


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group