Example #1
0
        } //end Spawn()

        public bool getCollision()
        {
            return(Obstacle.getCollision());
        }
Example #2
0
        }         //end movePlayer()

        //Handles the spawning of the objects the player must avoid
        //Called every few seconds by a Timer run by the MainWindow
        public void spawn()
        {
            Obstacle obstacle = new Obstacle(playField, dispatcher, rand.Next(0, 250), player, pHitBox, speed);

            obstacles.Add(obstacle);
        } //end Spawn()