The project is about a game in scratch about punching the coronavirus. I wrote the code in scratch so coronavirus sprites appear on the screen randomly and the player has to punch them to earn a point. If coronavirus touches the ground you loose a point. Please visit https://scratch.mit.edu/projects/521543927 to play the game
I made this project because inspired by my PE workouts of ninja fighting coronavirus
"Step 1. Creating coronavirus. I used the costume editor from scratch to make the coronavirus image. First I got a Green circle and added some green spikes and then I two lines and added angry face
Step 2 Countdown. We will make a countdown of four seconds for the player to get ready with the following code.First I am going to put the block switch costume to the last one. Then we need to show and then we put the block of repeat four. Inside of repeat four we put next costume and wait one second to show Three… Two… One… Go. then we put hide because we don’t want to show the numbers anymore after the countdown is done. Now we’re ready to start game so we will send the message start game
Step 3 Making coronavirus’s brother and sister. We will make clones of coronavirus with this following code. When the code receives the message start game then we have to hide the original coronavirus sprite. Then we will reset the variable score to 0. Then we will add the forever loop. Inside the forever Loop we will tell the coronavirus to go from any position from the left side of the screen to the right side of the screen and we will tell it to start from the top. Then we will make a duplicate of the coronavirus. Then we will wait 0.9 seconds.
Step 4 scoring. First we will start as a clone. Then we will show our clones. Then we are adding the forever loop. Inside the forever loop we will make the coronavirus fall down with Y by -10 but it won’t go like a robot because it is forever so it will go smoothly down. The code will be checking if the video motion is greater than 50 on the coronavirusIf it is true then we play the sound crunch then we will change the color effect by 25 and change the score by one, and delete the clone. We are checking if the coronavirus touches the ground if it is true then the score will be -1 point and then the program deletes the clone.
I found out that scratch could be used to make interactive animations and games.
My project is important because kids can use it to workout at home in a fun way and I hope it inspires other kids to make more projects on scratch.
I could have made better animation of coronavirus appearance and when it disappears. I can improve my project by making more levels, increasing difficulty and adding obstacles to dodge.
"I got the idea from the following PE workout.
https://www.youtube.com/watch?v=AL-7GGNploo"
This is a great project! You used technology and mathematics skills to make a really fun activity. Great job! I look forward to playing it with my own kids!