That Blue Square Thing

Scratch Programming - Maths Game

This was my son's homework. We developed it together based on some examples we found on the Scratch website.

It's a simple Maths game which can be easily adapted. I've added my version at the bottom which adds another little wrinkle into the game.

Code iconDownload his version of the maths game - you may need to right click and Save as to save the game to your computer - but in IE it seems to prefer a left click...

Note that this a Scratch 2 project. It needs version 2 of Scratch to work!

He produced some documentation to show how the code works. This is a good way to prove that you understand your code and will help you next time you want to make something similar - or even just something that uses a similar idea.

PDF iconThe Maths Game Documentation - a general documentation file

PDF iconCat Script - annotations showing how the Cat works

PDF iconDuck Script - annotations showing how the Duck works

PDF iconBackdrop Script - annotations showing how the background scripts work. This is the bit that asks the questions and is a little more complex.

Documentation like this is a good way to make sure you learn how to write Scratch code more effectively!

My version

I produced my version of the game at the same time. Mine has some things that are better in it but I didn't bother with some of the other elements that he worked out.

In particular mine uses a timer for each question. This adds a layer of complexity to the code - but it was interesting to see how a timer would work. I haven't documented my code yet, but you might be able to figure out how it works.

Code iconDownload my version of the maths game - you may need to right click and Save as to save the game to your computer - but in IE it seems to prefer a left click...

Note that this a Scratch 2 project. It needs version 2 of Scratch to work!

Using Scratch

Scratch is available free on the web without having to log in or download anything.

There are basic instructions on the my first Scratch page.

> Start using Scratch on the webexternal link icon