<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	 xmlns:media="http://search.yahoo.com/mrss/" >

<channel>
	<title>scores &#8211; AnonyViet &#8211; English Version</title>
	<atom:link href="https://en.anonyviet.com/tag/scores/feed/" rel="self" type="application/rss+xml" />
	<link>https://en.anonyviet.com</link>
	<description>The most popular website for sharing information technology, computer networks, and security knowledge. Stay up to date with the hottest news and tips</description>
	<lastBuildDate>Fri, 21 Jun 2024 02:10:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>

<image>
	<url>https://en.anonyviet.com/wp-content/uploads/2023/01/cropped-ico-logo-75x75-1.png</url>
	<title>scores &#8211; AnonyViet &#8211; English Version</title>
	<link>https://en.anonyviet.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to display Euro 2024 scores on iPhone lock screen</title>
		<link>https://en.anonyviet.com/how-to-display-euro-2024-scores-on-iphone-lock-screen/</link>
					<comments>https://en.anonyviet.com/how-to-display-euro-2024-scores-on-iphone-lock-screen/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Fri, 21 Jun 2024 02:10:33 +0000</pubDate>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[EURO]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Lock]]></category>
		<category><![CDATA[scores]]></category>
		<category><![CDATA[screen]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=16002</guid>

					<description><![CDATA[Live Activities is a new feature launched on iOS 16.1, allowing users to monitor information directly on the iPhone&#39;s lock screen or Dynamic Island. One of the most useful uses of this feature is Show Euro 2024 score on lock screen. Thanks to that, you can easily update the results without unlocking your phone. Join [&#8230;]]]></description>
										<content:encoded><![CDATA[
<div id="ftwp-postcontent">
<p>Live Activities is a new feature launched on iOS 16.1, allowing users to monitor information directly on the iPhone&#39;s lock screen or Dynamic Island.  One of the most useful uses of this feature is <strong>Show Euro 2024 score on lock screen</strong>.  Thanks to that, you can easily update the results without unlocking your phone.</p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> belong to <span style="color: #008080;">AnonyViet</span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietoffical" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2 id="ftoc-live-activities-theo-doi-thong-tin-truc-tiep-tren-man-hinh-khoa-iphone" class="ftwp-heading"><strong>Live Activities: Monitor information directly on the iPhone lock screen</strong></h2>
<p>Live Activities is a new feature introduced in iOS 16.1, allowing you to monitor continuously updated information right on the lock screen or Dynamic Island of your iPhone.  This feature works with many different applications, not just football, but can also display:</p>
<ul>
<li><strong>Delivery status:</strong> Track your order journey without opening the shopping app.</li>
<li><strong>Sports results:</strong> Update your favorite match scores right on the lock screen.  (For example: FotMob as mentioned)</li>
<li><strong>Travel time:</strong> See actual up-to-date times of rideshare or public transit trips.</li>
<li><strong>Practice progress:</strong> Track your workout progress even with the screen off.</li>
<li><strong>And more:</strong> App developers are constantly integrating Live Activities, providing a variety of information tracking options.</li>
</ul>
<figure id="attachment_61869" aria-describedby="caption-attachment-61869" style="width: 800px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-61869 size-full" src="https://anonyviet.com/wp-content/uploads/2024/06/hien-thi-ty-so-euro-2024-tren-man-hinh-khoa-1.jpg" alt="Live Activities: Monitor information directly on the iPhone lock screen" width="800" height="666" srcset="https://anonyviet.com/wp-content/uploads/2024/06/hien-thi-ty-so-euro-2024-tren-man-hinh-khoa-1.jpg 800w, https://anonyviet.com/wp-content/uploads/2024/06/hien-thi-ty-so-euro-2024-tren-man-hinh-khoa-1-300x250.jpg 300w, https://anonyviet.com/wp-content/uploads/2024/06/hien-thi-ty-so-euro-2024-tren-man-hinh-khoa-1-768x639.jpg 768w, https://anonyviet.com/wp-content/uploads/2024/06/hien-thi-ty-so-euro-2024-tren-man-hinh-khoa-1-750x624.jpg 750w" sizes="auto, (max-width: 800px) 100vw, 800px"/><figcaption id="caption-attachment-61869" class="wp-caption-text">Live Activities: Monitor information directly on the iPhone lock screen</figcaption></figure>
<p><strong>Advantages of Live Activities:</strong></p>
<ul>
<li>See updates quickly without unlocking your phone.</li>
<li>Update information automatically in real time. You can choose which apps are allowed to display information on Live Activities.</li>
</ul>
<p><span style="color: #339966;"><em><strong>See more: <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fcach-them-lich-thi-dau-euro-2024-vao-lich-iphone%2F" class="local-link" rel="noopener">How to add Euro 2024 match schedule to iPhone calendar </a></strong></em></span></p>
<h2 id="ftoc-su-dung-fotmob-de-theo-doi-ty-so-bong-da-tren-iphone" class="ftwp-heading"><strong>Use FotMob to follow soccer scores on iPhone</strong></h2>
<p>FotMob is a free football app on the App Store that allows users to follow match scores of various tournaments including Euro 2024, Copa America, FIFA World Cup and Premier League.  In addition, FotMob also provides information on the sidelines of the tournament and detailed parameters of each player such as Cristiano Ronaldo or Kylian Mbappe.</p>
<p><strong>Step 1:</strong> Go to the App Store and search for the &#39;FotMob&#39; app or tap now<strong><a target="_blank" href="https://en.anonyviet.com/next-link/?url=https%3A%2F%2Fapps.apple.com%2Fvn%2Fapp%2Ffotmob-football-live-scores%2Fid488575683%3Fl%3Dvi" class="ext-link" rel="external nofollow noopener" onclick="this.target='_blank';"><span style="text-decoration: underline;">  HERE</span> </a></strong>> Click &#39;Get&#39; to download and install the application.</p>
<figure id="attachment_61870" aria-describedby="caption-attachment-61870" style="width: 670px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-61870 size-full" src="https://anonyviet.com/wp-content/uploads/2024/06/hien-thi-ty-so-euro-2024-tren-man-hinh-khoa-2.jpg" alt="Download FotMob" width="670" height="650" srcset="https://anonyviet.com/wp-content/uploads/2024/06/hien-thi-ty-so-euro-2024-tren-man-hinh-khoa-2.jpg 670w, https://anonyviet.com/wp-content/uploads/2024/06/hien-thi-ty-so-euro-2024-tren-man-hinh-khoa-2-300x291.jpg 300w" sizes="auto, (max-width: 670px) 100vw, 670px"/><figcaption id="caption-attachment-61870" class="wp-caption-text">Download FotMob</figcaption></figure>
<p><strong>Step 2:</strong> Open the FotMob application after installation is complete.  On the main interface, select &#39;Tournaments&#39; > Search and select &#39;Euro 2024&#39; from the list of ongoing tournaments.</p>
<p><strong>Step 3:</strong> Select the team or match icon you want to follow > Click the &#39;Follow&#39; button (star icon) in the upper right corner of the screen > Select &#39;Turn on notifications&#39; when asked to display the above scoreboard lock screen and Dynamic Island.</p>
<figure id="attachment_61871" aria-describedby="caption-attachment-61871" style="width: 700px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-61871 size-full" src="https://anonyviet.com/wp-content/uploads/2024/06/hien-thi-ty-so-euro-2024-tren-man-hinh-khoa-3.jpg" alt="Tap the &#39;Follow&#39; button (star icon) in the upper right corner of the screen" width="700" height="448" srcset="https://anonyviet.com/wp-content/uploads/2024/06/hien-thi-ty-so-euro-2024-tren-man-hinh-khoa-3.jpg 700w, https://anonyviet.com/wp-content/uploads/2024/06/hien-thi-ty-so-euro-2024-tren-man-hinh-khoa-3-300x192.jpg 300w" sizes="auto, (max-width: 700px) 100vw, 700px"/><figcaption id="caption-attachment-61871" class="wp-caption-text">Tap the &#39;Follow&#39; button (star icon) in the top right corner of the screen</figcaption></figure>
<figure id="attachment_61872" aria-describedby="caption-attachment-61872" style="width: 600px" class="wp-caption aligncenter"><img loading="lazy" decoding="async" class="wp-image-61872 size-full" src="https://anonyviet.com/wp-content/uploads/2024/06/hien-thi-ty-so-euro-2024-tren-man-hinh-khoa-4.jpg" alt="Show Euro 2024 score on lock screen" width="600" height="650" srcset="https://anonyviet.com/wp-content/uploads/2024/06/hien-thi-ty-so-euro-2024-tren-man-hinh-khoa-4.jpg 600w, https://anonyviet.com/wp-content/uploads/2024/06/hien-thi-ty-so-euro-2024-tren-man-hinh-khoa-4-277x300.jpg 277w" sizes="auto, (max-width: 600px) 100vw, 600px"/><figcaption id="caption-attachment-61872" class="wp-caption-text">Show Euro 2024 score on lock screen</figcaption></figure>
<p><strong>Note:</strong></p>
<ul>
<li>To use the Live Activities feature, you need to make sure your iPhone is running iOS 16.1 or later.</li>
<li>Some settings may vary depending on iOS version and app interface.</li>
</ul>
<p><span style="color: #339966;"><em><strong>See more: How <a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Fanonyviet.com%2Fcach-tat-nhap-mat-khau-khi-tai-ung-dung-tren-iphone%2F" class="local-link" rel="noopener">Turn off entering password when downloading applications</a> on iPhone</strong></em></span></p>
<h2 id="ftoc-loi-ket" class="ftwp-heading"><strong>Epilogue</strong></h2>
<p>With Live Activities and the FotMob app, you can easily follow along <strong>Show Euro 2024 score on lock screen</strong> iPhone without unlocking the phone.  Wishing you a successful application!</p>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/how-to-display-euro-2024-scores-on-iphone-lock-screen/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2024/06/hien-thi-ty-so-euro-2024-tren-man-hinh-khoa.jpg" medium="image"></media:content>
            	</item>
		<item>
		<title>[Tạo 2D Platformer Game với Godot] Part 26: Add scores at the end of the game</title>
		<link>https://en.anonyviet.com/tao-2d-platformer-game-voi-godot-part-26-add-scores-at-the-end-of-the-game/</link>
					<comments>https://en.anonyviet.com/tao-2d-platformer-game-voi-godot-part-26-add-scores-at-the-end-of-the-game/#respond</comments>
		
		<dc:creator><![CDATA[AnonyViet]]></dc:creator>
		<pubDate>Thu, 26 Jan 2023 13:57:15 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Add]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Godot]]></category>
		<category><![CDATA[Part]]></category>
		<category><![CDATA[Platformer]]></category>
		<category><![CDATA[scores]]></category>
		<category><![CDATA[tạo]]></category>
		<category><![CDATA[với]]></category>
		<guid isPermaLink="false">https://en.anonyviet.com/?p=4101</guid>

					<description><![CDATA[In this section, I will show you how to add scores to the LevelMap so that it can update the number of stars after the game is over. Join the channel Telegram of the AnonyViet 👉 Link 👈 Scores Solution About how to handle the problem of this part, I will explain as follows: + [&#8230;]]]></description>
										<content:encoded><![CDATA[<p></p>
<div id="ftwp-postcontent">
<p>In this section, I will show you how to add scores to the LevelMap so that it can update the number of stars after the game is over.</p>
<div class="code-block code-block-16" style="margin: 8px 0; clear: both;">
<div align="center">
<table class=" aligncenter" style="background-color: #c0c0c0; border-collapse: collapse; width: 59.9985%;">
<tbody>
<tr>
<td style="width: 100%; text-align: center;"><span style="font-size: 12pt;"><strong>Join the channel <span style="color: #0000ff;">Telegram</span> of the <span style="color: #008080;">AnonyViet </span> 👉 <span style="text-decoration: underline;"><a target="_blank" href="https://en.anonyviet.com/next-link?url=https%3A%2F%2Ft.me%2Fanonyvietchat" class="local-link" rel="noopener">Link</a></span>  👈</strong></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<h2 id="ftoc-diem-so" class="ftwp-heading">Scores</h2>
<h3 id="ftoc-cach-giai-quyet" class="ftwp-heading">Solution</h3>
<p>About how to handle the problem of this part, I will explain as follows:</p>
<p>+ First I will need a script and that script can be accessed anywhere, this script will be responsible for storing specific data here is the score of each map.</p>
<p>+ I will calculate the score achieved by 1 map in the script of EndLevelMenu, this score if you want to calculate it will need: (number of coins collected / total number of coins in the map) * 100.</p>
<p>+ To get the total number of coins, I will add the coin scene to a group called dongxu and I have a function get_tree().get_nodes_in_group(“dongxu) which will allow me to get all the coins available on the scene and This function will return array.</p>
<p>+ Then in LevelMap some children Level1,2,.. I will assign the variable SoDiem did in the previous part equal to the score in the script containing the data.</p>
<h3 id="ftoc-autoload-script" class="ftwp-heading">Autoload scripts</h3>
<p>This is a feature of Godot that allows you to turn a script into an autoload script, meaning it always runs no matter what scene you are in and can be accessed anywhere.</p>
<p><img fetchpriority="high" decoding="async" class="aligncenter wp-image-37388 size-medium" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-50-21-300x269.png" alt="[Tạo 2D Platformer Game với Godot]  Part 25: Add scores at the end of the game" width="300" height="269" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-50-21-300x269.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-50-21.png 303w" sizes="(max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 22"/></p>
<p>My friend made me a new script called PlayerData in Scenes</p>
<p><img decoding="async" loading="lazy" class="size-medium wp-image-37389 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-50-39-300x74.png" alt="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 19" width="300" height="74" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-50-39-300x74.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-50-39.png 428w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 23"/></p>
<p>Then go to Project -> project settings -> Autoload</p>
<p><img decoding="async" loading="lazy" class="size-medium wp-image-37390 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-50-52-300x47.png" alt="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 20" width="300" height="47" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-50-52-300x47.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-50-52.png 413w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 24"/></p>
<p>Click on the folder icon.</p>
<p><img decoding="async" loading="lazy" class="size-medium wp-image-37391 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-51-07-300x184.png" alt="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 21" width="300" height="184" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-51-07-300x184.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-51-07-768x470.png 768w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-51-07-750x459.png 750w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-51-07.png 788w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 25"/></p>
<p>Find the script just created<img decoding="async" loading="lazy" class="size-medium wp-image-37392 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-51-27-300x16.png" alt="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 22" width="300" height="16" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-51-27-300x16.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-51-27-768x41.png 768w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-51-27-750x40.png 750w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-51-27.png 881w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 26"/> <img decoding="async" loading="lazy" class="size-medium wp-image-37394 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-51-44-300x18.png" alt="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 23" width="300" height="18" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-51-44-300x18.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-51-44-768x47.png 768w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-51-44-750x46.png 750w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-51-44.png 864w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 27"/>Click on add and you will see it displayed in the box below.</p>
<h3 id="ftoc-add-group-scene-dong-xu" class="ftwp-heading">Add group scene coin</h3>
<h3><img decoding="async" loading="lazy" class="size-medium wp-image-37395 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-54-30-300x96.png" alt="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 24" width="300" height="96" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-54-30-300x96.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-54-30.png 342w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 28"/></h3>
<p>Through the coin scene</p>
<h3><img decoding="async" loading="lazy" class="size-medium wp-image-37396 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-54-41.png" alt="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 25" width="283" height="129" title="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 29"/></h3>
<p><img decoding="async" loading="lazy" class="size-medium wp-image-37397 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-55-05.png" alt="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 26" width="294" height="122" title="[Tạo 2D Platformer Game với Godot]  Part 26: Add scores at the end of the game 30"/> <img decoding="async" loading="lazy" class="size-medium wp-image-37398 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-55-16-300x148.png" alt="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 27" width="300" height="148" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-55-16-300x148.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-55-16.png 304w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 31"/>On the right side next to signals, click on the group and type the group name -> click add to add the node to the group</p>
<h3 id="ftoc-map" class="ftwp-heading">Map</h3>
<p><img decoding="async" loading="lazy" class="size-medium wp-image-37399 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-58-01-300x168.png" alt="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 28" width="300" height="168" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-58-01-300x168.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-58-01.png 316w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 32"/> <img decoding="async" loading="lazy" class="size-medium wp-image-37400 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-58-10-300x130.png" alt="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 29" width="300" height="130" srcset="https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-58-10-300x130.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/23-11-2021-11-58-10.png 450w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 33"/></p>
<p>In the Map1 scene, I will add 1 Node2D to contain DongXu nodes to keep it neat.</p>
<p>Then I edited it so it&#8217;s easy to collect</p>
<p>How much you adjust the coin is up to you, not necessarily like me.</p>
<h3 id="ftoc-player" class="ftwp-heading">Player</h3>
<p>In the Player&#8217;s script, you just need to add yourself a variable that is:</p>
<p><code class="EnlighterJSRAW" data-enlighter-language="generic">onready var max_dongxu = get_tree().get_nodes_in_group("dongxu")</code></p>
<p>This variable I use to determine the total number of coins in the map.</p>
<h3 id="ftoc-playerdata" class="ftwp-heading">PlayerData</h3>
<p>In the Playerdata autoload script that I just created above, I added a Dictonary variable named score and it is responsible for carrying the score of each map.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">extends Node&#13;
&#13;
&#13;
var diemso = {&#13;
    "Map1": 0,&#13;
    "Map2":0,&#13;
    "Map3:": 0,&#13;
}&#13;
&#13;
&#13;
</pre>
</p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">extends CanvasLayer&#13;
&#13;
&#13;
&#13;
onready var level = get_parent().get_node("KhuVucDiChuyen")&#13;
onready var map = get_parent().name&#13;
onready var player = get_parent().get_node("Player")&#13;
var diemso &#13;
func _on_NutLevelKeTiep_pressed():&#13;
    get_tree().paused = false&#13;
    get_tree().change_scene(level.LevelKeTiep)&#13;
    diemso = int(( float(player.dongxu) /player.max_dongxu) * 100)&#13;
    if diemso &gt; PlayerData.diemso[map]: &#13;
        PlayerData.diemso[map] = diemso&#13;
    pass # Replace with function body.&#13;
&#13;
func _on_NutChoiLai_pressed():&#13;
    get_tree().paused = false&#13;
    get_tree().reload_current_scene()&#13;
    print("choi lai")&#13;
    pass # Replace with function body.&#13;
&#13;
&#13;
func _on_NutVeMenu_pressed():&#13;
    get_tree().paused = false&#13;
    get_tree().change_scene("res://Scences/Map/LevelMap.tscn")&#13;
    diemso = int(( float(player.dongxu) /player.max_dongxu.size()) * 100)&#13;
    if diemso &gt; PlayerData.diemso[map]: &#13;
        PlayerData.diemso[map] = diemso&#13;
    pass # Replace with function body.&#13;
</pre>
<p>Here, I declare 3 more variables:</p>
<p>+ map: for me to identify the name of the map I am playing.</p>
<p>+ player: so that I can get the number of coins collected and the total number of coins in the map.</p>
<p>+ diemso: calculate the score you achieved.</p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">func _on_NutLevelKeTiep_pressed():&#13;
    get_tree().paused = false&#13;
    get_tree().change_scene(level.LevelKeTiep)&#13;
    diemso = int(( float(player.dongxu) /player.max_dongxu) * 100)&#13;
    if diemso &gt; PlayerData.diemso[map]: &#13;
        PlayerData.diemso[map] = diemso</pre>
<p><code class="EnlighterJSRAW" data-enlighter-language="generic">diemso = int(( float(player.dongxu) /player.max_dongxu) * 100)</code>: is the formula I calculate the score.</p>
<p><code class="EnlighterJSRAW" data-enlighter-language="generic">if diemso &gt; PlayerData.diemso[map]:</code>  I check if the diemso of this level is greater than the existing score, it will add this score and vice versa.</p>
<p>I will do the same with the NutVeMenu function because when you show the EndLevelMenu, you have already completed it, so exiting or continuing to play will count and if you press play again, it will not.</p>
<h3 id="ftoc-level-script" class="ftwp-heading">Level Script</h3>
<p><img decoding="async" loading="lazy" class="size-medium wp-image-37401 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/24-11-2021-12-08-18-300x80.png" alt="[Tạo 2D Platformer Game với Godot]  Part 26: Add scores at the end of the game 30" width="300" height="80" srcset="https://anonyviet.com/wp-content/uploads/2021/11/24-11-2021-12-08-18-300x80.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/24-11-2021-12-08-18.png 738w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 34"/></p>
<p>You passed yourself the Level scene in the LevelMap.</p>
<p>And in the _process function, I add 1 line to update the score.</p>
<p><code class="EnlighterJSRAW" data-enlighter-language="generic">SoDiem = PlayerData.diemso[MapName]</code></p>
<p>I will have the full code as below:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="generic">extends Control&#13;
&#13;
export (String) var MapName&#13;
export (String,FILE) var Scene&#13;
export (String) var Level&#13;
onready var ngoisaovang = preload("res://Assets/LevelMap/3 UI/Star1.png")&#13;
var SoDiem = 0&#13;
&#13;
func _ready():&#13;
    $SoLevel.text = Level&#13;
func _process(delta):&#13;
    SoDiem = PlayerData.diemso[MapName]&#13;
    if SoDiem &gt;= 1 and SoDiem &lt;= 30:&#13;
        $NgoiSao1.texture = ngoisaovang&#13;
    elif SoDiem &gt;= 30 and SoDiem &lt;= 95:&#13;
        $NgoiSao1.texture = ngoisaovang&#13;
        $NgoiSao2.texture = ngoisaovang&#13;
    elif SoDiem &gt;= 95:&#13;
        $NgoiSao1.texture = ngoisaovang&#13;
        $NgoiSao2.texture = ngoisaovang&#13;
        $NgoiSao3.texture = ngoisaovang&#13;
&#13;
&#13;
func _on_HinhTron_pressed():&#13;
    get_tree().change_scene(Scene)&#13;
    pass # Replace with function body.&#13;
</pre>
<h3 id="ftoc-ket-qua" class="ftwp-heading">Result</h3>
<p><img decoding="async" loading="lazy" class="size-full wp-image-37402 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/24-11-2021-12-11-14.png" alt="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 31" width="247" height="189" title="[Tạo 2D Platformer Game với Godot]  Part 26: Add scores at the end of the game 35"/></p>
<p>So after collecting all the coins I added and returning to the Level Menu, I will get 3 stars.</p>
<h3 id="ftoc-luu-y" class="ftwp-heading">Note</h3>
<p>In that Menu, you edit the code where the Start button is, the change_scene is the scene Level Map.</p>
<p><img decoding="async" loading="lazy" class="size-medium wp-image-37403 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/24-11-2021-12-14-51-300x49.png" alt="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 32" width="300" height="49" srcset="https://anonyviet.com/wp-content/uploads/2021/11/24-11-2021-12-14-51-300x49.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/24-11-2021-12-14-51.png 517w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 36"/> <img decoding="async" loading="lazy" class="size-medium wp-image-37404 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/24-11-2021-12-15-05.png" alt="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 33" width="183" height="102" title="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 37"/> <img decoding="async" loading="lazy" class="size-medium wp-image-37405 aligncenter" src="https://anonyviet.com/wp-content/uploads/2021/11/24-11-2021-12-15-57-300x40.png" alt="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 34" width="300" height="40" srcset="https://anonyviet.com/wp-content/uploads/2021/11/24-11-2021-12-15-57-300x40.png 300w, https://anonyviet.com/wp-content/uploads/2021/11/24-11-2021-12-15-57.png 569w" sizes="auto, (max-width: 300px) 100vw, 300px" title="[Tạo 2D Platformer Game với Godot]  Part 26: Adding scores at the end of the game 38"/></p>
<h2 id="ftoc-tong-ket" class="ftwp-heading">Summary</h2>
<p>So I have finished guiding you how to add the number of stars achieved, in the next part I will guide you how to lock the level again and unlock the next level.</p>
<div class="kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom" data-payload="{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;37383&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;100&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;\u0110\u00e1nh gi\u00e1 b\u00e0i vi\u1ebft post&quot;,&quot;legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: 5\/5 - (100 b\u00ecnh ch\u1ecdn)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;B\u00e0i vi\u1ebft \u0111\u1ea1t: {score}\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}">
<p>            The article achieved: 5/5 &#8211; (100 votes)    </p>
</p></div>
</div>
]]></content:encoded>
					
					<wfw:commentRss>https://en.anonyviet.com/tao-2d-platformer-game-voi-godot-part-26-add-scores-at-the-end-of-the-game/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<media:content url="https://anonyviet.com/wp-content/uploads/2021/11/24-11-2021-12-17-23.png" medium="image"></media:content>
            	</item>
	</channel>
</rss>
