예제 #1
0
        public override void Create(RenderContext context)
        {
            m_windParticles = new WindParticleSystem(context, 3);
            m_windParticles.Initialize();
            context.Component.Add(m_windParticles);

            m_WindIndicator = new GameSprite("Textures/Particles/Smoke", context);
            //m_WindIndicator = new GameSprite("Textures/Models/D_Default", context);
        }
예제 #2
0
        protected override void LoadContent()
        {
            //MENU
            //***************
            m_MenuManager = new MenuManager(m_RenderContext.ViewPortSize / 2);
            m_MenuManager.AddItem(new GUIButton("Textures/GUI/Buttons/StartNormal", "Textures/GUI/Buttons/StartOnHover", ButtonName.Start, m_RenderContext));
            m_MenuManager.AddItem(new GUIButton("Textures/GUI/Buttons/ExitNormal", "Textures/GUI/Buttons/ExitOnHover", ButtonName.Exit, m_RenderContext));
            m_MenuManager.AddItem(new GUIButton("Textures/GUI/Buttons/RestartNormal", "Textures/GUI/Buttons/RestartOnHover", ButtonName.Restart, m_RenderContext));
            m_MenuManager.AddItem(new GUIButton("Textures/GUI/Buttons/ToggleFullscreenNormal", "Textures/GUI/Buttons/ToggleFullscreenOnHover", ButtonName.Fullscreen, m_RenderContext));

            //Set the splash screen and hit screen
            m_MenuManager.BackgroundScreen = new GameSprite("Textures/GUI/BackgroundStartScreen", m_RenderContext);
            m_MenuManager.SplashScreen     = new GameSprite("Textures/GUI/DAEScreen_GUI", m_RenderContext);
            m_MenuManager.Initialize(m_RenderContext);

            m_LostMenu = new MenuManager(m_RenderContext.ViewPortSize / 2);
            m_LostMenu.AddItem(new GUIButton("Textures/GUI/Buttons/ExitNormal", "Textures/GUI/Buttons/ExitOnHover", ButtonName.Exit, m_RenderContext));
            m_LostMenu.AddItem(new GUIButton("Textures/GUI/Buttons/RestartNormal", "Textures/GUI/Buttons/RestartOnHover", ButtonName.Restart, m_RenderContext));
            m_LostMenu.Initialize(m_RenderContext);

            //SOUND
            //*****
            SoundManager.AddSound("Background", m_RenderContext);
            // SoundManager.AddSound("ButtonClick", m_RenderContext);

            //POST PROCESSING
            //***************
            m_BloomPP = new BloomPostProcessing(this);
            m_RenderContext.Component.Add(m_BloomPP);

            m_Particles = new WindParticleSystem(m_RenderContext, 7);
            // m_RenderContext.Component.Add(m_Particles);

            //GAMESCENE
            //*********

            MainScene = new GameScene();

            m_Texture = Content.Load <Texture2D>("Textures/Models/D_Default");
            m_Sprite  = new GameSprite("Textures/Models/D_Default", m_RenderContext);
            m_Sprite.Scale(0.5f);
        }
예제 #3
0
파일: Pickup.cs 프로젝트: TobieD/Glide
        public override void Create(RenderContext context)
        {
            m_windParticles = new WindParticleSystem(context, 3);
            m_windParticles.Initialize();
            context.Component.Add(m_windParticles);

            m_WindIndicator = new GameSprite("Textures/Particles/Smoke", context);
            //m_WindIndicator = new GameSprite("Textures/Models/D_Default", context);
        }
예제 #4
0
파일: Game1.cs 프로젝트: TobieD/Glide
        protected override void LoadContent()
        {
            //MENU
            //***************
            m_MenuManager = new MenuManager(m_RenderContext.ViewPortSize / 2);
            m_MenuManager.AddItem(new GUIButton("Textures/GUI/Buttons/StartNormal", "Textures/GUI/Buttons/StartOnHover", ButtonName.Start, m_RenderContext));
            m_MenuManager.AddItem(new GUIButton("Textures/GUI/Buttons/ExitNormal", "Textures/GUI/Buttons/ExitOnHover", ButtonName.Exit, m_RenderContext));
            m_MenuManager.AddItem(new GUIButton("Textures/GUI/Buttons/RestartNormal", "Textures/GUI/Buttons/RestartOnHover", ButtonName.Restart, m_RenderContext));
            m_MenuManager.AddItem(new GUIButton("Textures/GUI/Buttons/ToggleFullscreenNormal", "Textures/GUI/Buttons/ToggleFullscreenOnHover", ButtonName.Fullscreen, m_RenderContext));

            //Set the splash screen and hit screen
            m_MenuManager.BackgroundScreen = new GameSprite("Textures/GUI/BackgroundStartScreen", m_RenderContext);
            m_MenuManager.SplashScreen = new GameSprite("Textures/GUI/DAEScreen_GUI", m_RenderContext);
            m_MenuManager.Initialize(m_RenderContext);

            m_LostMenu = new MenuManager(m_RenderContext.ViewPortSize / 2);
            m_LostMenu.AddItem(new GUIButton("Textures/GUI/Buttons/ExitNormal", "Textures/GUI/Buttons/ExitOnHover", ButtonName.Exit, m_RenderContext));
            m_LostMenu.AddItem(new GUIButton("Textures/GUI/Buttons/RestartNormal", "Textures/GUI/Buttons/RestartOnHover", ButtonName.Restart, m_RenderContext));
            m_LostMenu.Initialize(m_RenderContext);

            //SOUND
            //*****
            SoundManager.AddSound("Background", m_RenderContext);
               // SoundManager.AddSound("ButtonClick", m_RenderContext);

            //POST PROCESSING
            //***************
            m_BloomPP = new BloomPostProcessing(this);
            m_RenderContext.Component.Add(m_BloomPP);

            m_Particles = new WindParticleSystem(m_RenderContext, 7);
               // m_RenderContext.Component.Add(m_Particles);

            //GAMESCENE
            //*********

            MainScene = new GameScene();

            m_Texture = Content.Load<Texture2D>("Textures/Models/D_Default");
            m_Sprite = new GameSprite("Textures/Models/D_Default", m_RenderContext);
            m_Sprite.Scale(0.5f);
        }
예제 #5
0
파일: Enemy.cs 프로젝트: TobieD/Glide
 public override void Create(RenderContext context)
 {
     m_windParticles = new WindParticleSystem(context, 4);
     m_windParticles.Initialize();
     context.Component.Add(m_windParticles);
 }
예제 #6
0
파일: Enemy.cs 프로젝트: TobieD/Glide
 public override void Create(RenderContext context)
 {
     m_windParticles = new WindParticleSystem(context, 4);
     m_windParticles.Initialize();
     context.Component.Add(m_windParticles);
 }