Exemplo n.º 1
0
        /// <summary>
        /// Acrescenta o monstro na fase
        /// </summary>
        private Tile LoadMonsterTile(int x, int y)
        {
            // Atribui a posição inicial
            this.start = Mathematics.GetBottomCenter(this.GetBounds(x, y));

            // Inicializa o personagem principal
            this.monster = new Monster(this, this.start);

            // Posição onde está o inimigo não tem colisão
            return new Tile(null, Collision.Passable);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Acrescenta o monstro na fase
        /// </summary>
        private void LoadMonsterTile(int x, int y)
        {
            // Atribui a posição inicial
            Vector2 posicao = Mathematics.GetBottomCenter(this.GetBounds(x, y));

            // Inicializa o personagem principal
            this.monster = new Monster(this, posicao);
        }