コード例 #1
0
ファイル: Part.cs プロジェクト: Tankooni/shoe-polish
 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;
 }
コード例 #2
0
ファイル: Part.cs プロジェクト: Tankooni/shoe-polish
 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;
 }