[client] added SoundManager

This commit is contained in:
2018-02-20 17:47:04 +03:00
parent 2e856c1256
commit 22e7965442
5 changed files with 66 additions and 0 deletions

View File

@@ -9,10 +9,12 @@ import ru.m.tankz.Type;
class Bullet extends MobileEntity {
public var playerId(default, null):PlayerId;
public var tankId(default, null):Int;
public var tank(default, null):Tank;
public var config(default, null):BulletConfig;
public function new(tank:Tank) {
this.playerId = tank.playerId;
this.tank = tank;
this.config = tank.config.bullet;
super(new Rectangle(0, 0, config.width, config.height), config.speed, Direction.RIGHT);
this.tankId = tank.id;

View File

@@ -15,6 +15,7 @@ import ru.m.tankz.map.LevelMap;
enum EntityChange {
DEATH;
HIT;
LIVE_UP;
}