Example #1
0
 /// <summary>
 /// Adds the heliboy animations.
 /// </summary>
 private void addHeliboyAnimations()
 {
     hAnim = new Animation();
     hAnim.AddFrame(PictureManager.Pictures["heliboy1"], 100);
     hAnim.AddFrame(PictureManager.Pictures["heliboy2"], 100);
     hAnim.AddFrame(PictureManager.Pictures["heliboy3"], 100);
     hAnim.AddFrame(PictureManager.Pictures["heliboy4"], 100);
     hAnim.AddFrame(PictureManager.Pictures["heliboy5"], 100);
     hAnim.AddFrame(PictureManager.Pictures["heliboy4"], 100);
     hAnim.AddFrame(PictureManager.Pictures["heliboy3"], 100);
     hAnim.AddFrame(PictureManager.Pictures["heliboy2"], 100);
 }
Example #2
0
        /// <summary>
        /// Nullify this instance.
        /// </summary>
        private void nullify()
        {
            robot = null;
            hb = null;
            bg = null;
            paint = null;
            anim = null;
            hAnim = null;
            currentCharacterSprite = null;

            System.GC.Collect ();
        }
Example #3
0
 /// <summary>
 /// Adds the character animations.
 /// </summary>
 private void addCharacterAnimations()
 {
     anim = new Animation ();
     anim.AddFrame (PictureManager.Pictures ["character1"], 1250);
     anim.AddFrame (PictureManager.Pictures ["character2"], 50);
     anim.AddFrame (PictureManager.Pictures ["character3"], 50);
     anim.AddFrame (PictureManager.Pictures ["character2"], 50);
 }