static public void Draw() { if (isAlive) { sprite.Draw(); } }
// DRAW public void Draw() { if (isFired) { sprite.Draw(); } }
// DRAW private void DrawSprite() { if (!(flickeringCooldown > 0f && flickeringCooldown <= 0.2f || flickeringCooldown >= 0.4f && flickeringCooldown <= 0.6f || flickeringCooldown >= 0.8f && flickeringCooldown <= 1f)) { sprite.Draw(); } }
public void Draw() { //baseRect.Draw(); //cannonRect.Draw(); spriteobj.Draw(); for (int i = 0; i < bulletPlayer.Length; i++) { if (bulletPlayer[i].IsAlive) { bulletPlayer[i].Draw(); } } }
public void Draw() { sprite.Draw(); }
public void DrawBg() { spriteBg.Draw(); }
public void Draw() { spriteobj.Draw(); }
//public void set() //{ // if (Game.GetSwitcher() == 0) // { // sprite = new SpriteObj("Assets/alienBullet_" + 0 + ".png"); // Game.SetSwitcher(1); // } // else // { // sprite = new SpriteObj("Assets/alienBullet_" + 1 + ".png"); // Game.SetSwitcher(0); // } //} public void Draw() { sprite.Draw(); //GfxTools.DrawRect((int)(Position.X - width / 2), (int)(Position.Y - height / 2), width, height, color.R, color.G, color.B); }