Noah2610 / deathfloor

Work-in-progress Mega Man inspired game.
MIT License
2 stars 0 forks source link

Tile animations #20

Closed Noah2610 closed 4 years ago

Noah2610 commented 4 years ago

Configure via tiles.ron settings file.

Noah2610 commented 4 years ago

Configure tile animation as animation component in tile settings' entity config.

resources/settings/tiles/tiles.ron Ground tile type example:

(
    types: {
        Ground: (
            entity: (
                components: (
                    // ...
                    animation: [
                        (0, 500),
                        (1, 500),
                        (2, 500),
                    ],
                ),
                // ...
            ),
        ),
    },
)