A Simple Fruit Ninja Type Game Made in Scratch Code Blocks.
by Jp3r in Circuits > Software
482 Views, 2 Favorites, 0 Comments
A Simple Fruit Ninja Type Game Made in Scratch Code Blocks.
I really enjoy games like Everhood, Guitar Hero, FNF, and Fruin Ninja so I decided that it would be fun to code a scratch game replicating them. I made sure to also practice my art skills with this project making all the art by hand in Aseprite. This project was fun to make and provide great ways to use coding blocks to my advantage.
Supplies
- Any pixel art program (PixelArt.com, Asesprite, Piskel)
- A Scratch Account
- Basic Programming knowledge.
Code Your Menus
Make sure to make your menus before your game, making a menu after the game is finished is much harder.
you can use broadcast blocks to show and hide things when sprites are clicked, this was useful in creating buttons.
Start the Game
After coding Menus, you can start work on the actual game! You can make any game you want at this step but ill show my experience coding a top-down slashing game.
My first step was to create movement, I opted for a three-button strategy where the buttons you pressed corresponded to where your player would move.
Add Enemies
I made my "enemies" pieces of small Japanese foods (sushi, shrimp, rice balls). They were programmed to pick a random sprite texture and a random place to fall down, gliding to the bottom of the screen and If they weren't slashed they would hurt the player.
I did this utilizing the pick random code.
Add a Weapon
For the sword I made a multiple-frame animation where that would have to completely cycle through before you could use it again, giving it a cooldown. I also used the same movement template as the player so it would stick to your avatar.
Add Health
This step is relatively easy, just add a small bar at the bottom of the screen and when an enemy touches it subtracts 1 health. Also, make it so that when you start you are sent to full health. Also, make sure to stop the game when the player dies by hiding all the models that are currently showing and adding a game over the screen.
Done!
You might want to add other features but it will be relatively easy to set that up when the game is already done, so ill let you sort that out on your own! Other than that you will want to make some kind of art for your game to give it visual appeal so guides like these will help:
- https://www.youtube.com/watch?v=lfR7Qj04-UA&ab_channel=Saultoons
- https://www.youtube.com/watch?v=0I_OZ4qQJfY&ab_channel=ReeceGeofroy
- https://www.youtube.com/watch?v=SZXg7rexa2k&ab_channel=PixelOverload
- https://www.youtube.com/watch?v=y-340vtaKts&t=146s&ab_channel=Goodgis