AdamsLair / duality

a 2D Game Development Framework
https://adamslair.github.io/duality
MIT License
1.41k stars 286 forks source link

Implement Tilemap AutoTiles #281

Closed ilexp closed 8 years ago

ilexp commented 8 years ago

As previously described in issue #249, the tilemaps plugin needs some kind of AutoTile feature. This feature will affect Tileset and editor implementations, but is mostly transparent towards Tilemaps themselves.

ilexp commented 8 years ago

AutoTile Template: testautotile All 47 permutations of an expanded AutoTile: expandedautotile

ilexp commented 8 years ago

There is also this AutoTile format.

tilesetformat2

It would make sense to support any of them via customization on a case by case basis. Just let the user specify per-autotile, which existing tiles have which role and let the system generate the rest based on the available sub-tiles using a predefined priority / order.

ilexp commented 8 years ago

Progress

Immediate ToDo

Core

Editor

Sample

ilexp commented 8 years ago

Progress

Immediate ToDo

Core

Editor

Sample

ilexp commented 8 years ago

Progress

Immediate ToDo

Core

Editor

Sample

ilexp commented 8 years ago

Progress

Immediate ToDo

ilexp commented 8 years ago

Progress

Immediate ToDo

ilexp commented 8 years ago

Some mockup screens for the new AutoTile mode of the TilesetEditor:

mockupc mockupa mockupb

Basic idea behind this: After selecting the base tile, the user "carves free" all the connected parts of border tiles, so the AutoTile base part will be highlighted in the end.

ilexp commented 8 years ago

Progress

Immediate ToDo

ilexp commented 8 years ago

Progress

Immediate ToDo


Split this up into a separate issue

ilexp commented 8 years ago

AutoTile test tileset for the non-generating setup:

testtileset

All 47 permutations of the test AutoTile are in there. The compiler should properly map them, and the AutoTiling algorithm should be able to use them accordingly.

ilexp commented 8 years ago

Progress

Immediate ToDo

ilexp commented 8 years ago

Progress

Immediate ToDo

ilexp commented 8 years ago

Progress

Immediate ToDo

ilexp commented 8 years ago

Done. Release in progress.