Level 02 Lesson 03 [Creating More Objects]

You have two players moving around the room. Now it’s time to fire stuff at each other! In this lesson you will learn how to create and control instances of new objects.

Resources You Will Use
Grab and open the CheatSheet01.html in the Lv02 folder. It has a bunch of common programming commands that we will use in this level. Printing it out might be a good idea. Keep it close by so that you can refer to it when you are having trouble remember the exact spelling or format of a command.

Part A – Firing Balls with the Keypress Event
Watch the video: 02-03-A
Done File: L02-03-A-Done.gmk


Part B – Destroying Objects
Watch the video:  02-03-B
Done File: L02-03-B-Done.gmk


Challenge 1– Finish Up Player 2 and Ball Destruction
Give player2 the ability to fire their ball2.
When both types of balls hit a wall the ball should be destroyed.
When ball1 hits player2, ball1 is destroyed.
When ball2 hits player1, ball2 is destroyed.

Challenge 1 Solution
Solution video: 02-03-X1Solution
Solution file: L02-03-X1-Done.gmk