The game being made in this chapter is a simple game that has apples and rocks falling down from the sky. In this game, you play as Catty the Catching Cat. Your goal in the game is to catch the apples as they call from the sky, and to avoid the rocks falling from the sky. This movie shows the game in action and explains the mechanics. This game will be built from the beginning in this chapter.
- View Offline
- [Voiceover] Now what we're going to do is take what we've learned in this course so far and apply it to build a game. You can look at the scripts of the game on my screen. I have a cat sprite, an apple sprite, some rocks, and then an apple too that's going to display the score. So, I'm going to run the app, and I'm going to use the keyboard to control the cat and try to catch the apples and dodge the rocks. - [Voiceover] Yum, yum, yum, yum, yum! Yum, yum! - [Voiceover] So, the game can detect when the cat catches an apple, and that increments the score.
And the game can also detect when the cat gets hit by a rock, which stops the game. So, with that said, let's build it!
He starts with demonstrating how to create your first project and gather the artwork (aka sprites) and other assets you'll need to build it. Todd then reviews the prebuilt scripts, the bits of code that control the logic of your Scratch projects, and explains how to use the different script types for different functions, such as animating sprites, responding to events such as button clicks, and comparing values. In chapter 3, he covers costumes, and in chapter 4, he shows how to load and play sounds. Finally, he shows how to put it all together into a complete web game, which you can then share with the Scratch community.
- What is Scratch?
- Creating your first project
- Choosing a backdrop for your application
- Creating sprites (reusable graphics) in Scratch
- Working with scripts: animating objects, responding to events, and checking logic
- Switching sprite costumes
- Changing the appearance of sprites with custom-drawn costumes
- Playing sounds
- Building a game with Scratch