## DEV Community

Mince

Posted on • Updated on

# I MADE A GAME ๐ BUT IN SCRATCH ๐ซจ

Scratch, the drag and drop programming language developed at the MIT for little children below 10 years. Well well well, today that is going to be my challenge to create a game in scratch. First things guys, scratch has no APIS, LIBRARIES, NPM PACKAGES AND MORE IMPORTANTLY you can play your game only inside scratch. You cannot export your project. Well, that never stopped me. The first thing I needed was a thought.

## IDEA ๐ก

I needed a good enough idea so that I can build upon it. I recently watched this netflix series, ALL OF US ARE DEAD. I thought, WHY NOT.

So I got my idea. I will be making a zombie shooter game

## PLAYER

I gotta get the player in order to start. Before starting to dive inside scratch. I watched GRIFFPATCH, ZONXSCRATCH AND SHIFTCLICKLEARN channel videos. They were sincerely useful guys. I thought I want a nice circle as a player. So, I drew out a simple yellow circle with eyes and not mouth. I got 5 costumes an idle one and one for every movment. I gave a smooth movment. Thanks to zonxscratch. Next up I needed a gun

## Gun

I simply made a gun using some geometrical figures. (* secret: I am good in geometry but bad in algebra *). Then I used the go to block to go to the player in a forever game loop. They I made it like this so that it would always point towards the mouse pointer. After all this I took a good night's rest and started day 2 freshly

## Bullet

I made a simple bullet, which in my sense looks good. I keep it hidden all the time. Whenever the player presses the key space I would create a clone of the bullet. When the bullet starts as clone using the same go to block I would make it go to the gun and point towards the gun. Then I would make it move a number of steps according to the gun variable. You will understand about the gun variable after some time. Good now the bullet does not work. What have I done. OH ! I forgot to show the bullet when it starts as a clone. oof bro.

## Enemies

Now for the enemies we need zombies that would march towars cheong san. What should I do......

Ah ! Make a zombie costume

Since, I making this game in scratch it should be cute. So I drew a cute zombie circle and made it point towards the player and move ten steps inside the game loop. Then whenever the zombie touches the bullet. The clone gets deleted and whenever the zombie touches the player I decided to stop all. And now I have a fully functional zombie shooter game

## Backdrop

For some reason, In scratch background is called backdrop. I quickly created a really ugly backdrop. Well, I hade no ideas !

## More enemies and score

I made a bunch more enemies and made the costumes change randomly and also I added a score, so people would compete with each other. Finally, with the high score the game was better

## Thumbnail and end screen

I watched a youtube video and set a simple thunbnail and scratch. I also added a game over screen. so that you know you die

## TWEAKS

I gave different end screens for different number of kills. There are awesome end screens when you cross 50 kills. So do it. I added some sound affects and animation to the gun. The zombie would scream when you kill it. The player would scream if he dies. I added an inventory of guns using the gun variable we used earlier. The game is complete and the game is now online. Please try it guys

(โยดโก`โ)

CLICK ME TO TRY THE GAME

Guys, you made it to the end of the screen. Now it's shoutout time.

Shoutout to my followers:

Take a look at my website

Follow my:

Have a nice day