GitHub - chrismaltby/nojs-maze: Proof of concept 3d Maze using no Javascript

1 min read Original article ↗

Proof of concept 3d Maze using no Javascript. (Except to generate maze with an EJS template)

Initially this was conceived as a game that could be sent as a weekly HTML email to a list of subscribers, turns out to crash a lot of email clients.

Update data.json setting the layout of your maze, use 0 to indicate walls, 1 to indicate a walkable path and 2 to indicate the maze exit tile.

{
    "map": [
        [1,1,1,0,0],
        [1,0,1,1,0],
        [1,1,1,1,0],
        [0,0,0,1,0],
        [1,1,1,1,0],
        [0,1,0,0,0],
        [0,1,1,1,2]
    ],
    "startX": 0,
    "startY": 0
}

I got my maths wrong and have North facing to the right so the entire map is rotated 90 degrees from the JSON data.

Why not check out my more useful open source project for making Game Boy games with a drag and drop interface GB Studio.