private static void SetupGameData()
    {
        // TODO: setup based on level info
//		HUDLoader.LoadHud("hud_bundle");

        // TODO: setup based on players added
        CharacterLoader.LoadCharacter("Axel");
//		CharacterLoader.LoadCharacter("Axel_HD");
//		CharacterLoader.LoadCharacter("Bat_HD");
//		CharacterLoader.LoadCharacter("happy char");
//		CharacterLoader.LoadCharacter("Axel_px");
    }
Example #2
0
        private void LoadContent(ref ContentManager contentMan)
        {
            normalmapEffect = ScreenManager.contentMan.Load <Effect>("normalmap");

            MapEngine.LoadContent(ScreenManager.contentMan);
            InfoWriter.LoadContent();

            MapEngine.NewMap();
            MapEngine.LoadMap();
            mapLoaded = true;

            curPlayer = new Player(ref ScreenManager.contentMan, "test_hero", MapEngine.currMap.startPoint, Directions.S,
                                   CharacterLoader.LoadCharacter(ref ScreenManager.contentMan, "test_hero", "Player"));
            curPlayer.MapSprite.texture         = ScreenManager.contentMan.Load <Texture2D>(curPlayer.MapSprite.textureName);
            curPlayer.MapSprite.FrameDimensions = new Point(55, 55);
            curPlayer.MapSprite.ResetAnimation();
        }