Tuesday, November 25, 2014

Work Completed

The goal was:
Navigation and Testing

Things seem to be in order. I can navigate the game freely without any issues. In the process, I ended up moving a lot of GUI buttons around and creating a GUI_Constants class so there are some global constant reference coordinates for buttons.

A few nights ago while falling asleep I was deep in thought about physics and Entity's update(). I thought back to creating animations in Adobe Flash Professional and the coordinates of an object in the first frame of an animation. I realized the section for calculating speed in update() should go after the section that updates the position. I may be wrong here but I believe the frame an entity is added to the world also runs update(). If so, that means an entity calculating speed first will not start at the coordinates you specify it to start at. It will start at your specified starting coordinates plus the value of gravity.

No comments:

Post a Comment