Esempio n. 1
0
        public void Draw(DrawHelper draw)
        {
            draw.DrawSprite(GetDrawMatrix(), shipTexture, new Vector2(-0.02f, -0.02f), new Vector2(0.02f, 0.02f));
            draw.DrawLine(GetVectorMatrix(new Vector2((float) Math.Cos(turretAngle), (float) Math.Sin(turretAngle)))
                             * GetTranslationMatrix() * draw.ortho
                         , new Vector2(), new Vector2(0.0f, 0.04f), Color.LightPink);

            foreach (Bullet b in bullets) {
                b.Draw(draw);
            }
        }
Esempio n. 2
0
 public override void Draw(DrawHelper draw)
 {
     draw.DrawSprite(GetDrawMatrix(), enemyTexture, new Vector2(-0.02f, -0.02f), new Vector2(0.02f, 0.02f));
 }
Esempio n. 3
0
 public void Draw(DrawHelper draw)
 {
     draw.DrawSprite(GetDrawMatrix(), bulletTexture, new Vector2(-0.005f, -0.005f), new Vector2(0.005f, 0.005f));
 }