Working on missions
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 116 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 75 KiB |
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 131 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 183 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 146 KiB |
@ -28,39 +28,42 @@
|
|||||||
],
|
],
|
||||||
"paths": [
|
"paths": [
|
||||||
[
|
[
|
||||||
[4, 0],
|
[0, 4],
|
||||||
[4, 1],
|
[1, 4],
|
||||||
[4, 2],
|
[2, 4],
|
||||||
[4, 3],
|
[3, 4],
|
||||||
[4, 4],
|
[4, 4],
|
||||||
[4, 5],
|
[5, 4],
|
||||||
[4, 6],
|
[6, 4],
|
||||||
[4, 7],
|
[7, 4],
|
||||||
[4, 8],
|
[8, 4],
|
||||||
[5, 8],
|
[9, 4],
|
||||||
[6, 8],
|
[10, 4],
|
||||||
[7, 8],
|
[11, 4],
|
||||||
[8, 8],
|
[12, 4],
|
||||||
[9, 8],
|
[11, 6],
|
||||||
[10, 8],
|
[11, 7],
|
||||||
[11, 8],
|
[11, 8],
|
||||||
[12, 8],
|
[11, 9],
|
||||||
[12, 9],
|
[11, 10],
|
||||||
[12, 10],
|
[11, 11],
|
||||||
[12, 11],
|
[2, 10],
|
||||||
[12, 12],
|
[2, 11],
|
||||||
[12, 13],
|
[2, 12],
|
||||||
[12, 14],
|
[2, 13],
|
||||||
[12, 15],
|
[2, 14],
|
||||||
[12, 16],
|
[19, 14],
|
||||||
[12, 17],
|
[20, 14],
|
||||||
[12, 18],
|
[20, 13],
|
||||||
[12, 19],
|
[20, 12],
|
||||||
[12, 20],
|
[20, 11],
|
||||||
[12, 21],
|
[20, 10],
|
||||||
[12, 22],
|
[20, 9],
|
||||||
[12, 23],
|
[20, 8],
|
||||||
[12, 24]
|
[20, 7],
|
||||||
|
[20, 6],
|
||||||
|
[20, 5],
|
||||||
|
[20, 4]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -28,68 +28,68 @@
|
|||||||
],
|
],
|
||||||
"paths": [
|
"paths": [
|
||||||
[
|
[
|
||||||
[4, 0],
|
[0, 4],
|
||||||
[4, 1],
|
[1, 4],
|
||||||
[4, 2],
|
[2, 4],
|
||||||
[4, 3],
|
[3, 4],
|
||||||
[4, 4],
|
[4, 4],
|
||||||
[4, 5],
|
[5, 4],
|
||||||
[4, 6],
|
[6, 4],
|
||||||
[4, 7],
|
[7, 4],
|
||||||
[4, 8],
|
[8, 4],
|
||||||
[4, 9],
|
[9, 4],
|
||||||
[4, 10],
|
|
||||||
[4, 11],
|
|
||||||
[4, 12],
|
|
||||||
[5, 12],
|
|
||||||
[6, 12],
|
|
||||||
[7, 12],
|
|
||||||
[8, 12],
|
|
||||||
[9, 12],
|
|
||||||
[10, 12],
|
|
||||||
[10, 11],
|
|
||||||
[10, 10],
|
|
||||||
[10, 9],
|
|
||||||
[10, 8],
|
|
||||||
[10, 7],
|
|
||||||
[10, 6],
|
|
||||||
[10, 5],
|
|
||||||
[10, 4],
|
[10, 4],
|
||||||
[10, 3],
|
[11, 4],
|
||||||
[11, 3],
|
[12, 4],
|
||||||
[12, 3],
|
[12, 5],
|
||||||
[13, 3],
|
[12, 6],
|
||||||
[14, 3],
|
[12, 7],
|
||||||
[14, 4],
|
[12, 8],
|
||||||
[14, 5],
|
[12, 9],
|
||||||
[14, 6],
|
[12, 10],
|
||||||
[14, 7],
|
[11, 10],
|
||||||
[14, 8],
|
[10, 10],
|
||||||
[14, 9],
|
[9, 10],
|
||||||
[14, 10],
|
[8, 10],
|
||||||
[14, 11],
|
[7, 10],
|
||||||
[14, 12],
|
[6, 10],
|
||||||
[14, 13],
|
[5, 10],
|
||||||
|
[4, 10],
|
||||||
|
[3, 10],
|
||||||
|
[3, 11],
|
||||||
|
[3, 12],
|
||||||
|
[3, 13],
|
||||||
|
[3, 14],
|
||||||
|
[4, 14],
|
||||||
|
[5, 14],
|
||||||
|
[6, 14],
|
||||||
|
[7, 14],
|
||||||
|
[8, 14],
|
||||||
|
[9, 14],
|
||||||
|
[10, 14],
|
||||||
|
[11, 14],
|
||||||
|
[12, 14],
|
||||||
|
[13, 14],
|
||||||
[14, 14],
|
[14, 14],
|
||||||
[14, 15],
|
[15, 14],
|
||||||
[14, 16],
|
[16, 14],
|
||||||
[14, 17],
|
[17, 14],
|
||||||
[14, 18],
|
[18, 14],
|
||||||
[14, 19],
|
[19, 14],
|
||||||
[14, 20],
|
[20, 14],
|
||||||
[13, 20],
|
[20, 13],
|
||||||
[12, 20],
|
[20, 12],
|
||||||
[11, 20],
|
[20, 11],
|
||||||
[10, 20],
|
[20, 10],
|
||||||
[9, 20],
|
[20, 9],
|
||||||
[8, 20],
|
[20, 8],
|
||||||
[7, 20],
|
[20, 7],
|
||||||
[6, 20],
|
[20, 6],
|
||||||
[5, 20],
|
[20, 5],
|
||||||
[5, 21],
|
[21, 5],
|
||||||
[5, 22],
|
[22, 5],
|
||||||
[5, 23],
|
[23, 5],
|
||||||
[5, 24]
|
[24, 5]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
"height": 4300,
|
"height": 4300,
|
||||||
"width": 2
|
"width": 2
|
||||||
},
|
},
|
||||||
"activeFile": "tiled/02_the_turn.tmx",
|
"activeFile": "tiled/Mission01.tmx",
|
||||||
"expandedProjectPaths": [
|
"expandedProjectPaths": [
|
||||||
"assets/missions",
|
|
||||||
"tiled",
|
"tiled",
|
||||||
|
"assets/missions",
|
||||||
"."
|
"."
|
||||||
],
|
],
|
||||||
"file.lastUsedOpenFilter": "All Files (*)",
|
"file.lastUsedOpenFilter": "All Files (*)",
|
||||||
@ -43,76 +43,102 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Tileset.tsx": {
|
"Tileset.tsx": {
|
||||||
"scaleInDock": 0.5,
|
"scaleInDock": 0.75,
|
||||||
"scaleInEditor": 1
|
"scaleInEditor": 1
|
||||||
},
|
},
|
||||||
"tiled/01_first_steps.tmx": {
|
"tiled/01_first_steps..tmx": {
|
||||||
"scale": 1.6494375,
|
"scale": 1,
|
||||||
"selectedLayer": 0,
|
"selectedLayer": 0,
|
||||||
"viewCenter": {
|
"viewCenter": {
|
||||||
"x": 799.9696866355956,
|
"x": 975,
|
||||||
"y": 544.1248910613466
|
"y": 640.5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tiled/01_first_steps.tmx": {
|
||||||
|
"scale": 0.75,
|
||||||
|
"selectedLayer": 0,
|
||||||
|
"viewCenter": {
|
||||||
|
"x": 800.6666666666665,
|
||||||
|
"y": 543.3333333333333
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tiled/02_the_turn.tmx": {
|
"tiled/02_the_turn.tmx": {
|
||||||
"scale": 1.6494375,
|
"scale": 1,
|
||||||
"selectedLayer": 0,
|
"selectedLayer": 0,
|
||||||
"viewCenter": {
|
"viewCenter": {
|
||||||
"x": 799.9696866355956,
|
"x": 800.5,
|
||||||
"y": 544.1248910613466
|
"y": 543.5
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tiled/03_fork_in_the_road.tmx": {
|
"tiled/03_fork_in_the_road.tmx": {
|
||||||
"scale": 1.6494375,
|
"scale": 1,
|
||||||
"selectedLayer": 0,
|
"selectedLayer": 0,
|
||||||
"viewCenter": {
|
"viewCenter": {
|
||||||
"x": 799.9696866355956,
|
"x": 800.5,
|
||||||
"y": 544.1248910613466
|
"y": 543.5
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tiled/04_crossroads.tmx": {
|
"tiled/04_crossroads.tmx": {
|
||||||
"scale": 1.6494375,
|
"scale": 1,
|
||||||
"selectedLayer": 0,
|
"selectedLayer": 0,
|
||||||
"viewCenter": {
|
"viewCenter": {
|
||||||
"x": 799.9696866355956,
|
"x": 800.5,
|
||||||
"y": 544.1248910613466
|
"y": 543.5
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tiled/05_the_maze.tmx": {
|
"tiled/05_the_maze.tmx": {
|
||||||
"scale": 1.6494375,
|
"scale": 1.6494375,
|
||||||
"selectedLayer": 0,
|
"selectedLayer": 0,
|
||||||
"viewCenter": {
|
"viewCenter": {
|
||||||
"x": 799.9696866355956,
|
"x": 799.9696866355955,
|
||||||
"y": 544.1248910613466
|
"y": 544.1248910613467
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"tiled/06_multiple_fronts.tmx": {
|
||||||
|
"scale": 1.6494375,
|
||||||
|
"selectedLayer": 0,
|
||||||
|
"viewCenter": {
|
||||||
|
"x": 799.9696866355955,
|
||||||
|
"y": 544.1248910613467
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tiled/Mission01.tmx": {
|
"tiled/Mission01.tmx": {
|
||||||
"scale": 0.5,
|
"scale": 1,
|
||||||
"selectedLayer": 0,
|
"selectedLayer": 0,
|
||||||
"viewCenter": {
|
"viewCenter": {
|
||||||
"x": 799,
|
"x": 833,
|
||||||
"y": 543
|
"y": 628.5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"last.exportedFilePath": "C:/Work/Projects/Matej/towerdefense/public/tiled",
|
||||||
"last.externalTilesetPath": "/home/koneko/Programing/js/towerdefense/public",
|
"last.externalTilesetPath": "/home/koneko/Programing/js/towerdefense/public",
|
||||||
"map.height": 17,
|
"map.height": 17,
|
||||||
"map.lastUsedFormat": "tmx",
|
"map.lastUsedExportFilter": "All Files (*)",
|
||||||
|
"map.lastUsedFormat": "json",
|
||||||
"map.tileHeight": 64,
|
"map.tileHeight": 64,
|
||||||
"map.tileWidth": 64,
|
"map.tileWidth": 64,
|
||||||
"map.width": 25,
|
"map.width": 25,
|
||||||
"openFiles": [
|
"openFiles": [
|
||||||
"Mission011.tmx",
|
"tiled/04_crossroads.tmx",
|
||||||
"tiled/Mission01.tmx",
|
"tiled/05_the_maze.tmx",
|
||||||
"tiled/02_the_turn.tmx",
|
|
||||||
"tiled/01_first_steps.tmx"
|
|
||||||
],
|
|
||||||
"project": "maps.tiled-project",
|
|
||||||
"recentFiles": [
|
|
||||||
"Mission011.tmx",
|
|
||||||
"tiled/Mission01.tmx",
|
"tiled/Mission01.tmx",
|
||||||
"tiled/01_first_steps.tmx",
|
"tiled/01_first_steps.tmx",
|
||||||
"tiled/02_the_turn.tmx",
|
"tiled/02_the_turn.tmx",
|
||||||
|
"tiled/03_fork_in_the_road.tmx",
|
||||||
|
"tiled/06_multiple_fronts.tmx"
|
||||||
|
],
|
||||||
|
"project": "maps.tiled-project",
|
||||||
|
"recentFiles": [
|
||||||
|
"tiled/04_crossroads.tmx",
|
||||||
|
"tiled/05_the_maze.tmx",
|
||||||
|
"tiled/06_multiple_fronts.tmx",
|
||||||
|
"tiled/03_fork_in_the_road.tmx",
|
||||||
|
"tiled/02_the_turn.tmx",
|
||||||
|
"tiled/01_first_steps.tmx",
|
||||||
|
"tiled/Mission01.tmx",
|
||||||
|
"tiled/01_first_steps..tmx",
|
||||||
|
"Mission011.tmx",
|
||||||
"Tileset.tsx",
|
"Tileset.tsx",
|
||||||
"Mission01.tmx",
|
"Mission01.tmx",
|
||||||
"C:/home/koneko/dumping/tiles/TiledTDThree64.tmx"
|
"C:/home/koneko/dumping/tiles/TiledTDThree64.tmx"
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<map version="1.10" tiledversion="1.11.2" orientation="orthogonal" renderorder="right-down" width="25" height="17" tilewidth="64" tileheight="64" infinite="0" nextlayerid="2" nextobjectid="1">
|
<map version="1.10" tiledversion="1.11.2" orientation="orthogonal" renderorder="right-down" width="25" height="17" tilewidth="64" tileheight="64" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||||
<tileset firstgid="1" source="../Tileset.tsx"/>
|
<tileset firstgid="1" source="../Tileset.tsx"/>
|
||||||
<layer id="1" name="Tile Layer 1" width="25" height="17">
|
<layer id="1" name="Tile Layer 1" width="25" height="17">
|
||||||
<data encoding="csv">
|
<data encoding="csv">
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
@ -11,8 +10,9 @@
|
|||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
|
4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
|
||||||
18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,
|
18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
@ -20,6 +20,6 @@
|
|||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15
|
||||||
</data>
|
</data>
|
||||||
</layer>
|
</layer>
|
||||||
</map>
|
</map>
|
@ -1,25 +1,25 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<map version="1.10" tiledversion="1.11.2" orientation="orthogonal" renderorder="right-down" width="25" height="17" tilewidth="64" tileheight="64" infinite="0" nextlayerid="2" nextobjectid="1">
|
<map version="1.10" tiledversion="1.11.2" orientation="orthogonal" renderorder="right-down" width="25" height="17" tilewidth="64" tileheight="64" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||||
<tileset firstgid="1" source="../Tileset.tsx"/>
|
<tileset firstgid="1" source="../Tileset.tsx"/>
|
||||||
<layer id="1" name="Tile Layer 1" width="25" height="17">
|
<layer id="1" name="Tile Layer 1" width="25" height="17">
|
||||||
<data encoding="csv">
|
<data encoding="csv">
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
18,18,18,18,18,18,18,18,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
|
4,4,4,4,4,4,4,4,4,4,4,4,4,5,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
|
18,18,18,18,18,18,18,18,18,18,18,18,18,19,15,15,15,15,15,3,4,4,4,4,4,
|
||||||
|
32,32,32,32,32,32,32,32,32,32,32,7,18,19,15,15,15,15,15,17,18,18,18,18,18,
|
||||||
|
15,15,15,15,15,15,15,15,15,15,15,17,18,19,15,15,15,15,15,17,18,6,32,32,32,
|
||||||
|
15,15,15,15,15,15,15,15,15,15,15,17,18,19,15,15,15,15,15,17,18,19,15,15,15,
|
||||||
|
15,15,15,15,15,15,15,15,15,15,15,17,18,19,15,15,15,15,15,17,18,19,15,15,15,
|
||||||
|
15,15,3,4,4,4,4,4,4,4,4,21,18,19,15,15,15,15,15,17,18,19,15,15,15,
|
||||||
|
15,15,17,18,18,18,18,18,18,18,18,18,18,19,15,15,15,15,15,17,18,19,15,15,15,
|
||||||
|
15,15,17,18,6,32,32,32,32,32,32,32,32,33,15,15,15,15,15,17,18,19,15,15,15,
|
||||||
|
15,15,17,18,19,15,15,15,15,15,15,15,15,15,15,15,15,15,15,17,18,19,15,15,15,
|
||||||
|
15,15,17,18,20,4,4,4,4,4,4,4,4,4,4,4,4,4,4,21,18,19,15,15,15,
|
||||||
|
15,15,17,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,19,15,15,15,
|
||||||
|
15,15,31,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,33,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15
|
||||||
</data>
|
</data>
|
||||||
</layer>
|
</layer>
|
||||||
</map>
|
</map>
|
@ -1,25 +1,25 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<map version="1.10" tiledversion="1.11.2" orientation="orthogonal" renderorder="right-down" width="25" height="17" tilewidth="64" tileheight="64" infinite="0" nextlayerid="2" nextobjectid="1">
|
<map version="1.10" tiledversion="1.11.2" orientation="orthogonal" renderorder="right-down" width="25" height="17" tilewidth="64" tileheight="64" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||||
<tileset firstgid="1" source="../Tileset.tsx"/>
|
<tileset firstgid="1" source="../Tileset.tsx"/>
|
||||||
<layer id="1" name="Tile Layer 1" width="25" height="17">
|
<layer id="1" name="Tile Layer 1" width="25" height="17">
|
||||||
<data encoding="csv">
|
<data encoding="csv">
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
|
||||||
15,15,15,15,15,15,15,15,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,
|
15,15,15,15,15,15,15,17,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,
|
||||||
15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,17,18,6,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,
|
||||||
15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,17,18,19,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
4,4,4,4,4,4,4,21,18,19,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
18,18,18,18,18,18,18,18,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
18,18,18,18,18,18,18,18,18,19,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
32,32,32,32,32,32,32,7,18,19,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,17,18,19,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,17,18,20,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,
|
||||||
15,15,15,15,15,15,15,15,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,
|
15,15,15,15,15,15,15,17,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,31,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15
|
||||||
</data>
|
</data>
|
||||||
</layer>
|
</layer>
|
||||||
</map>
|
</map>
|
@ -1,25 +1,25 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<map version="1.10" tiledversion="1.11.2" orientation="orthogonal" renderorder="right-down" width="25" height="17" tilewidth="64" tileheight="64" infinite="0" nextlayerid="2" nextobjectid="1">
|
<map version="1.10" tiledversion="1.11.2" orientation="orthogonal" renderorder="right-down" width="25" height="17" tilewidth="64" tileheight="64" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||||
<tileset firstgid="1" source="../Tileset.tsx"/>
|
<tileset firstgid="1" source="../Tileset.tsx"/>
|
||||||
<layer id="1" name="Tile Layer 1" width="25" height="17">
|
<layer id="1" name="Tile Layer 1" width="25" height="17">
|
||||||
<data encoding="csv">
|
<data encoding="csv">
|
||||||
|
15,15,15,15,15,15,15,15,15,15,15,15,15,17,18,19,15,15,15,15,15,15,15,15,15,
|
||||||
|
15,15,15,15,15,15,3,4,4,4,4,4,4,21,18,19,15,15,15,15,15,15,15,15,15,
|
||||||
|
15,15,15,15,15,15,17,18,18,18,18,18,18,18,18,19,15,15,15,15,15,15,15,15,15,
|
||||||
|
15,15,15,15,15,15,17,18,6,32,32,32,32,32,32,33,15,15,15,15,15,15,15,15,15,
|
||||||
|
15,15,15,15,15,15,17,18,20,4,4,4,4,5,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
|
15,15,15,15,15,15,17,18,18,18,18,18,18,19,15,15,15,15,15,3,4,4,4,4,4,
|
||||||
|
15,15,15,15,15,15,31,32,32,32,32,7,18,19,15,15,15,15,15,17,18,18,18,18,18,
|
||||||
|
15,15,15,15,15,15,15,15,15,15,15,17,18,19,15,15,15,15,15,17,18,6,32,32,32,
|
||||||
|
15,15,15,15,15,15,15,15,15,15,15,17,18,19,15,15,15,15,15,17,18,19,15,15,15,
|
||||||
|
15,15,15,15,15,15,15,15,15,15,15,17,18,20,4,4,4,4,4,21,18,19,15,15,15,
|
||||||
|
15,15,15,15,15,15,15,15,15,15,15,17,18,18,18,18,18,18,18,18,18,19,15,15,15,
|
||||||
|
15,15,15,15,15,15,15,15,15,15,15,31,32,32,7,18,6,32,32,32,32,33,15,15,15,
|
||||||
|
4,4,4,4,4,4,4,4,4,4,4,4,4,4,21,18,19,15,15,15,15,15,15,15,15,
|
||||||
|
18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,19,15,15,15,15,15,15,15,15,
|
||||||
|
32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,33,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
</data>
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
</layer>
|
||||||
18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,18,18,18,18,18,18,18,18,18
|
|
||||||
</data>
|
|
||||||
</layer>
|
|
||||||
</map>
|
</map>
|
@ -1,25 +1,25 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<map version="1.10" tiledversion="1.11.2" orientation="orthogonal" renderorder="right-down" width="25" height="17" tilewidth="64" tileheight="64" infinite="0" nextlayerid="2" nextobjectid="1">
|
<map version="1.10" tiledversion="1.11.2" orientation="orthogonal" renderorder="right-down" width="25" height="17" tilewidth="64" tileheight="64" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||||
<tileset firstgid="1" source="../Tileset.tsx"/>
|
<tileset firstgid="1" source="../Tileset.tsx"/>
|
||||||
<layer id="1" name="Tile Layer 1" width="25" height="17">
|
<layer id="1" name="Tile Layer 1" width="25" height="17">
|
||||||
<data encoding="csv">
|
<data encoding="csv">
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,19,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,7,18,19,15,15,15,15,15,15,
|
||||||
18,18,18,18,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,3,4,4,4,4,4,4,4,4,4,4,4,4,4,5,17,18,19,15,15,15,15,15,15,
|
||||||
15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,17,18,18,18,18,18,18,18,18,18,18,18,18,18,19,17,18,19,15,15,15,15,15,15,
|
||||||
15,15,15,15,18,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,17,18,6,32,32,32,32,32,32,32,32,32,7,18,19,17,18,19,15,15,15,15,15,15,
|
||||||
15,15,15,15,18,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,17,18,19,15,15,15,15,15,15,15,15,15,17,18,20,21,18,20,4,4,4,4,5,15,
|
||||||
15,15,15,15,18,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,17,18,19,15,15,15,15,15,15,15,15,15,17,18,18,18,18,18,18,18,18,18,20,4,
|
||||||
18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,
|
15,17,18,19,3,4,4,4,4,4,4,5,15,17,18,6,7,18,6,32,32,7,18,18,18,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,17,18,19,17,18,18,18,18,18,18,19,15,17,18,19,17,18,19,15,15,31,32,32,32,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,17,18,19,17,18,6,32,32,7,18,20,4,21,18,19,17,18,19,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,17,18,19,17,18,19,15,15,17,18,18,18,18,18,19,17,18,19,15,15,15,15,15,15,
|
||||||
15,15,15,15,18,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,17,18,19,17,18,19,15,15,31,32,32,32,32,32,33,17,18,19,15,15,15,15,15,15,
|
||||||
18,18,18,18,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,17,18,19,17,18,20,4,4,4,4,4,4,4,4,4,21,18,19,15,15,15,15,15,15,
|
||||||
15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
4,21,18,19,17,18,18,18,18,18,18,18,18,18,18,18,18,18,19,15,15,15,15,15,15,
|
||||||
15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,18,18,18,18,18,
|
18,18,18,19,31,32,32,32,32,32,32,32,32,32,32,32,32,32,33,15,15,15,15,15,15,
|
||||||
15,15,15,15,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,15,15,15,15
|
32,32,32,33,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15
|
||||||
</data>
|
</data>
|
||||||
</layer>
|
</layer>
|
||||||
</map>
|
</map>
|
@ -1,25 +1,25 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<map version="1.10" tiledversion="1.11.2" orientation="orthogonal" renderorder="right-down" width="25" height="17" tilewidth="64" tileheight="64" infinite="0" nextlayerid="2" nextobjectid="1">
|
<map version="1.10" tiledversion="1.11.2" orientation="orthogonal" renderorder="right-down" width="25" height="17" tilewidth="64" tileheight="64" infinite="0" nextlayerid="2" nextobjectid="1">
|
||||||
<tileset firstgid="1" source="../Tileset.tsx"/>
|
<tileset firstgid="1" source="../Tileset.tsx"/>
|
||||||
<layer id="1" name="Tile Layer 1" width="25" height="17">
|
<layer id="1" name="Tile Layer 1" width="25" height="17">
|
||||||
<data encoding="csv">
|
<data encoding="csv">
|
||||||
|
15,15,15,15,17,18,19,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
|
15,3,4,4,21,18,19,15,15,15,15,15,3,4,4,4,4,4,4,4,4,4,5,15,15,
|
||||||
|
15,17,18,18,18,18,19,15,15,15,15,15,17,18,18,18,18,18,18,18,18,18,19,15,15,
|
||||||
|
15,17,18,6,32,32,33,15,15,15,15,15,17,18,6,32,32,32,32,32,7,18,19,15,15,
|
||||||
|
15,17,18,20,4,4,4,4,4,4,4,4,21,18,19,15,15,15,15,15,17,18,20,4,4,
|
||||||
|
15,17,18,18,18,18,18,18,18,18,18,18,18,18,19,15,15,15,15,15,17,18,18,18,18,
|
||||||
|
15,31,32,32,32,32,32,32,32,32,32,32,32,32,33,15,15,15,15,15,31,32,32,32,32,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
4,4,4,5,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
18,18,18,19,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
32,7,18,19,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,
|
15,17,18,19,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,17,18,19,15,15,15,15,15,15,3,4,4,4,4,4,4,4,5,15,15,15,15,15,15,
|
||||||
15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,17,18,19,15,15,15,15,15,15,17,18,18,18,18,18,18,18,20,4,4,4,4,4,4,
|
||||||
15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,17,18,20,4,4,4,4,4,4,21,18,6,32,32,32,7,18,18,18,18,18,18,18,18,
|
||||||
18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,
|
15,17,18,18,18,18,18,18,18,18,18,18,19,15,15,15,31,32,32,32,32,32,32,32,32,
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,
|
15,31,32,32,32,32,32,32,32,32,32,32,33,15,15,15,15,15,15,15,15,15,15,15,15
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,
|
</data>
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,
|
</layer>
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,18,15,15,15,15,15,15,15,15,15,15,15,15,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,18,15,15,15,18,18,18,18,18,18,18,18,18,
|
|
||||||
15,15,15,15,15,15,15,15,15,15,15,15,18,15,15,15,18,15,15,15,15,15,15,15,15
|
|
||||||
</data>
|
|
||||||
</layer>
|
|
||||||
</map>
|
</map>
|
@ -92,7 +92,7 @@ export type GenericGemImprovement = {
|
|||||||
gemValueUp: number;
|
gemValueUp: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type PathDefinition = [[row: number, column: number]];
|
export type PathDefinition = [[column: number, row: number]];
|
||||||
|
|
||||||
export enum TerrainType {
|
export enum TerrainType {
|
||||||
Restricted = 0,
|
Restricted = 0,
|
||||||
|
@ -49,8 +49,8 @@ export default class Creep extends GameObject {
|
|||||||
this.maxHealth = this.stats.health;
|
this.maxHealth = this.stats.health;
|
||||||
this.path = path;
|
this.path = path;
|
||||||
// Added + 32 to center them.
|
// Added + 32 to center them.
|
||||||
this.x = path[0][1] * Engine.GridCellSize + Engine.GridCellSize / 2;
|
this.x = path[0][0] * Engine.GridCellSize + Engine.GridCellSize / 2;
|
||||||
this.y = path[0][0] * Engine.GridCellSize + Engine.GridCellSize / 2;
|
this.y = path[0][1] * Engine.GridCellSize + Engine.GridCellSize / 2;
|
||||||
// TODO: Unsubscribe from events once the scene is destroyed
|
// TODO: Unsubscribe from events once the scene is destroyed
|
||||||
Engine.GameScene.events.on(CreepEvents.TakenDamage, (creepID, damage) => {
|
Engine.GameScene.events.on(CreepEvents.TakenDamage, (creepID, damage) => {
|
||||||
if (creepID != this.id) return;
|
if (creepID != this.id) return;
|
||||||
@ -95,10 +95,10 @@ export default class Creep extends GameObject {
|
|||||||
const targetCell = this.path[this.pathIndex + 1];
|
const targetCell = this.path[this.pathIndex + 1];
|
||||||
|
|
||||||
// Added + 32 for centering.
|
// Added + 32 for centering.
|
||||||
const targetX = targetCell[1] * Engine.GridCellSize + Engine.GridCellSize / 2;
|
const targetX = targetCell[0] * Engine.GridCellSize + Engine.GridCellSize / 2;
|
||||||
const targetY = targetCell[0] * Engine.GridCellSize + Engine.GridCellSize / 2;
|
const targetY = targetCell[1] * Engine.GridCellSize + Engine.GridCellSize / 2;
|
||||||
const directionX = targetCell[1] - currentCell[1];
|
const directionX = targetCell[0] - currentCell[0];
|
||||||
const directionY = targetCell[0] - currentCell[0];
|
const directionY = targetCell[1] - currentCell[1];
|
||||||
if (directionX > 0) {
|
if (directionX > 0) {
|
||||||
// Going right
|
// Going right
|
||||||
if (this.direction != 1) {
|
if (this.direction != 1) {
|
||||||
|
@ -133,7 +133,7 @@ export class Grid extends GameObject {
|
|||||||
for (let x = 0; x < this.gameMap.rows; x++) {
|
for (let x = 0; x < this.gameMap.rows; x++) {
|
||||||
let type = this.gameMap.cells[x][y];
|
let type = this.gameMap.cells[x][y];
|
||||||
if (!type) type = 1;
|
if (!type) type = 1;
|
||||||
const isPath = this.gameMap.paths.some((path) => path.some((p) => p[0] === x && p[1] === y));
|
const isPath = this.gameMap.paths.some((path) => path.some((p) => p[1] === x && p[0] === y));
|
||||||
if (isPath) type = TerrainType.Path;
|
if (isPath) type = TerrainType.Path;
|
||||||
let cell = new Cell(type, x, y, isPath);
|
let cell = new Cell(type, x, y, isPath);
|
||||||
this.cells.push(cell);
|
this.cells.push(cell);
|
||||||
|
@ -61,7 +61,7 @@ export default class WaveManager extends GameObject {
|
|||||||
console.log('Wave manager creep spawned, ', creep, this.ticks);
|
console.log('Wave manager creep spawned, ', creep, this.ticks);
|
||||||
if (!this.finished && this.creeps.every((creep) => creep.spawned)) {
|
if (!this.finished && this.creeps.every((creep) => creep.spawned)) {
|
||||||
this.finished = true;
|
this.finished = true;
|
||||||
console.log('wave maanger finisehd');
|
console.log('wave manager finished');
|
||||||
this.events.emit(WaveManagerEvents.Finished);
|
this.events.emit(WaveManagerEvents.Finished);
|
||||||
}
|
}
|
||||||
} else if (creep.spawned) {
|
} else if (creep.spawned) {
|
||||||
|