-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|711|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Snippet Home -> Generators


 
Pakz
Created : 11 January 2022
Edited : 11 January 2022
System : Ios
Language : Lua(codea)

Berzerk level generator

Level generator from the classic game berzerk



Latest Update

I found the description on twitter by the user @pugfuglygames

You have a empty map with columns spread into a grid pattern. Each column then extend into 1 of four directions. This then should create the map.

There can be areas created that are blocked. A flood fill check or manual seed selection can sort this.

 

Comments


Wednesday, 12 January 2022, 06:08
Jayenkai
Reminds me of..
10 PRINT CHR$(205.5+RND(1)); : GOTO 10

> Reveal 🔎

I've always found it tricky to do walled mazes like that, with my Array mentality. I prefer "Block I can walk through or not" to "Wall on the edge of the block"
To this day, I still find it hard to do the collisions with between-grid wall stuff.
Wednesday, 12 January 2022, 06:19
Pakz
These walls are regular array cell blocks. The spacing is just wide. I think the character could be larger letting the walls look like those edge maze walls.

In that maze programmers book there were these edge wall mazes. I stil do not understand how to convert these to regular arrays blocks.