<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to SCRIPT_Singleton_PlayerData</title><link>https://sourceforge.net/p/hyperjamalworld/wiki/SCRIPT_Singleton_PlayerData/</link><description>Recent changes to SCRIPT_Singleton_PlayerData</description><atom:link href="https://sourceforge.net/p/hyperjamalworld/wiki/SCRIPT_Singleton_PlayerData/feed" rel="self"/><language>en</language><lastBuildDate>Wed, 04 Oct 2023 20:43:45 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/hyperjamalworld/wiki/SCRIPT_Singleton_PlayerData/feed" rel="self" type="application/rss+xml"/><item><title>SCRIPT_Singleton_PlayerData modified by Benedict Jäggi</title><link>https://sourceforge.net/p/hyperjamalworld/wiki/SCRIPT_Singleton_PlayerData/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="script-singletonsplayerdatagd"&gt;Script: Singletons/PlayerData.gd&lt;/h1&gt;
&lt;p&gt;Some variables and functions which are used globally over all levels.&lt;/p&gt;
&lt;h2 id="var-actual_lifes"&gt;var actual_lifes&lt;/h2&gt;
&lt;p&gt;How many lifes the player has left.&lt;/p&gt;
&lt;h2 id="var-is_active"&gt;var is_active&lt;/h2&gt;
&lt;p&gt;Player is active and not death.&lt;/p&gt;
&lt;h2 id="var-is_big"&gt;var is_big&lt;/h2&gt;
&lt;p&gt;Player is grown or not.&lt;/p&gt;
&lt;h2 id="var-map_pos_id"&gt;var map_pos_id&lt;/h2&gt;
&lt;p&gt;On which MapNavNode is the player on the main map. &lt;br/&gt;
It's the nodes ID.&lt;/p&gt;
&lt;h2 id="var-actual_map_node"&gt;var actual_map_node&lt;/h2&gt;
&lt;p&gt;The MapNavNode the player is on.&lt;br/&gt;
It's the node entity itself.&lt;/p&gt;
&lt;h2 id="var-actual_stars"&gt;var actual_stars&lt;/h2&gt;
&lt;p&gt;The star counter.&lt;/p&gt;
&lt;h2 id="var-collected_stars"&gt;var collected_stars&lt;/h2&gt;
&lt;p&gt;A dictionary which determines if a star is already collected.&lt;/p&gt;
&lt;h2 id="var-actual_coins"&gt;var actual_coins&lt;/h2&gt;
&lt;p&gt;The coin counter.&lt;br/&gt;
If the player has 100 coins, &lt;em&gt;actual_lifes&lt;/em&gt; is plus one and &lt;em&gt;actual_coins&lt;/em&gt; is set to 0.&lt;/p&gt;
&lt;h2 id="func-addcoin"&gt;func addCoin()&lt;/h2&gt;
&lt;p&gt;Adds one coin to the coin cointer. Resets it and adds one life if it reaches 100.&lt;/p&gt;
&lt;h2 id="func-addstar"&gt;func addStar()&lt;/h2&gt;
&lt;p&gt;Adds one star to the star counter.&lt;/p&gt;
&lt;h2 id="func-staralreadycollected"&gt;func starAlreadyCollected()&lt;/h2&gt;
&lt;p&gt;Returns if a star is already collected or not.&lt;/p&gt;
&lt;p&gt;Back to &lt;a class="alink" href="/p/hyperjamalworld/wiki/Scripts/"&gt;[Scripts]&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benedict Jäggi</dc:creator><pubDate>Wed, 04 Oct 2023 20:43:45 -0000</pubDate><guid>https://sourceforge.net29a5c3f250dcf7465e4eef4bc6d33d4daae55384</guid></item></channel></rss>