Пример #1
0
        public MainPage()
        {
            InitializeComponent();
            _rand = new Random();

            //Cursor.Hide();

            this._clock = new GameClock();
            this._spawnClock = new GameClock();
            MouseState.Listen(this, this);

            CompositionTarget.Rendering += new EventHandler(CompositionTarget_Rendering);

            this._sprites = new List<Sprite>();

            this._viseur = new Viseur(this.graphicDevice);
            this._viseur.Load();

            this._sprites.Add(this._viseur);

            this._score = 0;

            this._spawnInterval = TimeSpan.FromSeconds(3);
        }
Пример #2
0
        public MainPage()
        {
            InitializeComponent();
            _rand = new Random();

            //Cursor.Hide();

            this._clock      = new GameClock();
            this._spawnClock = new GameClock();
            MouseState.Listen(this, this);

            CompositionTarget.Rendering += new EventHandler(CompositionTarget_Rendering);

            this._sprites = new List <Sprite>();

            this._viseur = new Viseur(this.graphicDevice);
            this._viseur.Load();

            this._sprites.Add(this._viseur);

            this._score = 0;

            this._spawnInterval = TimeSpan.FromSeconds(3);
        }