Sombrero Clicker Game

This is a small game I put together for lesson 3 of Code.org App Design. The goal of the game is to click the sombrero without clicking the background. The Hard difficulty features a number of fake hats, which also result in a game over, similarly to clicking the background. A link to the game can be found below.

https://studio.code.org/projects/applab/NcQbbBJ09-QWuOoDASm5g_gN2wFFad3AzFRdj9_oPbQ

Menu Screen

CS-Principles

This project creates a digital scene including trees, clouds, a mountain background, and scattered birds. There is a random amount of trees, birds, and clouds generated every time, which means the program is normally different each time it is run. The clouds also turn a different shade of white or grey each time, as the color is also controlled by a random number. A link to the project is below.

https://studio.code.org/s/csp3-2019/stage/10/puzzle/4

A small snippet of the code, note an outcome of the program is shown.

Snowman Race

snowmanRace

In this project a snowman and snowwoman race to the finish line. The amount the snowmen move each turn is randomized within a certain threshold, as is the amount they melt. A random variable is used to determine who will move more and another random number is used to determine how much each will move. The snowmen also slowly melt as the race progresses, as snowmen do not belong in non-winter weather. The winner of the race will exclaim “I won!” and the audience will cheer.