TWMap master READ ONLY 0
  • explorer
  • search
a [App]
a CG.TWMap
a README.md
a app.ts
a [Test]
a test
  • README.md

TWMap

TiledMap library that is used in TwilightWars game engine.

Getting Started

Check out how it is used in testbed.ts.

let mapResource = new MapResource();
if (load_from_json) {
    mapResource.importJson(json);
} else if(load_from_resource) {
    mapResource.importAppResource(resourceAlias);
} else if(load_from_base64) { // from source.twmap
    mapResource.importBase64(base64);
}

// load textures
mapResource.loadTextures(() => {
    // build TiledMap that stores properties of the map
    let map: TiledMap = new TiledMap(mapResource);
    // build map renderer to display
    this.renderer = new MapRenderer(map);
    CG.Base.pixi.root.addChild(this.renderer);
});

Versioning

We use SemVer for versioning.

Authors

READ ONLY
  • problem
  • console
No problems have been detected so far.
Ln 1, Col 1, Sel 0
Markdown