Dice App Project

In these lessons you will learn to create a dice app using Scratch. The first lesson is an introduction. It can be used on its own or as part of the compete project. The second lesson demonstrates how to create your own dice app images.

The remaining five lessons take the project to the next level. You will update the code to include a button. The enhancements include more animation and sound effects.

 In this lesson, we are creating a dice game. The purpose of the game is to teach two concepts. Dice games are considered a form of random number generator. This random number generator is useful when teaching basic concepts in probability. The second concept is of course coding. We will spend the majoring of our time coding.

In this lesson we create images for the dice app.


Enhanced Dice App

In this lesson, we are adding a button to trigger the animation. We are also organizing the code to develop a more sophisticated app. Our Code should always be as simple as it can be. This reduces the number of errors possible and makes debugging our code much easier. The more complex the app the more we need to keep our code simple and organized

We are moving over to our sprites and adding basic animation. The dice will spin and change face values as they spin. We will return to the button code and include a variable to set the rotation angle.

 

In this lesson, we add sound. The sound will simulate dice clicking against one another or onto a surface. We will use one of the sound effects available in the Scratch development environment.

In this lesson, we will add some visual effects to the animation. There are some effects for images that distort and colorize sprites. You will learn how to apply any of the effects to the sprite to add some visual appeal.

 

In this fifth lesson, we are going to add to our exiting animation. I want to simulate what the dice might look like if they are thrown and are flying toward the stage.