Exemplo n.º 1
0
        /// <summary>
        /// Automatically goes through and calls update on everything you added to the game loop,
        /// override this function to handle custom input and perform collisions/
        /// </summary>
        virtual public void update()
        {
            // Update all time-related stuff.
            defaultGroup.update();
            scrollingSpritesGroup.update();


            elapsedInState += FlxG.elapsed;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Left over from FlxConsole
        /// </summary>
        public void update()
        {
            _elapsedSinceLastButtonNeeded += FlxG.elapsed;

            if (_elapsedSinceLastButtonNeeded > timeToShowButton)
            {
                xboxButton.visible     = false;
                keyboardButton.visible = false;
                ouyaButton.visible     = false;

                xboxDirection.visible     = false;
                keyboardDirection.visible = false;
                ouyaDirection.visible     = false;
            }

            if (visible)
            {
                hudGroup.update();
            }
        }
Exemplo n.º 3
0
 /**
  * Automatically goes through and calls update on everything you added to the game loop,
  * override this function to handle custom input and perform collisions/
  */
 virtual public void update()
 {
     // Update all time-related stuff.
     defaultGroup.update();
 }