Overview

L (Lindenmayer) Systems are systems which, using a set of production rules, create a set of symbols from an initial set of symbols. L-Systems can generate recursive, fractal geometry and have been used for many purposes including procedurally generating foliage and other fractal-like patterns. I have always been fascinated by L-Systems and wondered if they could be used as a game mechanic. The trickiest part of this prototype was designing a UI to easily create L-System grammars in a visual way. This is an idea I hope to come back to someday to fully flesh out into a mobile puzzle game.

This prototype is a toy more than anything. The jist of it is to place blocks on the playing board, and place blocks in the production rule grid to create production rules. Those rules then influence the next layer of the system as it steps from state to state.

In the above example, The red grid represents the blocks that will be created from a red block, the green grid represents what will be generated from a green block, and so on. In the above example, a red block will produce a green block directly above it. And then the green block will produce 4 more green blocks around it, and those green blocks will produce more green blocks and so on and so forth.

The best way to understand how this production system works is to play around with it and experiment!


From the above set of production rules and the above starting state of the board. The next step in the system will look like below.


and so on and so forth...


How to Play

The game starts in "play" mode. Where you can use the left mouse button to rotate the playing board. The Scroll Wheel will translate the camera up and down.


Press the "switch mode" button to switch into "build" mode.


In Build Mode, we have the playing board, our set of production rules and the buttons that allow us to select the coloured block that we are placing. Use the left mouse button to select the colour blocks you want to place and click on the board to place the blocks. Click on the grids to create the production rules that will be used!.


Switch back to play mode by clicking the "Switch Mode" Button and press "Step System" to see what is generated from your production rules!



Controls

Play Mode

Left Mouse Button - Rotate Grid
Mouse Scroll Wheel - Pan the camera up and down

Further Reading

Development log

Comments

Log in with itch.io to leave a comment.

Sex appeal of documentation is off the charts here