1 / 10

Shooting Arcade

Shooting Arcade. A Scratch tutorial.

gili
Download Presentation

Shooting Arcade

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Shooting Arcade A Scratch tutorial

  2. Description: You have 6 bullets to shoot at 2 targets. Every time you hit any of them you get two extra bullets but the targets get 10% smaller every time you hit them.Once both of them become less than 10% of their original size – you win, otherwise – game over!

  3. Variables • Bullets – start with 6 • Score – starts with 0

  4. Sprites • Aim • Flash • Target1 • Target2 • gameover

  5. Aim is controlled by the mouse The “forever” block controls the rest of the program Aim follows the mouse When the mouse button is pressed a signal is sent to Targets, if they are touching Aim they are “shot” When all bullets are gone – Game over! When both targets become tiny – you win!

  6. Target1 runs around and gets shot at That starts the game and initialises all settings Try different initial sizes to make the game interesting Randomly glides around the screen If less than 10% in size – goes to lower corner, out of the way and stops its movement by halting its script When receive a signal that a shot has been fired, checks if was touching the Aim in the moment of the shot.

  7. Flash follows the Aim and appears only for short moments of the shots fired. • Two blocks in the Flash area • The first one initialises the size to 100% and makes the flash normally invisible • It also turns on the “forever” block to follow wherever the Aim is • The second one makes the Flash appear and Shrink 10 time.

  8. Gameover message • Invisible at the start of the game • (Ghost=100% is invisible) • Then made visible at the end. • (Ghost=0% is visible)

  9. Extension activities: • Put more targets • Put Trees and other objects behind which the Targets can hide (how can you program that?) • Also, you will notice that it is very easy to lose all bullets in one go, can we fix that?

More Related