Beispiel #1
0
 public void addLife()
 {
     if (lives < 3)
     {
         lives++;
     }
     cue = new GUISprite(new Vector2(GameVars.RENDERWIDTH / 2, GameVars.RENDERHEIGHT / 2), 5, Color.White, GameVars.fullGUIRatio, 4);
     g.Timers.Add(new TimerAction(1.3f, delegate { cue.fadeOut(0.3f); }));
     //TODO: Add Life Animation here.
 }
Beispiel #2
0
 public void Update(GameTime gameTime)
 {
     if (cue != null)
     {
         cue.Update(gameTime);
         if (cue.disposable)
         {
             cue = null;
         }
     }
 }