Desert Race is a fairly simple 2-person race to the finish. The main concept in this game is setting a game state variable to control the action. In event driven games is important to control the allowable events – like when to start. And we don’t want anyone to cheat by starting before the start signal. Setting up a game state variable, ‘racing’, like a Boolean with 0 (not racing) and 1 (racing) is the concept I was hoping they would take in while making a cool two person game.
Defining a Boolean for game state is the first step to building a Game Loop that programmers use when creating more complex games.
Scratch Wiki also refers to it here: https://wiki.scratch.mit.edu/wiki/Game_Loop.
My fourth graders may not ever get to that level of programming here in Code Club, but it is a powerful idea. I have used this programming technique in (non-Scratch) games I’ve created in the past and found it useful.
I also made a quick version of the project adding a bit of 3D perspective with my Space Race project. The racers (cat and dog) get smaller as they head to be the first to reach the planet.
The students made some nice games. Many customized their Sprites and a couple recorded their own “win” sounds.
This one below has some almost imperceivable pitfalls that send you backwards (the opposite of a booster).
At the end of the day a few students asked to be able to keep working on the Desert Race project for next week -they needed more time and were enjoying the project. I think I’ll let them, but I’ll need another project for those who finished or want to move on. So I asked one of the two girls in the Club what she would like to work on and she said, how about making an ebook. I asked if she meant like an animated story? I’d love to focus on animation more – there are some great techniques to making things look like they are moving – I love Tumbling Santa. Also, I’m thinking I need to show her Bubble103’s Scratch projects. Maybe she wants to make a tutorial (nonfiction ebook). There are a lot of How To projects on the Scratch site. I’m considering these two options for next week.
Also awesome this week was this project:
This student’s race project was lost when Scratch 2.0 offline editor crashed. He was mostly done and he lost all his code. Instead of recreating it, he made this cool project. (It is a bit glitchy, but neat.)