Пример #1
0
        protected override void Initialize()
        {
            Assets.LoadContent(Content);
            this.IsMouseVisible = true;
            meny = new Menu(new Vector2(800, 0), 150, 800, true);

            hpbar = new Healthbar(Player.life, 200, 20);

            base.Initialize();
        }
Пример #2
0
        public BigEnemy()
        {
            size    = 50;
            hp      = 60;
            Reward  = 20;
            speed   = 2f; // 1 block per sekund
            color   = Color.White;
            texture = Assets.BigRockEnemy;

            hpbar = new Healthbar(hp, size);
        }
Пример #3
0
        public SpiderEnemy()
        {
            size    = 30;
            hp      = 20;
            Reward  = 5;
            speed   = 4.5f; // block per sekund
            color   = Color.White;
            texture = Assets.spider;

            hpbar = new Healthbar(hp, size);
        }
Пример #4
0
        public Greengrej()
        {
            size    = 50;
            hp      = 60;
            Reward  = 20;
            speed   = 2f; // 1 block per sekund
            color   = Color.White;
            texture = Assets.Greengrej;

            hpbar = new Healthbar(hp, size);
        }
Пример #5
0
        public BasicEnemy()
        {
            size   = 40;
            hp     = 30;
            Reward = 10;
            speed  = 3f; // 1 block per sekund
            color  = Color.White;

            texture = Assets.RockEnemy;

            hpbar = new Healthbar(hp, size);
        }