Basic Game Objects

  • Arjan Egges


In this chapter, you start organizing the source code of the Painter game a bit more. This is necessary because the source code of a game contains many lines of code. In the previous examples, you began grouping variables over different objects (such as Canvas2D or cannon). In this chapter, you continue structuring your code by using more objects and by splitting the code over separate files.


Ball Position Initialize Method Return Instruction Game World Script File 
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