Inspiration
Retro 2D platformer games such as Super Mario Bros. and Sonic the Hedgehog are super fun and I wanted to have a go at making one myself!
What it does
The aim of Spider Rush is to collect as many coins as possible whilst avoiding or killing spiders, before grabbing the red key which allows the player to go through the doorway to the next level. The player can control the main character using the arrow keys on the keyboard and there are animations for the main character walking left and right as well as jumping up and falling down.
Each level starts off with a coin count of zero and the sum of each level's coin count, excluding coins lost due to player deaths, is used as the total coin count for the game, displayed in the game won screen. As coins are collected on screen the coin count of the level increases and once the red key is collected the outlined key in the upper left corner becomes solid and the doorway to the next level becomes active.
Spiders are the enemy of the game. If a spider touches the main character the main character dies and the current level is restarted, with all previous coins including the coins from previous levels being lost. The main character can avoid spiders by jumping over them or can kill spiders by jumping on them. Each of the spiders have walking and dying animations and they are trapped within their territories.
There are three levels in total, with each level defined as a JSON file, making the game easily extensible. The game won screen displays the total number of coins collected in the game, excluding the coins lost through player deaths.
How we built it
Spider Rush was built using Phaser, a lightweight HTML5 game framework.
Challenges we ran into
One of the key challenges during the development of the game was using sprite-sheets to design the game and create animations. This was a new technique for me and I learned a lot.
Accomplishments that we're proud of
Building my first JavaScript game and learning how to use Phaser!
What we learned
How to use JavaScript and Phaser to build a web game and game development techniques such as sprite-sheets.
What's next for Spider Rush
- A global leaderboard
- Timed levels
- More levels with a larger variety of enemies and challenges
Log in or sign up for Devpost to join the conversation.