DEV Community

pieterjoubert
pieterjoubert

Posted on • Edited on

1 2

Arcology Roguelike Lifestream E5

Episode 5: Procedural Generation

In this video I build on the Procedural Generation algorithm discussed in the previous video.

I start with a bit of Game and Art Design, exploring the idea of the game having levels or floors that are separated from the other floors or levels in the game. To implement this visually I add a very basic "scaffold" effect.

I look at ways to get better coverage of the entire level with Rooms.

I also attempt a solution to prevent rooms from overlapping. The code works, but the generated levels lack play-ability. In this instance Game Mechanics trump the correctness of the algorithm.

I also add some code to ensure our level always has one entrance, and finally, I add random rotations to placed Room Templates.

I might not look like a major difference (if you just glance at the thumbnails) but there is major progress being made towards playable levels, which will allow for much easier testing of combat mechanics, unit balance and various other Game Design Aspects.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay