Wednesday
Creating Game in Scratch - Feeding a Shark
Let us create a game in Scratch. This game has a Shark in it. As you move your mouse pointer across the screen, the shark seems to follow the pointer. There are several sea creatures and fish appearing randomly on the screen. When the shark touches a fish, the fish disappears and the shark grows in size. It is a small growth. But after some time you will notice it growing. After growing a certain amount, a message displays that the shark is not more hungry, and the game is over.
Let me explain how to create this game.
I will explain the basic of this game, you can add extras later.
I have used a blue colored sprite as a background, an image of a shark and a small fish.
The background sprite is enlarged and it moves with the mouse movement, while the shark stays in the middle. This creates the effect that the shark is moving. The fish also moves in the same way as the background sprite. In the same way all the background images move.
You can look at the coding by clicking on "See Inside" button on this link
https://scratch.mit.edu/projects/111683962/
Subscribe to:
Posts (Atom)
Featured Post
Creating Games in Scratch for ICSE Class 6
An Introduction to Creating Games in Scratch for ICSE Class 6 Hello friends, I hope you have already read the previous post on An Int...
-
ICSE Class 5 Computer Studies This lesson will give students a brief introduction to Scratch programming. I am using Scratch3...
-
In this hour of code exercise "Code with Anna and Elsa" you will learn to draw different geomoetric shapes on ice. There are a ...
-
This blog post is created to support the students taking up the Code Studio courses on Code.org. I have tried to create an answer sheet for ...