Scratch Lab #10

Name: Robby Rowell

Period: 7

Assignment: Scratch Lab #10

Lab Overview- Problem 1

For problem 1, we had to remix a project that had been previously made on scratch and make a chart using our data. For problem 2 we had to make a game modeling the movie Gremlin.

My Solution

My solution to problem one was to create a list for foxes and another for rabbits. It resets when the simulation starts and records the fox variable and rabbit variable every second. Each clone dies after a certain number of seconds or reproduces after a certain number of seconds depending on what the variables are set to. The simulation results change each time based on both what the user sets the sliders to and the randomness associated with the clones moving around on the screen. My soluton to problem 2 was to first create a cloud sprite that moved horizontally on the top of the screen and a gremlin sprite that was controlled by the arrow keys and moved horizontally on the bottom of the screen. I then had the clod sprite create clones of itself at random times. The clones fell to the bottom. If they were caught by the gremlin sprite, the a gremlin clone was created and one value was added to the "score" variable. If the gremlin missed, one value was added to the "missed" variable. The game stopped when "missed" is 10.