Esempio n. 1
0
 private void LoadContents()
 {
     Begin.LoadContent(this.Content);
     Speler.LoadContent(this.Content);
     BulletPlayer.LoadContent(this.Content);
     Robot.LoadContent(this.Content);
     MonsterRight.LoadContent(this.Content);
     MonsterLeft.LoadContent(this.Content);
     Tank.LoadContent(this.Content);
     FireRobot.LoadContent(this.Content);
     BulletEnemy.LoadContent(this.Content);
     Leven.LoadContent(this.Content);
     PlatformGround.LoadContent(this.Content);
     PlatformLeft.LoadContent(this.Content);
     PlatformGroundReverse.LoadContent(this.Content);
     PlatformMiddle.LoadContent(this.Content);
     PlatformRight.LoadContent(this.Content);
     Flamethrower.LoadContent(this.Content);
     BulletFlame.LoadContent(this.Content);
     Box.LoadContent(this.Content);
     Barrel.LoadContent(this.Content);
     SpikesUp.LoadContent(this.Content);
     SpikesDown.LoadContent(this.Content);
     Mine.LoadContent(this.Content);
     Floppy.LoadContent(this.Content);
     Cola.LoadContent(this.Content);
     KeyRed.LoadContent(this.Content);
     KeyBlue.LoadContent(this.Content);
     Door.LoadContent(this.Content);
     Text.LoadContent(this.Content);
     Background.LoadContent(this.Content);
     Score.LoadContent(this.Content);
     PrimitiveDrawing.LoadContent(this.Content);
 }
Esempio n. 2
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            base.Draw(spriteBatch);

            if (_health < 3)
            {
                PrimitiveDrawing.DrawLiveBar(spriteBatch, new Vector2(LocationX + 10, LocationY - 15), (int)(100 / (3.0 / _health)), Color.Red);
            }
        }