Beispiel #1
0
        public static Boss boss;                                             //the main boss of the stage

        public level(Game Game, int sID)
        {
            stageID = sID;
            Console.WriteLine("started level");
            game = Game;

            player = new Player(game, this);

            manager        = new gameManager(game);
            manager.player = player;

            hud = new game_HUD(game, player);

            SpriteFont font  = game.Content.Load <SpriteFont>("fonts/small");
            Texture2D  pixel = game.Content.Load <Texture2D>("p");

            console = new DebugConsole(pixel, font, new Rectangle(1366 - 400, 0, 400, 0), game);

            camera       = new camera();
            camera.focus = player;

            player.cam = camera;

            bg           = new background(game);
            bg.reference = camera;

            sm = new ScriptManager(game, player);

            attackoverlay = new AttackOverlay(game);
        }
Beispiel #2
0
        public tests(Game Game)
        {
            game = Game;

            //player = new Player(game);

            manager        = new gameManager(game);
            manager.player = player;

            hud = new game_HUD(game, player);

            tiles.Clear();
            enemies.Clear();

            for (int i = 0; i < 80; i++)
            {
                tiles.Add(new t1(game, new Vector2(32 * i, 550)));
            }

            //enemies.Add(new e1(game, new Vector2(800, 500), player, enemies.Count));
        }