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

This Satuday we invite to watch another #speedpainting of our artist Daniel Faiad.

How great is this scene of #Pecaminosa?

#ScreenShotSaturday | #IndieDev | #DigitalArt

Successful landing

#screenshotsaturday

I have added rewards for quests so that villagers can give you something in return for your hard work helping them. 🥳

I want to know - what's your favourite quest reward?

Back in my art school days I used to ride the 710 COPSA line from Parque Del Plata to Montevideo almost everyday. This is the Marcopolo Viaggio G4 Mercedes Benz model from the late 80s, one of the older bus models that was running on the line.

Showing off player 2 😎

What do you think?

I worked so hard to get all four of them to the end safely, but then...

"Day to Day" (also check spud out here he's a great guy and writer: https://soundcloud.com/spudward)

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

If you’ve played the Vault demo and enjoyed it, please consider ‘liking’ the game page here on Gamejolt and/or leave a comment!

Also please consider tossing Vault on your Wishlist, I really appreciate your support!

https://store.steampowered.com/app/1251800

Here's a Fredbear sprite i made in Aseprite! I'm pretty proud of this!

(Btw, sorry for the double post! I'll try to post less)