Exemplo n.º 1
0
 public void Update(float dt)
 {
     currentMap = currentMap.ResolveDoors(hero);
     hero.Update(dt);
 }
Exemplo n.º 2
0
        public void Initialize(OpenTK.GameWindow window)
        {
            Window = window;
            window.ClientSize = new Size(room1Layout[0].Length * 30, room1Layout.Length * 30);
            TextureManager.Instance.UseNearestFiltering = true;

            hero = new PlayerCharacter(heroSheet, new Point(spawnTile.X * 30, spawnTile.Y * 30));
            room1 = new Map(room1Layout, spriteSheets, spriteSources, 2, 0, 4, 8, 9, 10);
            room2 = new Map(room2Layout, spriteSheets, spriteSources, 0, 2, 4, 8, 9, 10);
            room1[4][7].MakeDoor(room2, new Point(1, 4));
            room2[4][0].MakeDoor(room1, new Point(6, 4));
            room1[3][2].IsCloud = true;
            room1[3][3].IsCloud = true;
            currentMap = room1;
        }
Exemplo n.º 3
0
 public void MakeDoor(Map target, Point location)
 {
     DoorTarget = target;
     DoorLocation = location;
     IsDoor = true;
 }