[client] added SoundManager
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -15,6 +15,7 @@ import ru.m.tankz.map.LevelMap;
|
||||
enum EntityChange {
|
||||
DEATH;
|
||||
HIT;
|
||||
LIVE_UP;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user