public virtual void Update(GameTime gameTime)
 {
     the_hero.Update(gameTime);
     the_cam.Update(the_hero.pos);
     the_map.Update(gameTime);
     the_hud.Update(gameTime);
     CheckHeroCollisionWithEnemies();
     lost = the_hero.IsDeath();
     foreach (Enemy the_enemy in the_enemies)
     {
         the_enemy.Update(gameTime);
     }
     foreach (Box the_box in the_boxes)
     {
         the_box.Update(gameTime);
     }
     levelIndicator.SetText("LV: " + the_file.GetLevel(), Color.White);
     //Console.WriteLine(the_hero.IsDeath());
 }
示例#2
0
        void SetFileLevel()
        {
            int level = the_file.GetLevel();

            switch (level)
            {
            case 1:
                SetScene1();
                break;

            case 2:
                SetScene2();
                break;

            case 3:
                SetScene3();
                break;

            default:
                break;
            }
        }