Ejemplo n.º 1
0
 public EnemyHandler(Player p, Background b)
 {
     readyEnemies = new List<Enemy>();
     visibleEnemies = new List<Enemy>();
     player = p;
     background = b;
 }
Ejemplo n.º 2
0
        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();
        }