Advanced Object and Character Control


In this final chapter of the book, I’ll show you a wide variety of useful techniques you’ll need to know to get started on your own professional-level game design projects:
  • Dragging and dropping objects with the mouse

  • Using easing for smooth motion

  • Controlling game characters with the mouse

  • Moving objects in the direction of their rotation

  • Firing bullets in all directions

  • Using dynamic filters

  • Making objects with the switch statement and the simple factory system

  • Learning basic enemy artificial intelligence (Al): following, running away, and firing bullets in the direction of the player

  • Using a timer

  • Using keyboard-driven spaceship and mouse-driven platform game controls

  • Dispatching events


Collision Detection Document Class Game Design Constructor Method Event Handler 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Rex van der Spuy 2009

Personalised recommendations