Beispiel #1
0
        private void InitialStartTimer()
        {
            new GameTimer(1,
                          delegate()
            {
                TextEffectMgr.AddRiseFadeInScrnCoordin("3", new Vector2(400, 300), 3, Color.Red, LayerDepth.Text, GameFonts.Lucida, 200, 1.4f);
            });

            new GameTimer(2,
                          delegate()
            {
                TextEffectMgr.AddRiseFadeInScrnCoordin("2", new Vector2(400, 300), 3, Color.Red, LayerDepth.Text, GameFonts.Lucida, 200, 1.4f);
            });

            new GameTimer(3,
                          delegate()
            {
                TextEffectMgr.AddRiseFadeInScrnCoordin("1", new Vector2(400, 300), 3, Color.Red, LayerDepth.Text, GameFonts.Lucida, 200, 1.4f);
            });

            new GameTimer(4,
                          delegate()
            {
                TextEffectMgr.AddRiseFadeInScrnCoordin("Start!", new Vector2(400, 300), 3, Color.Red, LayerDepth.Text, GameFonts.Lucida, 200, 1.4f);
            });
            new GameTimer(5,
                          delegate()
            {
                gameStart = true;
            });
        }
Beispiel #2
0
        public FindPathGameScreen(IAI tankAI)
        {
            BaseGame.CoordinMgr.SetScreenViewRect(scrnRect);
            camera  = new Camera(2, cameraStartPos, 0f);
            compass = new Compass(new Vector2(740, 540));
            camera.Enable();

            InitialBackGround();

            InitialScene();

            InitialAI(tankAI);

            camera.Focus(tank, true);

            GameTimer timer = new GameTimer(5,
                                            delegate()
            {
                TextEffectMgr.AddRiseFadeInScrnCoordin("test FadeUp in Scrn!", new Vector2(100, 100), 1f, Color.Black, LayerDepth.Text, GameFonts.Lucida, 300, 0.5f);
                TextEffectMgr.AddRiseFade("test FadeUp in Login!", new Vector2(100, 100), 1f, Color.White, LayerDepth.Text, GameFonts.Lucida, 300, 0.5f);
            });
        }