コード例 #1
0
ファイル: Pulsar.cs プロジェクト: qwerty3-14/Miasma
 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
ファイル: Block.cs プロジェクト: qwerty3-14/Miasma
 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;
 }