Пример #1
0
        public void Initalize()
        {
            fmusic.Initialize();
            flose.Initialize();
            fwin.Initialize();
            text.Initialize(new Microsoft.Xna.Framework.Vector2(0, 580));
            text.Color = Color.Black;
            text.Text  = "Score : 0";
            Chimera.GUI.MainWindow.Properties.Title = "Eat The Gems With The Same Screen Color  | Each Life Give You Bonus Score +10 | Last Score : 0";
            score  = 0;
            scrcol = cols[Randomize.GenerateInteger(0, 9)];
            MouseImg.Initialize(new Microsoft.Xna.Framework.Vector2(70, 80));
            Microsoft.Xna.Framework.Vector2 vect;
            vect = Microsoft.Xna.Framework.Vector2.Zero;
            foreach (Image life in lifes)
            {
                life.Initialize(new Microsoft.Xna.Framework.Vector2(50, 50));
                life.Stretch  = true;
                life.Position = vect;
                vect         += new Microsoft.Xna.Framework.Vector2(life.Size.X + 10, 0);
            }

            Initgems();


            Chimera.Graphics.Mouse.SetImage(MouseImg);
            mousecol.Initialize(MouseImg);
        }
        /// <summary>
        /// Initializes the any option children defined for the instance.
        /// </summary>
        protected override void InitializeOptionalChildren(ISystemContext context)
        {
            base.InitializeOptionalChildren(context);

            if (AudioFile != null)
            {
                AudioFile.Initialize(context, AudioFile_InitializationString);
            }
        }
Пример #3
0
        public void Initialize()
        {
            //eff.Speed = 10;
            bg.Stretch = true;

            bg.Initialize(new Microsoft.Xna.Framework.Vector2(800, 600));

            eff.Speed = 10;
            file.Initialize();
            eff.Initialize(50);
        }