🧙 Inspiration
We wanted a fresh and exciting way to practice LeetCode-style data structures and algorithms problems. Instead of solving them in a plain browser window, we thought—what if we could step into a fantasy world, go on a quest, talk to wizards, and solve puzzles through code? Hero of Codemere was born out of our desire to blend storytelling and coding, making problem-solving feel like part of an epic journey rather than just prep work.
⚔️ What it Does
Hero of Codemere is a 2D fantasy adventure game where players interact with NPCs, complete quests, and solve real coding challenges embedded in the story. The gameplay includes:
- Exploring a pixel art world with animated characters
- Talking to NPCs who present logic-based coding challenges
- Solving Python programming puzzles through an in-game editor
- Unlocking new areas and story progress based on correct answers
- Learning and applying DSA concepts in an engaging, gamified way
🛠️ How We Built It
We used:
- Python + Pygame for game development
- Tiled for level design and tilemap rendering
- PyTMX to parse
.tmxmaps into Pygame - Sprite sheets for animated player and NPC movement
- A custom dialogue system to handle NPC interaction
- An in-game code challenge system with real-time answer validation
- Background music, pause menu, and custom UI for immersion
🧩 Challenges We Ran Into
- Neither of us had any prior game development experience, so everything was brand new
- We had never used Pygame before and had to learn it from scratch
- Figuring out how to work with Tiled and
.tmxfiles took lots of trial and error - Implementing collision detection, animation, and a clean in-game coding interface was tough
- Debugging interactions, transitions, and real-time feedback systems tested our patience
🏆 Accomplishments That We're Proud Of
- Built our first ever game from scratch in just one weekend
- Created a fully functional in-game code challenge system
- Designed an interactive world with NPCs, quests, and puzzles
- Integrated animation, music, and UI into a smooth game experience
- Made coding fun and immersive through story and gameplay
📚 What We Learned
- How to build a complete game engine loop in Pygame
- How to parse and render tilemaps using Tiled and PyTMX
- How to animate sprites and manage interactive NPC behavior
- How to create a custom code editor and validate player solutions
- The value of combining storytelling and education in game design
🌠 What's Next for Hero Of Codemere
- Introduce multiple towns, each themed around different CS topics and increasing in difficulty—like Pokémon gyms
- Expand the challenge pool with advanced topics like recursion, graphs, DP, and OOP
- Automate map and challenge generation using LLMs, since
.tmxmaps are just tile matrices - Add procedurally generated quests and puzzles for infinite replayability
- Enrich the world with more characters, side quests, and lore
🛠️ Built With
- Python – Core programming language
- Pygame – 2D game development library
- Tiled – Level design and tilemap creation
- PyTMX – Parser for
.tmxtilemap files - OpenAI API – (Early use) For exploring challenge generation and validation
- Git & GitHub – Version control and collaboration
- VS Code – Development environment
Log in or sign up for Devpost to join the conversation.