xclam / ageoftower

An Amazing Tower Defense (not yet!)
17 stars 6 forks source link

Load Towers Actor from the MapLoader #24

Closed screwt closed 11 years ago

screwt commented 11 years ago

The map ("TiledMap") is passed to the stage. Then the function AotStage.extractTower() reads the layer "towers" (found in the *tmx) ans calculate coordonates. Finally it adds the tower actor where it should be.

Ref: https://github.com/xclam/ageoftower/blob/tiledmap_loader_tower/age-of-tower/src/com/nsx/ageoftower/utils/AotStage.java