Colors and Collisions

  • Arjan Egges


By now, you’ve implemented quite a large part of the Painter game. You’ve seen how to define game object classes by using the prototype mechanism. By using these classes, you gain more control over how game objects are structured and how you can create game objects of a certain type. You separate these class definitions over different files. That way, when you need a cannon or a ball with the same behavior in a future game you’re working on, you can simply copy these files and create instances of these game objects in your game.


Color Component Current Color Member Variable Collision Check Ball Class 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Arjan Egges 2014

Authors and Affiliations

  • Arjan Egges
    • 1
  1. 1.UtrechtThe Netherlands

Personalised recommendations