5 Lines of Code That Made My Roguelike Worth Playing Every Day
In v0.10.0, I gave every run in my roguelike a name. In v0.11.0, I gave every day a run. The problem with Endless Mode When I shipped Endless Mode (v0.9.9), I added this line to the result screen: ...

Source: DEV Community
In v0.10.0, I gave every run in my roguelike a name. In v0.11.0, I gave every day a run. The problem with Endless Mode When I shipped Endless Mode (v0.9.9), I added this line to the result screen: "Post your Endless score in itch.io comments!" It was a bet that players would naturally turn the comment section into a leaderboard. The problem: no two runs are the same. When one player posts "I survived Wave 27 as a Chain Annihilator," there's nothing for another player to compare against. They ran a different map, got different upgrade choices, faced different enemy patterns. The itch.io comment section wasn't a leaderboard. It was just a list of unrelated accomplishments. What makes a leaderboard work A leaderboard needs a fixed variable. In golf, the course is fixed. Players compete on the same 18 holes. The comparison is valid because the challenge is identical. In Wordle, the word is fixed. Every player gets the same puzzle. The only variable is the number of guesses. In my roguelike