RunningOutOfPower/RunPower/RunPower/InvincibleGame.cs
/// <summary>
/// Allows the game to perform any initialization it needs to before starting to run.
/// This is where it can query for any required services and load any non-graphic
/// related content.  Calling base.Initialize will enumerate through any components
/// and initialize them as well.
/// </summary>
Allows the game to perform any initialization it needs to before starting to run.
This is where it can query for any required services and load any non-graphic
related content.  Calling base.Initialize will enumerate through any components
and initialize them as well.
Allows the game to perform any initialization it needs to before starting to run . This is where it can query for any required services and load any non - graphic related content . Calling base . Initialize will enumerate through any components and initialize them as well .
protected override void Initialize()
        {
            var gamepadListener = new GamePadListener(new GamePadListenerSettings());
            Components.Add(new InputListenerComponent(this, gamepadListener));
            gamepadListener.ThumbStickMoved += GamepadListener_ThumbStickMoved;
               gamepadListener.ButtonDown += GamepadListenerOnButtonDown;            
            _enemies = new List<AnimatedSprite>();
            _blocks = new List<AnimatedSprite>();
            base.Initialize();
        }
protected override void Initialize ( ) { var gamepadListener = new GamePadListener ( new GamePadListenerSettings ( ) ) ; Components . Add ( new InputListenerComponent ( this , gamepadListener ) ) ; gamepadListener . ThumbStickMoved += GamepadListener_ThumbStickMoved ; gamepadListener . ButtonDown += GamepadListenerOnButtonDown ; _enemies = new List < AnimatedSprite > ( ) ; _blocks = new List < AnimatedSprite > ( ) ; base . Initialize ( ) ; }
Allows the game to perform any initialization it needs to before starting to run.
Allows the game to perform any initialization it needs to before starting to run .
// TODO: Add your initialization logic here             //_player = new Animation(Vector2.Zero, 0.0f, 1.0f, 0); //input listeners //BRB