Game
Kuntry Pedes
10 years ago

Random Map Generation


I’ve been kicking around the idea of implementing randomly generated maps for a while, but I decided to prioritize other things over it and I didn’t really have a solid plan for doing it anyways.

All of my initial ideas involved randomly placing intersections and then trying to connect them, but I never liked any of those enough to pursue them. A few days ago, I realized that some of the possible maps, the original map included, are basically just loops that cross over themselves. If you let your Pede just go straight at every intersection on these maps, it will traverse every road exactly once and end up back where it started. I figured that I could use this fact to more easily randomly generate levels by simply starting on a random tile, and then randomly laying a path that crosses over itself and eventually closes the loop by connecting to the starting tile. This way I only have to worry about keeping the single path within the bounds of the map, keeping it from crossing itself at bad places, and only have to deal with connecting to a specific point once.

Over the next few days I started prototyping this idea and made a lot of progress. However, after watching the prototype partially generate a few levels, I’m not sure that this approach is my best option. Not only does it completely ignore levels that don’t fit the single loop model, but I’m afraid it may not be able to consistently and quickly produce interesting and balanced levels.

I’ve also realized that, having only made two levels so far, I don’t really know what kinds of levels might be possible, or what the qualities of a good level are. As such, I plan to hand make a bunch more levels before I put any more work into random generation, so that I can get a feel for what makes a level interesting. Then I’ll probably look into template based random generation.

Before any of that though, I think I should spend some more time polishing the existing experience. I plan on adding more higher quality feedback, a semi-interactive tutorial, and some music and sound for the next update.

Thanks for reading and let me know what you think,
Zach



0 comments

Loading...

Next up

We made a lot of improvements on the Freezing Plains visual. Things like pine trees, tiny bushes, some rocks, and others game props!

#IndieGame | #IndieDev | #GameDev | #PixelArt | #WaifuQuest | #WifeQuest | #screenshotsaturday

Path of Kami: The Evolution of the Lore

If you have more of an acquired taste, the restaurants in Niravasi have you covered! Maybe skip the salad bar, though.

Let me introduce you to the new Mech line: Gendai Spec. Those are Mech that specializes in surprise attacks, covered operations, and stealth. They are equipped with melee weapons but one of Gendai's frames supports sniper rifles.

Made my first ever animation.

Explosive domino effect

Path of Kami, running around the shrine area

A sneak peek at the new OST, can you guess what this song will be used for? 🤔

Double Rainbow!!!

Hello my space friends! Now I added a space background to the ship. I love that space look but I still feel like stuff is missing. The lighting on the ship needs some improvements I think. Please tell me your opinion!