Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
        public override void Draw(GameTime gameTime)
        {
            ScreenManager.SetTarget(display);
            spriteBatch.Begin();

            pointerAnim.Draw();
            stateAnim.Draw();
            DrawTeamRing();
            DrawUsername();
            DrawNotifications();
            DrawPointsRing();

            spriteBatch.End();
        }
Esempio n. 3
0
 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();
 }
Esempio n. 4
0
        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();
        }
Esempio n. 5
0
 public void Draw(Color tint, float scale)
 {
     anim.Draw(tint, scale);
 }