Inspiration
Mini Metro inspired Wattcraft. I liked how a line that worked beautifully a few minutes ago could become the weak point as a city grew. I wanted to explore that idea with electricity. Bringing Wattcraft to Reddit lets everyone face that choice on the same map and compare what they did on their second try.
What it does
Build a power plant, place a substation near a neighbourhood, and connect them with a line. As the city grows, you have to choose between reaching the next neighbourhood and reinforcing a line that’s already close to its limit. Your score is the highest demand your grid supplies before blackout, measured in megawatts.
Each Daily gives everyone the same city, the same starting conditions, and three ranked tries. The cities change how you play. In Portland, fast rivers make good sites for hydropower, but their output drops when the water runs low in summer and autumn.
How we built it
I ported my existing Godot game to run inside a Reddit post. Godot runs the simulation in the browser, while a TypeScript server uses Devvit Redis for saved grids, remaining tries, streaks, and leaderboards. A scheduled Devvit task creates the playable Daily and pins a comment where players can share their scores and compare strategies.
Challenges we ran into
The time for testing in various devices is like forever, especially when there is iPhone duo. Also the performance becomes a matter when the grid grows to a certain point. Takes a lot of time to optimise it.
Accomplishments that we're proud of
Got quite a number of players who really love the game and play every day. This is what I love to see.
What we learned
One small detail taught me a lot about porting a game to a phone. Need to design the controls and the HUD to fit in a small screen. Paid a lot of attention to the details.
What's next for Wattcraft: Power Grid Builder
Would like to see players show their score in the leaderboard. I will also add more maps into the game, while each map may have a little bit different gameplay and challenging point.
Built With
- codex
- express.js
- gdscript
- godot
- javascript
- reddit-devvit
- redis
- typescript
- webassembly