Пример #1
0
        public void Draw(Renderer renderer)
        {
            renderer.Begin();
            if (StageState.stageStage == 5)
            {
                renderer.DrawTexture("backGround" + StageState.worldsStage, Vector2.Zero);
            }
            particlemanager.Draw(renderer);
            renderer.DrawTexture(StageState.worldsStage + "-" + StageState.stageStage, Vector2.Zero);
            renderer.End();
            renderer.Begin(SpriteSortMode.Deferred,
                           BlendState.AlphaBlend,
                           SamplerState.LinearClamp,
                           DepthStencilState.None,
                           RasterizerState.CullCounterClockwise,
                           null,
                           camera.GetMatrix());


            map2.Draw(renderer);
            gameObjectManager.Draw(renderer);
            renderer.DrawTexture("start", new Vector2(camera.Position.X - 50, player2.GetPosition().Y - 250), motion.DrawingRange(), Color.White);
            renderer.DrawTexturealpha("gameover", camera.GetPosition(), null, alpha);

            renderer.End();
            renderer.Begin();
            renderer.DrawTexture("clear", new Vector2(Screen.Width / 2 - 400, 300), motion2.DrawingRange(), Color.White);

            renderer.End();
        }
Пример #2
0
        public void Draw(Renderer renderer)
        {
            renderer.Begin(cameraCenter);
            renderer.DrawTexture("mario", Vector2.Zero);
            map2.Draw(renderer);
            characterManager.Draw(renderer);
            renderer.End();

            renderer.Begin();
            timerUI.Draw(renderer);
            renderer.End();
        }
Пример #3
0
        public void Draw(Renderer renderer)
        {
            renderer.Begin();
            renderer.DrawTexture("world" + StageState.worldsStage, new Vector2(Screen.Width / 2 - 400, 700));
            //map2.Draw(renderer);
            //gameObjectManager.Draw(renderer);

            renderer.End();

            renderer.Begin(SpriteSortMode.Deferred,
                           BlendState.AlphaBlend,
                           SamplerState.LinearClamp,
                           DepthStencilState.None,
                           RasterizerState.CullCounterClockwise,
                           null,
                           camera.GetMatrix());
            map2.Draw(renderer);
            gameObjectManager.Draw(renderer);
            renderer.DrawTexture("stagemark1", new Vector2(87, 5), motion.DrawingRange(), Color.LightSalmon);
            renderer.DrawTexture("stagemark2", new Vector2(375, 5), motion.DrawingRange(), Color.Coral);
            renderer.DrawTexture("stagemark3", new Vector2(663, 5), motion.DrawingRange(), Color.Tomato);
            renderer.DrawTexture("stagemark4", new Vector2(951, 5), motion.DrawingRange(), Color.OrangeRed);
            renderer.DrawTexture("stagemark5", new Vector2(1239, 5), motion.DrawingRange(), Color.Red);
            renderer.DrawTexture("selectmark", new Vector2(96 * 3 + 16, 96 * 4 + 16), motion2.DrawingRange(), Color.LightSalmon);
            renderer.DrawTexture("selectmark", new Vector2(96 * 6 + 16, 96 * 4 + 16), motion2.DrawingRange(), Color.Coral);
            renderer.DrawTexture("selectmark", new Vector2(96 * 9 + 16, 96 * 4 + 16), motion2.DrawingRange(), Color.Tomato);
            renderer.DrawTexture("selectmark", new Vector2(96 * 12 + 16, 96 * 4 + 16), motion2.DrawingRange(), Color.OrangeRed);
            renderer.DrawTexture("selectmark", new Vector2(96 * 15 + 16, 96 * 4 + 16), motion2.DrawingRange(), Color.Red);
            renderer.DrawTexture("selectmark", new Vector2(96 * 1 + 16, 96 * 8 + 16), motion2.DrawingRange(), Color.LightGreen);
            renderer.DrawTexture("titleanaunse", new Vector2(-45, 850));
            if (StageState.worldsStage != 3)
            {
                renderer.DrawTexture("selectmark", new Vector2(96 * 17 + 16, 96 * 8 + 16), motion2.DrawingRange(), Color.Blue);
                renderer.DrawTexture("nextanaunse", new Vector2(1480, 850));
            }
            renderer.End();
        }