Build your own arcade game


Create a 2-D arcade game for shooting targets --in this case, flying iPhones. You'll learn how to animate objects with Clock. Timer event and react to events like two objects colliding.

 
screenshot
Scan this QR code to download the app

Drag two ImageSprites into the Canvas and set their Image property to picture files. Then add a Clock component and move the bullet on the Timer event.

Looks best in full screen.

On the Shooter.Touched, enable the Clock.TimerEnabled

Looks best in full screen.

Set the visibility of bullet so it appears on Shooter.Touched and disappears when hits top edige.

Looks best in full screen.

Add two buttons and move the shooter appropriately when each is clicked.

Looks best in full screen.

Drag in another ImageSprite and set up a label for score. On the CollidedWith event, add a point

Looks best in full screen.

Code the Target.EdgeReached event and make the bullet invisible as soon as it hits target.

Looks best in full screen.