Trolley Problem

Introduction

Trolley Problem is a game built on the famous moral dilemma the "trolley problem." The player needs to make quick decisions on which track to choose, to avoid hitting as many people as possible. The need to avoid barriers and keep the trolley going.

Get the highest score possible! Each person you hit you lose one point. Each person you avoid you get one point.

It was designed for the "Game & Entertainment" category for the Code with Kiro Hackathon.

Game Mechanics

The player needs to choose between one of 5 tracks to avoid as many people as possible. The player can either use their mouse, touch screen, or keyboard numbers to choose the track. Each section crossed gets more challenging as the trolley gets faster and faster. You need to avoid other trolleys to avoid ending the game.

How we built it

The game was built with three js. This library has a huge developer community and was chosen because of its extensive documentation and resources. The pipeline allowed for the game to be built in HTML format.

Challenges we ran into

There were many iterations of this game, including one built using react-native. However, Kiro was not able to effectively balance using multiple libraries to build the game. Because of this I attempted using specific libraries that are good for 3D development of games, like Babylon and three js. In the end, three js provided the nicest feel for users.

Accomplishments that we're proud of

I am truly proud of the product built. It is the first 3D game I have built, despite being a seasoned developer. I learned a lot through this process because of the scaffolding developed using Kiro through the specifications, which provided valuable insight into the initial pieces needed to create such a game.

What's next for The Trolley Problem

I look forward to refining this game even more, adding new features like power-ups. I also hope to create cross-platform versions that can be used on desktop and mobile applications. For this hackathon, I thought a HTML oriented game was the most accessible for a completely new user, which is why I chose to go with this format.

Built With

Share this project:

Updates