Ejemplo n.º 1
0
        public override void Initialize()
        {
            m_audioManager = AudioManager.GetInstance();
            m_audioManager.LoadSound("SongOfWaterSpray",DataReader.Load<SoundEffect>("MusicAndSoundEffect/SoundEffect/SongOfWaterSpray"));
            m_audioManager.LoadSong("SongOfRunningGame",
                                    DataReader.Load<Song>("MusicAndSoundEffect/Song/MusicOfRunningGameState"));

            m_levels = MapManager.GetInstance();
            m_world = WorldManager.GetInstance();
            m_sence = SenceManager.GetInstance();
            m_effect = GraphicsManager.GetInstance();
            m_stateManager = StateManager.GetInstance();
            //m_levels.Load( "Map6" );

            m_levels.Goto( "Map0" );
            //m_levels.Load("Map0");
            player = m_world.Player;
            m_renderTarget2D = new RenderTarget2D( HealGame.Game.GraphicsDevice, 800, 600, false,
                                                   HealGame.Game.GraphicsDevice.PresentationParameters.BackBufferFormat, DepthFormat.Depth24Stencil8 );
            m_resolveTarget = new RenderTarget2D( HealGame.Game.GraphicsDevice, 800, 600, false,
                                                  HealGame.Game.GraphicsDevice.PresentationParameters.BackBufferFormat, DepthFormat.Depth24Stencil8);
                //DataReader.Load<Effect>("Effect/Blur");
        }
Ejemplo n.º 2
0
 public override void Initialize()
 {
     m_worldManager = WorldManager.GetInstance();
     m_senceManager = SenceManager.GetInstance();
 }
Ejemplo n.º 3
0
 public SenceManager()
 {
     m_instance = this;
 }
Ejemplo n.º 4
0
        public override void Initialize()
        {
            Space = new Vector2(HealGame.Game.GraphicsDevice.Viewport.Width,
                                 HealGame.Game.GraphicsDevice.Viewport.Height);
            m_level = MapManager.GetInstance();
            m_senceManager = SenceManager.GetInstance();
            m_graphic = GraphicsManager.GetInstance();
            m_entityCreator = EntityCreator.GetInstance();
            m_dialog = DialogManager.GetInstance();
            m_camera = CameraManager.GetInstance();

            m_splash = new SplashTools();
            m_splash.Initialize();

            m_handbook = new HandbookTools();
            m_handbook.Initialize();
        }
Ejemplo n.º 5
0
 static AIBase()
 {
     SenceManager = SenceManager.GetInstance();
     AudioManager = AudioManager.GetInstance();
 }