示例#1
0
文件: AtField.cs 项目: sinshu/chaos
 public AtField(GameScene game, Direction direction, Baaka parent)
     : base(game, RECTANGLE, direction == Direction.Left ? parent.Center + new Vector(-32 - 16, -64) : parent.Center + new Vector(32 - 16, -64), Vector.Zero, INIT_HEALTH)
 {
     this.direction = direction;
     this.parent = parent;
     animation = 0;
     previousHealth = health;
     energy = 192;
 }
示例#2
0
 public AtField(GameScene game, Direction direction, Baaka parent)
     : base(game, RECTANGLE, direction == Direction.Left ? parent.Center + new Vector(-32 - 16, -64) : parent.Center + new Vector(32 - 16, -64), Vector.Zero, INIT_HEALTH)
 {
     this.direction = direction;
     this.parent    = parent;
     animation      = 0;
     previousHealth = health;
     energy         = 192;
 }