Game Development Reference
In-Depth Information
Gl.glPointSize(10.0f);
Gl.glColor3d(0, 0, 0);
_pc.Render();
}
#endregion
}
There is a small class here called PlatformEntity , and this draws a simple red
line box and provides methods to move it about. There is some very simple
cartoon-like physics modeling in the Process loop. The new position for the
entity is calculated and then it's checked to see if the entity has fallen below zero
on the Y axis; if so, it's pushed back up. This is a good starting point to play
around with different control methods, and sprites can be added to give the
scene much more character. Additional collision code needs to be added to
handle free hanging platforms
Final Words
By now, you should not only have some great game ideas, but also know how to
realize these ideas. Remember to start small, create a rough working version as
early as possible, and then refine it. If you follow these steps, you will soon have a
fun game that you are proud of and eager to release into the world! Good luck
and happy coding!
 
 
Search WWH ::




Custom Search