Skip to main content

Planet Info

<planet>

Planet.xml Attributes

id: The unique identifier for the planet. This is an integer that tells about each planet.
starsNeeded: The number of stars required to unlock this planet.
name: The name of the planet, defines what the planet is called in the game.
levelRange: The range of levels associated with this planet. For example, levelRange="0-1" means this planet includes levels 0 and 1

Example:

<planet id="0" starsNeeded="30" name="Mathilde" levelRange="0-1" />  
<planet id="1" starsNeeded="30" name="Mathilde" levelRange="2-3" />  
<planet id="2" starsNeeded="30" name="Mathilde" levelRange="4-5" />  
<planet id="3" starsNeeded="30" name="Mathilde" levelRange="6" />  

Planet_info.gd Attributes:

id: Stores the planet’s unique id, matching the id attribute in the XML.
starsNeeded: Stores the minimum stars required to unlock the planet. Loaded from the starsNeeded attribute in the XML.
name_: Stores the name of the planet, which is used to display in the game. Loaded from the name attribute.
levelRange: Stores the range of levels associated with the planet. This is parsed from the levelRange attribute in the XML.