What Inspired You
There is a simulator for everything out there. From the more serious ones like Flight/Space simulator to less serious ones such as Goat and Elon Musk simulator. Starting off initially, we had to come up with several ideas for a less serious simulator given the time constraints to make such a project. After several hours, we decided to go with the 'Morning Traffic' simulator. We've all been there, whether it may be getting to school, work, or a meeting; there's nothing worse than being stuck in the morning traffic. As such, we decided it would be a good idea to have a simulation where the player would get from point A to point B whilst having to avoid incoming traffic. Rather than writing a whole game engine ourselves with all the physics, we were inspired by a repo found online that had car physics all made and ready to use. We simply took it and used it for our project. More on the repo can be found in the 'how you built it section'. The game has multiple rounds which makes it progressively harder to get to the end destination where one has to oppose more cars each time.
What You Learned
Based on the varying skill levels with Front End Dev. in our team, each team member had learned different skills. For instance, I've managed to improve on my Javascript knowledge whilst others had sharpened their skills. Ultimately, teamwork and effective communication was key to developing such a game in 48 hours which we've all gained equally.
How You Built
Created a 'Morning Traffic' simulator using Javascript which is based on carphysics2d driving/racing simulator found on: https://github.com/spacejack/carphysics2d. Added several functionalities such as AI/bots referred to as 'ghost cars' opposing the player, single & multiplayer game modes, music, and multiple rounds. Our repo with all the features: https://github.com/Fasand/MorningTrafficSimulator
Challenges Faced
Mostly it was creating a collision detection system as the code adapted did not contain any form of collision. Often times we were also trying to understand the physics implementation whilst trying to create the AI/bots for the game. Other challenges include making the gameplay more smooth.
Log in or sign up for Devpost to join the conversation.