Exemplo n.º 1
0
		/// <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>
		protected override void Initialize ()
		{
			character = new CharacterEntity (this.GraphicsDevice);

			base.Initialize ();
				
		}
Exemplo n.º 2
0
 protected override void Initialize()
 {
     // TODO: Add your initialization logic here
     AssetBufferer.BufferImages(this.Content);
     this.character = new CharacterEntity(this.GraphicsDevice);
     this.characterAnimator = new CharacterAnimator(this.character);
     this.inputHandler = new PlayerInputHandler(this.character);
     this.fallingStuffAnimator = new FallingStuffAnimator();
     this.collisionHandler = new CollisionHandler(this.character, this.fallingStuffAnimator.fallingEntites);
     this.graphics.PreferredBackBufferWidth = Globals.GLOBAL_WIDTH;
     this.graphics.PreferredBackBufferHeight = Globals.GLOBAL_HEIGHT;
     this.graphics.ApplyChanges();
     base.Initialize();
 }
Exemplo n.º 3
0
 /* consente al gioco di eseguire qualsiasi inizializzazione che dev eeseguire
  * prima d'iniziare l'esecuzione, questo è dove può interrogare per tutti i servizi
  * richiesti e caricare qualsiasi non-grafico contenuti correlati, chiamata base:
  * Initialize inizializza tutti i componenti  */
 protected override void Initialize()
 {
     character = new CharacterEntity(this.GraphicsDevice);
     base.Initialize();
 }