PSLC & ICTLC LevULup Offering

Crabworld Populate Game - Automatically adding animals at game start.

In this lesson we introduce variables, the for loop and the very special method called a constructor method. We show how to use this constructor method to automatically create multiple animal objects into the CrabWorld game each time the game is started. We also ask students to complete the automatic population of the game with other animals before the next lesson.