Making Levels

This week we built a really cool arcade game that incorporates levels

We were introduced to functions in the arcade editor for the first time

We set up a splash screen, this is to show the player instructions or a welcome message

We then created a number of variables to manage the game logic

Our function manages the creation of a new level, a background colour is randomly selected, we reset our item count to 0

Each level has a minimum of 10 items to collect along with whatever level we are on, so for level 1 had 11 items to collect

Once all items are collected, the start level is called again, generating a new level

We then set up the code for the overlap ( our main character moving over the items to collect )

I have also added in some animation for the items

Have a look at the full code below along with testing it in the simulator

Previous
Previous

Turtle Graphics

Next
Next

Reversed Gravity Part 2