Skip to content
bapquad edited this page Feb 28, 2022 · 2 revisions

This content show you how to layout your tiles for scenes in your game.

Create the tile object

The tile created by Carem.Tile class.

let tree = new Carem.Tile(scene);

We use the tile for layout the trees of the scene.

Layout the tiles

We can add cell with an asset for layout the tile of the scene.

tree.AddCell(asset, 0, 0);
tree.AddCell(asset, 320, 0);
tree.AddCell(asset, 640, 0);

image

Done! Good Luck and see you at other guide.

Clone this wiki locally