AutotileLib makes mapping gorgeous maps with tile edges a complete breeze.
AutotileLib doesn't expect you to draw every single join state on your own either.
Simply import a DMI file in this format:
Run the command GenAutotile() from the command line, select the DMI file, and then save the machine-converted 47-state autotile for use in your project!.
The autotile generator will take icons of any size. even animated DMI files!
The input must be in the form of a 3x4 autotile sheet. The system will automatically spit out icons 1/3rd the width of the sheet, and 1/4th the height of the sheet, using each subsegment of the supplied icon.
The engine also allows you to specify multiple different tile ids that each autotile rule merges with, allowing you to make bridge tiles not interrupt water autojoining, or for cobblestone paths to tile with dirt paths seamlessly.
In addition, autotiles can be given an icon_state in the map editor at compile-time. The autotile will use that icon_state as its default, allowing you to create one-time tiling rules without overriding the autotile group rules!
The autotiling algorithm is blazing fast and incredibly flexible, tiling 1000x1000 maps in around a second at world initialization and updating tens of thousands of autotiles at runtime per second.
This library depends on StdLib.
Documentation is here.
Copyright © 2020 BYOND Software. All rights reserved.