public void Update(double elapsedTime) { _delayInSeconds -= elapsedTime; if (_delayInSeconds <= 0) { _delayInSeconds = 3; _system.ChangeState("title_menu"); System.Console.WriteLine("Updating Splash"); } }
private void _openGLControl_Load(object sender, EventArgs e) { _loaded = true; Setup2DGraphics(this.ClientSize.Width, this.ClientSize.Height); _textureManager.LoadTexture("face", "face.bmp"); _textureManager.LoadTexture("face_alpha", "face_alpha.tif"); _system.AddState("splash", new SplashScreenState(_system)); _system.AddState("title_menu", new TitleMenuState(_system)); _system.AddState("sprite_test", new DrawSpriteState(_textureManager)); _system.AddState("sprite_class_test", new TestSpriteClassState(_textureManager)); _system.ChangeState("sprite_class_test"); }