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); } }
public override void Draw(DrawHelper draw) { draw.DrawSprite(GetDrawMatrix(), enemyTexture, new Vector2(-0.02f, -0.02f), new Vector2(0.02f, 0.02f)); }
public void Draw(DrawHelper draw) { draw.DrawSprite(GetDrawMatrix(), bulletTexture, new Vector2(-0.005f, -0.005f), new Vector2(0.005f, 0.005f)); }