Skip to content

Instantly share code, notes, and snippets.

View 4xDMG's full-sized avatar

Daniel Tait 4xDMG

View GitHub Profile
var size = 0;
const magik = magikcraft.io;
function generateRandomCave() {
const dungeonArr = generateDungeonArr();
const normalizedDungeon = normalizeMapArr([], dungeonArr, 0);
checkTile(normalizedDungeon);
if (size < 500) {
size = 0;
generateRandomCave();