I MADE A GAME IN SCRATCH 😭

i-made-a-game-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:

@stepuravg
@zkils999
@cnavarro06

Take a look at my website

Follow my:

DAILY.DEV
CODEPEN
SCRATCH

Have a nice day

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
5-professional-ways-to-deal-with-missed-bugs-effectively

5 Professional Ways to Deal With Missed Bugs Effectively

Next Post
navigating-ai-bias:-insights-and-strategies-–-john-haggerty-(founder,-the-pm-insider)

Navigating AI bias: Insights and strategies – John Haggerty (Founder, The PM Insider)

Related Posts
harmonyos-next中密码类数据保护场景解析

HarmonyOS Next中密码类数据保护场景解析

本文旨在深入探讨华为鸿蒙HarmonyOS Next系统(截止目前 API12)在开发多语言电商平台方面的技术细节,基于实际开发实践进行总结。主要作为技术分享与交流载体,难免错漏,欢迎各位同仁提出宝贵意见和问题,以便共同进步。本文为原创内容,任何形式的转载必须注明出处及原作者。 在当今数字化时代,密码类数据的保护对于应用的安全性和用户体验至关重要。无论是登录账号、进行金融交易还是访问敏感信息,密码都起着关键的作用。HarmonyOS Next作为一款先进的操作系统,其提供的Asset Store Kit为密码类数据的安全存储和管理提供了强大的解决方案。 (一)引言 密码类数据保护的重要性    – 在移动应用领域,密码类数据是用户身份验证的核心凭证。一旦密码泄露,用户的账号安全将受到严重威胁,可能导致个人信息被窃取、财产遭受损失等严重后果。例如,在金融类应用中,如果用户的登录密码被泄露,黑客可能会非法访问用户的账户,进行转账、消费等操作。因此,确保密码类数据的安全性是应用开发者必须首要考虑的问题。 Asset Store Kit的关键作用    – HarmonyOS…
Read More