In an old post on my blog I mentioned working on a "node attachment system" to allow players to construct objects based on specified attachment points similar to several kinds of children's construction toy.

At one point I tried automating it with randomized choices of parts and attachment points via a strategy I refined and used later for my bridge generator, and to add some "flavor" I added a player object and allowed the generator to spawn chests and "zombies" for the player to encounter, in the end producing more or less a simple roguelike game.

DIRECTIONS:
The game starts off in a level editor with a single starting room, from which the player can build new rooms manually or automatically. Click the starting room to reveal its attachment nodes, click any one of these nodes to select it, then click one of the room choices on the left to attach a new room to that node. Use the "AutoGrow" button or the "Continuous" toggle to automatically add rooms. Feel free to play with some of the other buttons to see what they do.
Clicking "Play Map" switches the game to a first person view where the player begins in the starting room and can walk about using the W/A/S/D keys, fight zombies using E, and collect chests by walking over them.
Hold Left Shift to run a little faster, which may be useful if you have trouble with the ramps.

Comments

Log in with itch.io to leave a comment.

(+1)

Really cool.