Exemplo n.º 1
0
        public override void LoadContent(IContentManager contentManager)
        {
            NamePosition  = this.Find("Name");
            ScorePosition = this.Find("Score");

            Font  = contentManager.Load <SpriteFont>("Fonts/Gabriola54");
            Hover = contentManager.Load <Animation>("Animations/HouseHover", true);
            Hover.Bind(this);
            Hover.Play();
            Hover.FrameTime = RandomHelper.Next(0f, 60f);
            Hover.Fps       = RandomHelper.Next(6f, 10f);
        }
Exemplo n.º 2
0
        public override void LoadContent(IContentManager contentManager)
        {
            ScorePosition         = this.Find("Score");
            HouseListBox          = this.Find <ListBox>("HouseListBox");
            HouseListBox.Comparer = HouseComparer;

            Font  = contentManager.Load <SpriteFont>("Fonts/Gabriola200");
            Hover = contentManager.Load <Animation>("Animations/SchoolHover", true);
            Hover.Bind(this);
            Hover.Play();
            Hover.FrameTime = RandomHelper.Next(0f, 60f);
            Hover.Fps       = RandomHelper.Next(6f, 10f);

            MagicExplosionEmitter = this.Find <ParticleEmitter>("MagicExplosionEmitter");
        }