Esempio n. 1
0
 public override void Load(ContentManager content, Vector2 pos)
 {
     base.Load(content, pos);
     m_animation          = new Animation(content.Load <Texture2D>("redEnemySpriteSheet"), (1 / 6f), 4, 1, 0, 3);
     redEnemyLivesCounter = new ImageCounter(content.Load <Texture2D>("heart"), content.Load <Texture2D>("heartGrey"), Vector2.Zero, new Vector2(35, 0), 3, 2);
     deathAnimation       = new Animation(content.Load <Texture2D>("redEnemyDeathSpriteSheet"), (1 / 6f), 4, 1, 0, 3, false);
 }
Esempio n. 2
0
 public override void Load(ContentManager content, Vector2 pos)
 {
     continueButton = new Button();
     continueButton.Load(content, new Vector2(1400, 750), "continueButton", "continueButtonHighlight");
     continueButton.isEnabled = false;
     moveableSprites          = new List <IMoveable>();
     collideableSprites       = new List <ICollideable>();
     Floor = new Sprite();
     Floor.Load(content, new Vector2(0, 650), "floor");
     cursor = new Cursor(content);
     LoadLevel(content, 1);
     livesCounter    = new ImageCounter(content.Load <Texture2D>("heartActive"), content.Load <Texture2D>("heartInactive"), new Vector2(Game.GraphicsDevice.Viewport.Width - 340, 10), new Vector2(50, 0), 5, 4);
     woodPileCounter = new ImageCounter(content.Load <Texture2D>("woodPileActive"), content.Load <Texture2D>("woodPileInactive"), new Vector2(Game.GraphicsDevice.Viewport.Width / 2 - 170, 10), new Vector2(30, 0), 10, 9);
     nailCounter     = new ImageCounter(content.Load <Texture2D>("nailActive"), content.Load <Texture2D>("nailInactive"), new Vector2(80, 10), new Vector2(40, 0), 5, 4);
     font            = content.Load <SpriteFont>("Font");
     PickupSound     = content.Load <SoundEffect>("Pickup");
     camera          = new Camera(Game.GraphicsDevice.Viewport);
     Input.camera    = camera;
     m_content       = content;
 }