AWS Logo
Menu
A Simple 2D Platformer Game - A Unique and Readable Approach

A Simple 2D Platformer Game - A Unique and Readable Approach

A charming 2D platformer that combines intuitive controls, vibrant visuals, and engaging level design to create a delightful gaming experience.

Published Jun 6, 2025

๐Ÿง  Why This Game is Unique

This game stands out by combining creative visuals (circle player, colorful platforms) with simplified logic for readability. It avoids complex physics while still capturing the essence of platformers. The level design is quirky, with platforms arranged in a "staircase" pattern to make the game feel fresh and playful.

๐Ÿงฑ Technologies Used

  • Python 3.10+ (for simplicity and cross-platform compatibility)
  • Pygame (for 2D graphics and input handling)
  • Windows / WSL (for development on Windows with Linux tools)
  • Amazon Q CLI (optional: for code suggestions or debugging)

๐Ÿงฉ Game Features

  • Circle-shaped player (unique visual)
  • Colorful platforms (red, blue, green)
  • Simple gravity and collision
  • Staircase-style level (unique layout)
  • Keyboard controls: Left/Right (arrow keys), Jump (spacebar)

๐Ÿง  Code Structure

The code is organized into clear sections with comments for readability. It avoids classes where possible to make it simpler.

๐Ÿ“œ Amazon Q CLI Prompt

๐Ÿงช How to Run

  1. Install Pygame (via WSL or Windows): pip install pygame
  2. Save the code as platformer.py.
  3. Run the game: python platformer.py

๐ŸŽจ Visual Design

  • Player: A Blue rectangle that feels playful and unique.
  • Platforms: Colored rectangles arranged in a "staircase" pattern, making the level feel dynamic and fun.
  • Simplified Collision: Uses AABB (Axis-Aligned Bounding Box) for simplicity, with the player treated as a rectangle for physics.

๐Ÿง  Why This Works

  • Readability: The code avoids classes and uses functions for clarity.
  • Uniqueness: The circle player and colorful platforms make it feel fresh.
  • Simplicity: Gravity and collision are easy to understand, making it perfect for beginners.

๐Ÿš€ Next Steps

  • Add animated platforms (e.g., moving left/right).
  • Create a score system for collecting items.
  • Use Amazon Q CLI to suggest new features or optimize the code.
This game proves that simplicity and creativity can go hand-in-hand! ๐ŸŽฎโœจ
Thank you for reading.
ย 

Comments