1. lets start. first your main sprite, either choose a

4
ASTROIDS Planner/game guide Name_________________________________ You are going to design you own game inspired by Astroids, a classic arcade game from the late 70’s. You game can have any theme you like, it can be space like the original and Mrs. Coleman example at https://scratch.mit.edu/projects/58760202/ or something totally different. You only need to include the elements of, a main sprite that can shoot (lazers, lightening bolts, balls..whatever you think of!) Obstacles that are moving randomly and if collide with your sprite end the game, lose a point or a life. Where does you game take place? What will your backdrop look like? ________________________________________________________________________________ ________________________________________________________________________________ Your main sprite?__________________________________________________________________ The falling obstacles?_______________________________________________________________ Any extra items or ideas_____________________________________________________________ 1. Lets start. First your main sprite, either choose a sprite from the Scratch library or use the paint editor to draw you own. Delete the Scratch cat if you will not be using him in your game.

Upload: others

Post on 29-Mar-2022

3 views

Category:

Documents


0 download

TRANSCRIPT

ASTROIDS Planner/game guide! Name_________________________________!!You are going to design you own game inspired by Astroids, a classic arcade game from the late 70’s. !!You game can have any theme you like, it can be space like the original and Mrs. Coleman example at https://scratch.mit.edu/projects/58760202/ or something totally different. You only need to include the elements of, a main sprite that can shoot (lazers, lightening bolts, balls..whatever you think of!) Obstacles that are moving randomly and if collide with your sprite end the game, lose a point or a life. !!Where does you game take place? What will your backdrop look like?!!________________________________________________________________________________!!________________________________________________________________________________!!!Your main sprite?__________________________________________________________________!!!The falling obstacles?_______________________________________________________________!!!Any extra items or ideas_____________________________________________________________!!!!!1. Lets start. First your main sprite, either choose a sprite from the Scratch library or use the paint editor to draw you own. Delete the Scratch cat if you will not be using him in your game.!!

2. Lets make your ship interactive, so the player can move it around the screen. !

!!!!!!!!!!!!!!3. Now for your astroids (or falling objects of your choice) Again either choose from the Scratch Library or paint you own in the editor. !!4. Time for a little more coding. Lets get your obstacles falling randomly. Make sure to select your obstacle sprite in the sprite list !!

Add this scripts, it tells the sprite to move in the direction of the arrows. You may want to play with the number of steps to get you sprite to move at the speed you like. !!Make sure that you have your sprite selected it from the sprite list

You will use cloning to create the effect of multiple sprites. This script hides the original sprite and at random time intervals will make a clone of itself.

This script randomly chooses a starting point along the X axis for the clone and choose a random time glide to random spot on the X axis. You will note that the Y axis is 180 for the start and -180 got the end. This has the clone sprites traveling vertically down the stage. If you would like the sprites to travel horizontally across the stage, you would have the y coordinate be chosen randomly and the X axis would be 240 and -240

5. Give you main sprite a way to destroy the astroids by making another sprite that will be shot out of your main sprite. Again either choose from the Scratch Library or paint your own in the editor.!!!!!!!!!!!!!6. Select the Astroid(falling object) from your sprite list and add this script !!!!!!!!!!!!!7. Test out what you done so far. If all is working as expected lets get a backdrop. Select the stage and either choose to from the Scratch Library or paint your own.

Add this script to this new sprite.!!This scripts tells the laser(or whatever you choose to shoot) when spacebar is pressed to go to the main sprite and travel up the Y axis until it reaches the top or if it touches your astroids(or the falling objects of your choice) it then hides until the space bar is pushed again.

laser

Congrats! You now should have a working Astroid inspired game. But you can make this game even more fun and challenges.!!Here are some additional scripts and ideas that you may want to incorporate in your game. !!!How about adding a score? You will need a variable to do that!!!!!!!!!!!!!!!!!!!!You can make a TIMER in your game, using this script!!!!!!!!!!!See Mrs. Coleman example for other enhancements you can code in your game.!

https://scratch.mit.edu/projects/58760202/

Select the Data Blocks

Click on the “MAKE A VARIABLE BLOCK”

This window will open

Name the variable “SCORE”

You now have Score blocks that you can use in your game

Add the CHANGE SCORE BY 1 block to your astroid script

Score