Presentation is loading. Please wait.

Presentation is loading. Please wait.

By Mr. Putnam. In Catfall, the goal of the game is to touch the falling cats with the mouse. Every time you touch a cat, your score goes up by one point.

Similar presentations


Presentation on theme: "By Mr. Putnam. In Catfall, the goal of the game is to touch the falling cats with the mouse. Every time you touch a cat, your score goes up by one point."— Presentation transcript:

1 By Mr. Putnam

2 In Catfall, the goal of the game is to touch the falling cats with the mouse. Every time you touch a cat, your score goes up by one point and the cat gets a little faster.

3 This game is very easy to play. Simply hit the green flag to begin and start touching the falling cats. Play until the cats are too fast for you and your mousing skills. If you do not touch a cat before it hits the ground, then the cats win.

4 The code for Catfall is pretty simple because the whole game is only 1 block of code.

5 When the flag is clicked, I first set the points to zero and the speed to -1. The backdrop is called game (that is the boardwalk picture) The Cat starts at x=-180 and y=180 I hide the cat for 1 second to let the player get ready, and then the cat shows up.

6 Here is the forever loop… Move the cat down 1 (speed is -1) If the cat hits the bottom, stop the game And go to the lose background If you touch the cat with the mouse pointer, then send the cat back to the top and give it a random x position. Also, speed the cat up by 1 and change your score by 1. That’s it!

7 To win the game… Wait, you can only lose. This is what losing looks like!


Download ppt "By Mr. Putnam. In Catfall, the goal of the game is to touch the falling cats with the mouse. Every time you touch a cat, your score goes up by one point."

Similar presentations


Ads by Google