Inspiration

I was inspired by a mini-game from Poptropica, where you wanted to fight of other player's while still standing on the crumbling ground

What it does

In this game, you play as Cowboy Ninja and defend yourself from enemies. The ground you are on is crumbling, so make sure none off your shurikens hit the ground, or else it will crumble and get destroyed. Use WASD to move, use your mouse to aim, and click to throw a shuriken

How I built it

I used the Scratch engine, and used piskelapp.com to make all of the sprites. The way this works is it will randomly choose a place from the ceiling a random number of seconds and spawn a enemy. The enemy use the same physics code as the character, except it will jump at random times do give more challenge. The shurikin will continue to follow the player, and when the player clicks his mouse, it will move in a straight direction to the position of where the mouse is. The code for physics was created mainly by using math and logic. The more you go down, the faster your player goes and I added some slide physics to make the game harder.

Challenges I ran into

Scratch doesn't come with a built in physics engine like other game engines, so I had to create one myself. This became a problem because a single piece of code can completely break the Physics engine I made.

What I learned

As stated above, I learned how to make a physics engine in Scratch which was difficult

Built With

  • scratch
Share this project:

Updates