Example #1
0
 public void Update(float dt)
 {
     if (!GameOver) {
         currentMap = currentMap.ResolveDoors(hero);
         hero.Update(dt);
         currentMap.Update(dt,hero);
     }
     else {
         if (InputManager.Instance.KeyPressed(OpenTK.Input.Key.Space)) {
             currentMap = room1;
             hero.Position = new Point(spawnTile.X * tileSize, spawnTile.Y * tileSize);
             GameOver = false;
         }
     }
 }