protected void DrawPointsRing() { float ratio = ((float)points / UserManager.highestPoints); int frame = (int)(100 * ratio); if (frame >= 99) { frame = 99; } if (frame >= 50) { frame -= 50; pointsAnim.SetClip(1); } else { pointsAnim.SetClip(0); } pointsAnim.SetFrame(frame); if (collector != null) { pointsAnim.Draw(collector.teamColour); } else { pointsAnim.Draw(); } }
public override void Draw(GameTime gameTime) { ScreenManager.SetTarget(display); spriteBatch.Begin(); pointerAnim.Draw(); stateAnim.Draw(); DrawTeamRing(); DrawUsername(); DrawNotifications(); DrawPointsRing(); spriteBatch.End(); }
public override void Draw(GameTime gameTime) { ScreenManager.SetTarget(display); ScreenManager.spriteBatch.Begin(); if (!isDying) { animation.Draw(Color.White, scale); } else { explosion.Draw(); } ScreenManager.spriteBatch.End(); }
public override void Draw(GameTime gameTime) { foreach (Projectile projectile in projectiles) { projectile.Draw(gameTime); } ScreenManager.SetTarget(display); ScreenManager.spriteBatch.Begin(); portalAnim.Draw(Color.White, scale * 0.7f); if (explodeAnim.playing) { explodeAnim.Draw(Color.White, scale * 1.5f); } collectorAnim.Draw(teamColour, scale); if (poofAnim.playing) { poofAnim.Draw(); } ScreenManager.spriteBatch.End(); }
public void Draw(Color tint, float scale) { anim.Draw(tint, scale); }