public override void Draw(GameTime time, Renderer renderer)
        {
            base.Draw(time, renderer);

            //LIGHT PASS
            var lightMapPass = renderer.ApplyPass(RenderType.DarknessMask, Color.Black);
            DrawCelestialsOrdered(time, lightMapPass);

            //MAIN PASS
            var resultPass = renderer.ApplyPass(RenderType.Final, Color.Black);

            _background.Render(time, resultPass);
            foreach (var system in _nebulas) system.Render(time, resultPass);
            DrawCelestialsOrdered(time, resultPass);

            if (!freeTransformMode)
            {
                using (var sbh = new SpriteBatchHelper())
                {
                    sbh.DrawString(_fontSmall, "Join your hands to explore.", new Vector2(350, 50), 0, Color.White);

                    sbh.Draw(_descriptionPanel, new Vector2(963, 356), new Vector2(586, 672));
                    sbh.DrawString(_fontBig, YND.Speech[_speechKeyTitle].Text, new Vector2(940, 80), 520, Color.White);
                    sbh.DrawString(_fontSmall, YND.Speech[_speechKey].Text, new Vector2(963, 356), 520, Color.White);
                }
            }

            _backButton.Render(time, resultPass);
        }
예제 #2
0
        public override void Draw(GameTime time, Renderer renderer)
        {
            base.Draw(time, renderer);

            //LIGHT PASS
            var lightMapPass = renderer.ApplyPass(RenderType.DarknessMask, Color.Black);

            PrepareCeletialsForDrawing();
            DrawPlanetsOrdered(time, lightMapPass);

            using (var sbh = new SpriteBatchHelper())
            {
                sbh.DrawString(_fontBig, "Episodes", new Vector2(640, 360), 0, new Color(30, 30, 50, 255));
            }

            DrawStarsOrdered(time, lightMapPass);

            //MAIN PASS
            var resultPass = renderer.ApplyPass(RenderType.Final, Color.Black);

            _background.Render(time, resultPass);
            DrawCelestialsOrdered(time, resultPass);

            _backButton.Render(time, resultPass);
            _buttons.Each((b) => b.Render(time, resultPass));

            using (var sbh = new SpriteBatchHelper())
            {
                sbh.DrawStringOutlined(_fontBig, "Episodes", new Vector2(640, 360), 0, new Color(30, 30, 50, 255), Color.White, 2);
            }
        }
        public override void Draw(GameTime time, Renderer renderer)
        {
            base.Draw(time, renderer);

            //LIGHT PASS
            var lightMapPass = renderer.ApplyPass(RenderType.DarknessMask, Color.Black);
            DrawCelestialsOrdered(time, lightMapPass);

            //MAIN PASS
            var resultPass = renderer.ApplyPass(RenderType.Final, Color.Black);

            _background.Render(time, resultPass);

            DrawCelestialsOrdered(time, resultPass);

            using (var sbh = new SpriteBatchHelper())
            {
                sbh.Draw(_descriptionPanel, new Vector2(963, 356), new Vector2(586, 672));
                sbh.Draw(_scientistPhoto, new Vector2(350, 360), new Vector2(486, 600));
                sbh.DrawString(_fontBig, YND.Speech[_speechKeyTitle].Text, new Vector2(963, 100), 520, Color.White);

                sbh.DrawString(_fontSmall, YND.Speech[_speechKey].Text, new Vector2(963, 386), 520, Color.White);
            }

            _backButton.Render(time, resultPass);
        }
        public override void Draw(GameTime time, Renderer renderer)
        {
            base.Draw(time, renderer);

            //LIGHT PASS
            var lightMapPass = renderer.ApplyPass(RenderType.DarknessMask, Color.Black);

            DrawCelestialsOrdered(time, lightMapPass);

            //MAIN PASS
            var resultPass = renderer.ApplyPass(RenderType.Final, Color.Black);

            _background.Render(time, resultPass);
            DrawCelestialsOrdered(time, resultPass);

            _backButton.Render(time, resultPass);

            using (var sbh = new SpriteBatchHelper())
            {
                String txt = "External resources used in project:";
                txt += "\n\nTextures:\n\tNASA, ESA, and the Hubble SM4 ERO Team \n\tUsed NASA materials are in the public domain\n\tand are not copyrighted.";
                txt += "\n\nFont:\n\t\"Orbitron\" available under OFL licence.";
                txt += "\n\nMusic:\n\tQuiet Noise (Soft String mix) by Brendan J. Boyd\n\tAvailable under CC BY-NC-SA 3.0 licence.";
                txt += "\n\nArticles:\n\tParts of wikipedia articles.\n\tAvailable under CC BY SA 3.0 licence.";
                txt += "\n\nLibraries:\n\tKinect Toolbox\n\tAvailable under Microsoft Public License.";

                sbh.DrawStringOutlined(_fontSmall, txt, new Vector2(930, 300), 0, new Color(30, 30, 50, 255), Color.White);
            }
        }
        public override void Draw(GameTime time, Renderer renderer)
        {
            _frames[_currentFrame].Stage.Draw(time, renderer);

            _backButton.Render(time,renderer.CurrentPass);

            if (_frames[_currentFrame].Narration != null)
            {
                using (var sbh = new SpriteBatchHelper())
                {
                    sbh.DrawStringOutlined(_font, YND.Speech[_frames[_currentFrame].Narration.Value].Text, new Vector2(640, 650), 1200, Color.White, Color.Black, 2, 1);
                }
            }
        }
예제 #6
0
        public override void Draw(GameTime time, Renderer renderer)
        {
            base.Draw(time, renderer);

            //LIGHT PASS
            var lightMapPass = renderer.ApplyPass(RenderType.DarknessMask, Color.Black);
            DrawCelestialsOrdered(time, lightMapPass);

            //MAIN PASS
            var resultPass = renderer.ApplyPass(RenderType.Final, Color.Black);

            _background.Render(time, resultPass);
            foreach (ParticleSystem system in _nebulas) system.Render(time, resultPass);
            DrawCelestialsOrdered(time, resultPass);
        }
예제 #7
0
        public override void Draw(GameTime time, Renderer renderer)
        {
            base.Draw(time, renderer);

            //LIGHT PASS
            var lightMapPass = renderer.ApplyPass(RenderType.DarknessMask, Color.Black);

            DrawCelestialsOrdered(time, lightMapPass);

            //MAIN PASS
            var resultPass = renderer.ApplyPass(RenderType.Final, Color.Black);

            DrawFrame(time, resultPass);

            DrawCelestialsOrdered(time, resultPass);
        }
예제 #8
0
        public override void Draw(GameTime time, Renderer renderer)
        {
            base.Draw(time, renderer);

            //LIGHT PASS
            var lightMapPass = renderer.ApplyPass(RenderType.DarknessMask, Color.Black);

            DrawCelestialsOrdered(time, lightMapPass);

            //MAIN PASS
            var resultPass = renderer.ApplyPass(RenderType.Final, Color.Black);

            _background.Render(time, resultPass);
            DrawCelestialsOrdered(time, resultPass);

            _backButton.Render(time, resultPass);
            _externalButton.Render(time,resultPass);

            using (var sbh = new SpriteBatchHelper())
            {
                sbh.DrawStringOutlined(_fontBig, "        Imagine Cup 2013\n\n\nYellow Noodle Dog Team:\n      Bartosz Jankowski\n        Tomasz Gieniusz", new Vector2(930, 200), 0, new Color(30,30,50, 255), Color.White);
            }
        }
예제 #9
0
 public virtual void FinishDrawing(GameTime time, Renderer renderer, bool realFullScreen = false)
 {
     renderer.MoveToScreen(RenderType.Final, realFullScreen);
 }
예제 #10
0
 public virtual void Draw(GameTime time, Renderer renderer)
 {
     renderer.ApplyLightSources(SpaceModel.Planets.Where(o => o is StarObject).Select(o => o.Position).Concat(_fakeLights).ToArray());
 }
예제 #11
0
        protected override void Initialize()
        {
            YND.Init(this, MakeStagesFactory());
            _renderer = new Renderer(RenderType.DarknessMask, RenderType.Final);
            YND.ResetAfterSpriteBatch();

            base.Initialize();
        }