Beispiel #1
0
 public PartBase(Entity e, int PartItem, int Col, int Row)
 {
     Type   = "PartBase";
     curCol = Col;
     curRow = Row;
     myShip = e as BaseShip;
     myShip = e as Ship;
     MyType = PartItem;
 }
Beispiel #2
0
 public Bullet(float x, float y, Vector2f VelocityIn, Entity ShipIn)
     : base(x, y, Punk.SpaceWorld.WorldLength, Punk.SpaceWorld.WorldHeight)
 {
     Type    = "Bullet";
     Graphic = BulletShot = Image.CreateCircle(2, FP.Color(0x4083FF));
     X       = x;
     Y       = y;
     BulletShot.CenterOO();
     SetHitboxTo(BulletShot);
     CenterOrigin();
     myShip   = ShipIn as Ship;
     Velocity = VelocityIn + myShip.Velocity;
 }