
Building a Endless runner Game Using Amazon Q CLI -Just Prompts!
Build a endless runner Game with Amazon Q CLI Using Only Prompts.
Published Jun 10, 2025
Understanding Amazon Q CLI
If you're a developer or game enthusiast looking to streamline your projects, Amazon Q CLI is a powerful tool worth exploring. Recently, I used it to build an Endless Runner game, and it opened my eyes to its potential.
Amazon Q CLI is a command-line interface that leverages AI to assist with coding tasks. Available on macOS (and other platforms), it allows you to chat with the tool in your terminal, generating code, debugging, and more with simple prompts.
My Journey Building an Endless Runner Game with Amazon Q CLI
I recently participated in Build Games with Amazon Q CLI and had an amazing experience creating my first game—an Endless Runner! The best part?
Initially, I inquired about the best option for someone with no game development experience, given that I am an Android developer.

So I got some some suggestions, so I choose to develop a game by Android.

Using the chat in the terminal, I prompted Amazon Q to generate Java files for the game. The AI provided the code structure, including a player (the yellow square) and obstacles (the red squares) moving along a green ground line. I didn’t need to write everything from scratch—Amazon Q handled the heavy lifting! I just followed the prompts, adjusted a few details, and watched the game come to life.
The game features a simple interface with a purple header displaying "Endless Runner" and a score counter starting at 0. The player moves along the bottom, avoiding obstacles that spawn as the game progresses. It’s basic but addictive, and I’m proud of what I built in such a short time!

Tips for others
Start with a platform you're familiar with, like Android, and use clear prompts in the Amazon Q CLI chat (e.g., "Generate a Java Endless Runner game with a player and obstacles for Android Studio").
Experiment with the generated code to add your own unique features.
📣 Share Your Educational Journey!
If you try something like this, share your results, game screenshots, or ideas using the hashtag:#AmazonQCLI