flame-games / wave-function-collapse

Simple wave function collapse with tile model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple wave function collapse with tile model

This sample demonstrates a simple WaveFunctionCollapse tile model using Flame, Flutter's frame game engine.

Usage

flutter run

This is a simple implementation of the WaveFunctionCollapse tile model.

Tile data is specified in JSON.

Specifies the tile data image path, the sockets that can be combined, and whether they need to be rotated.

{
  "src": "castle/bridge.png",
  "edges": ["ACA", "ABA", "ACA", "ABA"],
  "isRotate": true
}

Tilemap generation screenshot

simple

castle

circles

circuit

floor_plan

knots

rooms

summer

Author

Daisuke Takayama

About

Simple wave function collapse with tile model


Languages

Language:Dart 79.4%Language:HTML 14.7%Language:Swift 5.9%