예제 #1
0
파일: MainPage.xaml.cs 프로젝트: T4g1/3eme
        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);
        }