Exemplo n.º 1
0
        public Door AddFrontFadingDoor(Texture2D texture, Vector2 position, OpenState state, Vector2 offset, Vector2 collision)
        {
            Door door = new Door(texture, position, state);
            door.SetCollisionBox(collision.X, collision.Y, Vector2.Zero);
            door.visible = false;
            doorList.Add(door);

            MagicTile img = new MagicTile(texture, position + offset);
            door.tileList.Add(img);
            img.SetPlayerMode(PlayerObjectMode.One);
            frontFGList.Add(img);

            return door;
        }
Exemplo n.º 2
0
        public MagicTile AddCoolTile(Texture2D texture)
        {
            if (tileList.Count == 0) return null;

            MagicTile tile = new MagicTile(texture, tileList[0].position);
            tile.SetPlayerMode(PlayerObjectMode.Two);
            tileList.Add(tile);
            return tile;
        }