I build a game using Amazon Q CLI
In this blog, I share how I built a game using Pygame with Amazon Q CLI, from first prompt to handling collisions and snow. It was awesome!
Published Jun 9, 2025
I have been watching The Last Airbender since I was a kid. Those few season episodes were awesome. I wish there were more episodes after Aang Brings Out Peace in All Nations or Kiyoshi or Roku episodes. A few weeks ago, I saw Shafraz Rahim sharing about creating games using Amazon cli announcement. So, I thought, let's get hands around Q and thought what if I could create a game through the Himalayas defending threats via Appa?
Appa is a spiritual animal of the Airnomad nation.
My first interaction was simple, installed the Q cli, authenticated with my AWS builder id, and logged in.
Here was my first simple query
Help me create a game using Pygame any game.
It provided me with a comprehensive foundation with proper considerations. And then after iterations with the given context, I built a game exactly as I thought in my mind.
What amazed me was how Amazon Q understood the artistic vision behind the technical implementation. It was helping me bring a world to life.
The mountains looked good but I wanna snow gently failing, and it happened. When I asked about particle systems for snow, it provided not just the physics calculation, but also considerations for performance optimization.
Also on this journey, I hit a wall with collision detection performance, multiple bullets, and dozens of enemies, my game was slowing to a crawl. I described the problem to Amazon Q and it didn't give a quick fix, it walked me through different collision detection algorithms, explained spatial partitioning concepts, and helped me to implement optimized solutions that maintained visual quality while boosting performance.

Well, Q became my brainstorming partner here and my consultant. It feels like making things feel right not just making things work. It was fun in general. You can also try out building your project with Q CLI and share it with the community.