Ejemplo n.º 1
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();
        }
Ejemplo n.º 2
0
        public GameScreen(IGame game)
            : base(game)
        {
            //Initialize game-objects
            bg = new Background(0, 0, PictureManager.Pictures["background"] as AndroidImage, robot);

            robot = new Robot (0, 0);
            hb = new Heliboy (340, 360, bg, robot);

            addCharacterAnimations ();
            addHeliboyAnimations ();

            currentCharacterSprite = anim.Image;

            loadMap ();

            initializePaint ();
            initializeButtons ();
        }
Ejemplo n.º 3
0
        public GameScreen(IGame game)
            : base(game)
        {
            //Initialize game-objects
            bg = new Background(0, 0, PictureManager.Pictures["background"] as AndroidImage, robot);

            robot = new Robot(0, 0);
            hb    = new Heliboy(340, 360, bg, robot);

            addCharacterAnimations();
            addHeliboyAnimations();

            currentCharacterSprite = anim.Image;

            loadMap();

            initializePaint();
            initializeButtons();
        }
Ejemplo n.º 4
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 ();
        }