コード例 #1
0
        private Tiles LoadMageTile(int x, int y)
        {
            Vector2 position = RectangleExtensions.BottomCenter(Bounds(x, y));

            mages.Add(new Mage(this, position));

            return(new Tiles(null, TilesCollision.Passable));
        }
コード例 #2
0
        private Tiles LoadStart(int x, int y)
        {
            if (Player != null)
            {
                throw new NotSupportedException("The level can only have one starting point.");
            }

            start  = RectangleExtensions.BottomCenter(Bounds(x, y));
            player = new Player(this, start);

            return(new Tiles(null, TilesCollision.Passable));
        }