예제 #1
0
        public void PostContent()
        {
            monsterManager = MonsterManager.getInstance();
            ui = UI.getInstance();
            ui.Initialize(GraphicsDevice);
            eventsManager = EventsManager.getInstance();
            playerManager = PlayerManager.getInstance();
            combat = Combat.getInstance();

            // Loading up our test map
            map = Map.getInstance();
            map.LoadMap("map0.txt", GraphicsDevice);

            // The camera relies on the map being loaded to operate
            camera.Width = Settings.SCREEN_WIDTH;
            camera.Height = Settings.SCREEN_HEIGHT;
            camera.XMax = map.width * Settings.TILE_SIZE;
            camera.YMax = map.height * Settings.TILE_SIZE;

            // This creates a basic scenario with a couple players and monsters each, for testing
            playerManager.SpawnPlayers();

            // Kick things off
            eventsManager.RecordEvent(EventsManager.Event.GAME_STARTED);
        }
예제 #2
0
 private Input()
 {
     monsterManager = MonsterManager.getInstance();
 }