Inspiration
We have always had a passion for video games, and especially retro video games. We grew up on games like Super Smash Bros, Mario Party, and, best of all, Super Mario Bros. After talking for a while about what we could do for the hackathon, we decided to make a video game in homage to Super Mario Bros with one little twist- we would be the character! In addition, we thought the classic left to right movement was too bland and outdone, so we did the opposite- went from right to left!
What it does
The game is a basic side scroller. The character starts out on the right side of the screen and begins walking to the left, and is faced with some obstacles he needs to jump over. If the character comes in to contact with an obstacle, a game over page is displayed along with the user's score, and handy little try again button to refresh the page and restart.
How we built it
We built the game in pure HTML5 and javascript, with special help from a handy little lightweight javascript library called easel.js.
Challenges we ran into
Javascript is not exactly a go to for building video games, but we accepted the challenge. However, a problem we eventually had to circumvent was the issued of simultaneous keyboard events. We originally wanted to be able to read more than one key at a time, for obvious reasons, but the simultaneous triggering of event handlers was highly dependent on the browser used, so we scrapped the idea all together and went with a side scroller.
Accomplishments that we're proud of
Our biggest accomplishment is probably the fact that we learned javascript well enough to make a video game within the twenty-four hour hacking period. This accomplishment is even more valuable than normal because javascript is an excellent tool that is being extended to server side use as well.
What we learned
As stated above, we learned javascript during the hacking period. In addition, we became aware that javascript is not truly an asynchronous language.
What's next for Super Maurio Bros
The next implementation will have a better physics engine, and hopefully incorporate increasing difficulty if the player survives for an extended amount of time. In addition to randomly generated obstacles which we have, we are looking into incorporating randomly generated levels and stages as well.
Built With
- easel.js
- easljs
- html5
- javascript
- jquery
Log in or sign up for Devpost to join the conversation.