https://scratch.mit.edu/projects/928354000/
Instructions:
Keep Jolly Jelly alive for one minute by avoiding all fish – do not let Jolly Jelly touch anything!
1 touch = 1 life lost
3 lives lost = dead
Background by Tartila, some guidance on the fish swimming tutorial by “Learn Scratch With Peter” on YouTube, and various codes learned throughout ENT3952 classes.
Coding the ‘Time’ Timer and ‘Lives’ Timer:
The game must be won within one minute, so I used the Timer code we learned in class, this time adding a prompt to end the game when the Timer reaches 60 seconds. Since the Jolly Jelly’s lives are limited, I input a countdown for each time Jolly Jelly touched another sprite, with a prompt for Jolly Jelly to think, “I’M DEAD” once all lives were depleted along with a prompt to end the game.
Coding the Jellyfish:
I used some of the codes we learned in class such as having the sprite follow the mouse, as well as the code for the jellyfish to respond when touching another sprite. For this game, I made the jellyfish change color when touching another sprite and the ‘Lives’ counter to count down until the game is lost.
Coding the Fish #1-4:
I used some of the code in class to create a base for the first fish to glide but some kept turning upside down when it bounced off the edge. Paired with some tinkering and reviewing the following tutorial on swimming fish, I was able to program each fish successfully. I also added multiple timed size increases for every fish, as well as an “excuse me” thought every time Jolly Jelly touched it. The size increase is to increase difficulty.
Tutorial: https://www.youtube.com/watch?v=C4Tdbm7ODtQ
Coding the Pufferfish:
I used the same code we learned in the Dino Jump for the trees on the pufferfish, except I kept the pufferfish within the frame by bouncing it off the edges. The pufferfish also thinks, “excuse me” when touching Jolly Jelly.
Coding the music and sound effects:
I learned to do this on my own while tinkering in an earlier project. I included two sounds: background music and a bubble sound to create a feeling of being underwater. I also added some sound effects: a losing boing sound and a celebratory win sound.