cloakfall
    Preparing search index...

    Function buildPlayers

    • Create players and associated properties. Takes an integer for the number of players to generate. Returns an array of players. WARNING: This is a recursive function.

      Parameters

      • humans: number
      • root: DomItem

        the game's own root, since a player isn't attached to it yet at this point - see playerStats

      • robots: number = 0
      • players: Player[] = []

      Returns Player[]