Пример #1
0
 public BlockGun(Pulsar owner, Vector2 relativePosition, float[] savedPositions, float rotation = 0) : base(owner, relativePosition, rotation, savedPositions)
 {
     turnSpeed    = (float)Math.PI / 60;
     turretLength = 11;
     texture      = Miasma.EntityExtras[12];
     origin       = new Vector2(3.5f, 3.5f);
     this.owner   = owner;
 }
Пример #2
0
 public Block(Vector2 Position, Vector2 Velocity, Pulsar parent, float rotation = 0, int team = 0) : base(Position, rotation, team)
 {
     this.Velocity = Velocity;
     this.parent   = parent;
     health        = maxHealth = 10;
     //parent.blocks.Add(this);
     moveTo   = Position;
     entityID = 23;
 }