Tap to jump
🤔 How do you code a web game?
Ever since I started programming, this question has been on my mind. The best way to find out is obvious: code a game!
I am a big fan of the Google Chrome Dino Game, which is playable if there is no internet connection. So I decided to develop a jump-and-run game and integrate it as an easter egg in the 🌟 Shared Flat Review Portal.
This article goes into the functionality of the game as well as the architecture and technologies used.
🏃 Let’s Jump and Run.
But Where?
I quickly realized that there was only one appropriate place to set the game: our shared student flat.
As a player, you have to navigate the challenges of life in a shared student flat and cleverly avoid all chores. Whether it’s dirty dishes, laundry, garbage or pigeons in the apartment (yes, that really happened), dodge them or you’ll lose. And of course, you’ll earn extra points for drinking a beer.
All creative assets were produced by me, including the mildly annoying game music. Here’s an overview of some of the game’s features:






🛠️ Doing it the “right” way



I wanted to build this project from scratch. It is implemented without the use of external libraries or frameworks and according to all those “best practices” you learn about coding in college. It’s written in a typed language, follows the object-oriented programming paradigm, and employs the Model View Controller architecture.
Of course, the phrase “the right way” should be taken with a huge grain of salt. But what can I say? I loved Typescript as a language. And to my pleasant surprise, the over-engineering of the software – including refactorings – actually allowed me to implement new features quickly, even after months of not working on the project.
Do you want to have a closer look at the source code? Check it out in the GitHub repositoy.