add 2 other creeps, messing with balance
BIN
public/assets/creeps/quick/0.png
Normal file
After Width: | Height: | Size: 128 KiB |
BIN
public/assets/creeps/quick/1.png
Normal file
After Width: | Height: | Size: 127 KiB |
BIN
public/assets/creeps/quick/10.png
Normal file
After Width: | Height: | Size: 125 KiB |
BIN
public/assets/creeps/quick/11.png
Normal file
After Width: | Height: | Size: 127 KiB |
BIN
public/assets/creeps/quick/2.png
Normal file
After Width: | Height: | Size: 125 KiB |
BIN
public/assets/creeps/quick/3.png
Normal file
After Width: | Height: | Size: 117 KiB |
BIN
public/assets/creeps/quick/4.png
Normal file
After Width: | Height: | Size: 121 KiB |
BIN
public/assets/creeps/quick/5.png
Normal file
After Width: | Height: | Size: 117 KiB |
BIN
public/assets/creeps/quick/6.png
Normal file
After Width: | Height: | Size: 116 KiB |
BIN
public/assets/creeps/quick/7.png
Normal file
After Width: | Height: | Size: 117 KiB |
BIN
public/assets/creeps/quick/8.png
Normal file
After Width: | Height: | Size: 121 KiB |
BIN
public/assets/creeps/quick/9.png
Normal file
After Width: | Height: | Size: 117 KiB |
BIN
public/assets/creeps/tank/0.png
Normal file
After Width: | Height: | Size: 130 KiB |
BIN
public/assets/creeps/tank/1.png
Normal file
After Width: | Height: | Size: 128 KiB |
BIN
public/assets/creeps/tank/10.png
Normal file
After Width: | Height: | Size: 122 KiB |
BIN
public/assets/creeps/tank/11.png
Normal file
After Width: | Height: | Size: 128 KiB |
BIN
public/assets/creeps/tank/2.png
Normal file
After Width: | Height: | Size: 122 KiB |
BIN
public/assets/creeps/tank/3.png
Normal file
After Width: | Height: | Size: 118 KiB |
BIN
public/assets/creeps/tank/4.png
Normal file
After Width: | Height: | Size: 116 KiB |
BIN
public/assets/creeps/tank/5.png
Normal file
After Width: | Height: | Size: 117 KiB |
BIN
public/assets/creeps/tank/6.png
Normal file
After Width: | Height: | Size: 119 KiB |
BIN
public/assets/creeps/tank/7.png
Normal file
After Width: | Height: | Size: 117 KiB |
BIN
public/assets/creeps/tank/8.png
Normal file
After Width: | Height: | Size: 116 KiB |
BIN
public/assets/creeps/tank/9.png
Normal file
After Width: | Height: | Size: 118 KiB |
@ -4,8 +4,42 @@
|
||||
"textures": [],
|
||||
"textureArrayLength": 12,
|
||||
"stats": {
|
||||
"health": 2,
|
||||
"speed": 0.04,
|
||||
"health": 5,
|
||||
"speed": 2.4,
|
||||
"special": null,
|
||||
"resistance": {
|
||||
"physical": 0,
|
||||
"divine": 0,
|
||||
"fire": 0,
|
||||
"ice": 0,
|
||||
"frostfire": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "quick",
|
||||
"textures": [],
|
||||
"textureArrayLength": 12,
|
||||
"stats": {
|
||||
"health": 7,
|
||||
"speed": 2.4,
|
||||
"special": null,
|
||||
"resistance": {
|
||||
"physical": 0,
|
||||
"divine": 0,
|
||||
"fire": 0,
|
||||
"ice": 0,
|
||||
"frostfire": 0
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "tank",
|
||||
"textures": [],
|
||||
"textureArrayLength": 12,
|
||||
"stats": {
|
||||
"health": 7,
|
||||
"speed": 2.4,
|
||||
"special": null,
|
||||
"resistance": {
|
||||
"physical": 0,
|
||||
|
@ -109,7 +109,7 @@
|
||||
{
|
||||
"firstCreepSpawnTick": 500,
|
||||
"spawnIntervalTicks": 1000,
|
||||
"creeps": [0]
|
||||
"creeps": [1, 1, 1, 1, 1]
|
||||
}
|
||||
],
|
||||
"offeredGems": [0, 1, 2, 3]
|
||||
@ -119,7 +119,7 @@
|
||||
{
|
||||
"firstCreepSpawnTick": 500,
|
||||
"spawnIntervalTicks": 1000,
|
||||
"creeps": [0, 0]
|
||||
"creeps": [2, 2, 2, 2, 2]
|
||||
}
|
||||
],
|
||||
"offeredGems": [0, 1, 2, 3]
|
||||
|
@ -72,7 +72,8 @@ export type PathDefinition = [[row: number, column: number]];
|
||||
|
||||
export enum CreepType {
|
||||
Basic = 0,
|
||||
Fast = 1,
|
||||
Quick = 1,
|
||||
Tank = 2,
|
||||
}
|
||||
|
||||
export enum TerrainType {
|
||||
|
@ -46,7 +46,7 @@ export default class Creep extends GameObject {
|
||||
this.container.y = -50;
|
||||
this.sprite.width = Engine.GridCellSize;
|
||||
this.sprite.height = Engine.GridCellSize;
|
||||
this.speed = this.stats.speed;
|
||||
this.speed = this.stats.speed / 60;
|
||||
this.health = this.stats.health;
|
||||
this.maxHealth = this.stats.health;
|
||||
this.path = path;
|
||||
|