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); }
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); }
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); }
public override void Create(RenderContext context) { m_windParticles = new WindParticleSystem(context, 4); m_windParticles.Initialize(); context.Component.Add(m_windParticles); }