public EnemyHandler(Player p, Background b) { readyEnemies = new List<Enemy>(); visibleEnemies = new List<Enemy>(); player = p; background = b; }
public GamePage() { InitializeComponent(); // Get the content manager from the application contentManager = (Application.Current as App).Content; // Create a timer for this page timer = new GameTimer(); timer.UpdateInterval = TimeSpan.FromTicks(/*333333*/ 111111); timer.Update += OnUpdate; timer.Draw += OnDraw; player = new Player(); background = new Background(); clouds = new Clouds(); enemyHandler = new EnemyHandler(player, background); intersectionHandler = new IntersectionHandler(); buildingHandler = new BuildingHandler(); powerupHandler = new PowerupHandler(); }