80 likes | 279 Views
DRAGON HUNT. The greatest FPS ever made… During this period. Dragon Hunt. Dragon Hunt has two backgrounds It has three different sprites It has two variables It broadcasts two messages It has one additional sound It uses the mouse and spacebar. Setup. For setup we will do the following:
E N D
DRAGON HUNT The greatest FPS ever made… During this period.
Dragon Hunt • Dragon Hunt has two backgrounds • It has three different sprites • It has two variables • It broadcasts two messages • It has one additional sound • It uses the mouse and spacebar
Setup For setup we will do the following: Add a dragon Add a bat Add an outdoor image Create a game over screen Draw a crosshair Draw a circle around the Try Again button Add the variables timer and score
Background It is time to learn about broadcasting. Broadcasting allows us to execute commands that we create. We want to create two commands: newGame and GameOver Follow the code on the right to start the time and create a new game.
btnStart The start button is easy to complete. All we have to do is make sure we shot it on gameOver and hide it on newGame.
Crosshair The crosshair will be shown all the time. On newGame we simply display the pointer and forever go to the mouse-pointer. When we receive the gameOver broadcast we will check to make sure it is touching the start button and the spacebar is present to create a new game.
Dragon Our dragon is the most complicated piece of the puzzle. On gameOver we hide and wait before hiding again? Why? We start by making our dragon travel and change costumes before we create the commands for shooting and touching the crosshair.
Bats, bugs, and other things… Now is the time to copy the dragon code onto another flying creature. Try to experiment with making it turn left, different movement patterns, or even colors. Make this game unique by using your own art to create an amazing shooter of your own.