This is how Amazon Q Developer helped me build a 2D Game
Obstacourse is a dynamic, skill-based platformer where players control a character navigating through a series of challenging obstacles. The objective is simple yet engaging: jump over or crouch under obstacles as they move toward you, with the goal of achieving the highest score possible. As players progress, the game dynamically adjusts difficulty, introducing faster and larger obstacles to keep players on their toes.
Published Nov 6, 2024
The premise of the game is simple: navigate your character through obstacles that come toward you at increasing speeds and sizes. You start on the "Easy" difficulty, but as you score higher, the game becomes faster and more challenging, introducing new difficulty levels like "Medium," "Hard," and the ultimate level, "Impossible." With each level-up, you’ll find larger obstacles moving at greater speeds, so staying alert and adapting quickly is key to racking up a high score. Controls are straightforward: use the space bar to jump and the shift key to crouch. With a focus on smooth gameplay and immediate feedback, the game lets players immerse themselves in quick, skill-based action.
The game started as a simple idea: create a fun, fast-paced platformer where players could test their reaction times. But as we built it, we realized the importance of a seamless user experience and wanted to make it more engaging by adding difficulty levels and interactive leaderboards.
Gameplay Design: With the help of Amazon Q Developer, I focused on balancing accessibility with challenge, making controls intuitive but the gameplay progressively difficult. Implementing difficulty-based leaderboards motivated us to refine the scoring and obstacle generation to keep the game fair across levels.
Used AWS Amplify to host the game on website
Use this link to play: https://dev.d3tvxf1yu8ik9d.amplifyapp.com
We’re constantly looking for ways to improve the game. Here are a few ideas in the pipeline:
- User Authentication with AWS Cognito: AWS Cognito handles all player sign-ins, providing a safe and simple way for users to log in, track their progress, and save their scores. This authentication process allows us to build player profiles, linking scores to accounts for easy leaderboard updates.
- Leaderboard Management with AWS DynamoDB: Each score submission is saved in DynamoDB, which makes storing, retrieving, and displaying scores fast and efficient. With the serverless design of DynamoDB, our game can scale easily as more players join, ensuring smooth performance regardless of how many people are playing.