Incoming | Creating the game objects: earth

  1. In the assets panel, in the 'main' folder, double click, 'main.collection'.
  2. In the outline panel, right click, 'Collection' and select, 'Add game object'.

Add game object

  1. In the properties panel, change the 'Id' of the game object to be, 'earth'.
  2. In the properties panel, change the 'Position' attributes to be: X: 480, Y: 320. This will put the game object in the middle of the screen.
  3. In the outline panel, right click the 'earth' game object and select, 'Add Component', 'Sprite'.

Add sprite

  1. In the properties panel, change the 'Image' property to, '/main/graphics.atlas' (use the three dots icon to make this easier).
  2. In the properties panel, change the 'Default Animation' property to, 'earth'.
  3. Save the changes by pressing CTRL-S or 'File', 'Save All'.
  4. Run the program by pressing F5 or choosing, 'Debug', 'Start / Attach' from the menu bar.
  5. Run

If everything is working you should see the earth rotating in the middle of the screen. While we are working on the earth object, now is a good time to create the collision window so we can use messages later to know when a comet has hit the earth. Stage 3b >