<?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/"
	>

<channel>
	<title>Flappy Bird Archives - ครูชัชดอทคอม</title>
	<atom:link href="https://www.kroochut.com/tag/flappy-bird/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.kroochut.com/tag/flappy-bird/</link>
	<description>เว็บไซต์เพื่อการเรียนรู้ของทุกคน</description>
	<lastBuildDate>Thu, 12 Dec 2024 06:59:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>

<image>
	<url>https://www.kroochut.com/wp-content/uploads/2024/12/cropped-5dd646cee6656-32x32.png</url>
	<title>Flappy Bird Archives - ครูชัชดอทคอม</title>
	<link>https://www.kroochut.com/tag/flappy-bird/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>สร้างเกมนกน้อยเหินเวหา (Flappy Bird) ด้วย Scratch  1</title>
		<link>https://www.kroochut.com/%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87%e0%b9%80%e0%b8%81%e0%b8%a1%e0%b8%99%e0%b8%81%e0%b8%99%e0%b9%89%e0%b8%ad%e0%b8%a2%e0%b9%80%e0%b8%ab%e0%b8%b4%e0%b8%99%e0%b9%80%e0%b8%a7%e0%b8%ab%e0%b8%b2/</link>
					<comments>https://www.kroochut.com/%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87%e0%b9%80%e0%b8%81%e0%b8%a1%e0%b8%99%e0%b8%81%e0%b8%99%e0%b9%89%e0%b8%ad%e0%b8%a2%e0%b9%80%e0%b8%ab%e0%b8%b4%e0%b8%99%e0%b9%80%e0%b8%a7%e0%b8%ab%e0%b8%b2/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 11 Dec 2024 06:37:48 +0000</pubDate>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[Flappy Bird]]></category>
		<category><![CDATA[scratch]]></category>
		<guid isPermaLink="false">https://www.kroochut.com/?p=64</guid>

					<description><![CDATA[<p>แนวคิดของเกม แนวคิดของเกมนี้การสร้างเกมที่ลักษณะคล้ายคลึงกับเกมที่ได้รับความนิยม นักเรียนรู้จักเป็นอย่างดี การควบคุมทำได้ไม่ยาก แต่มีสิ่งที่พิเศษคือการเก็บคะแนน ซึ่งนักเรียนจะได้รู้จักตัวแปร เป้าหมายของเกม ผู้เล่นควบคุมให้นกบินผ่านท่อ โดยต้องกดปุ่มสเปซบาร์เพื่อไม่ให้นกหล่นสู่พื้น เมื่อผ่านท่อจะได้คะแนนเพิ่มขึ้นเรื่อย ๆ ส่วนประกอบของเกม นก ท่อ เวที &#8211; อยู่ตำแหน่งเดิมเมื่อเริ่มเกมทุกครั้ง&#8211; ต้องบินโดยการกดปุ่มสเปซบาร์ ไม่เช่นนั้นจะหล่น&#8211; คะแนนจะเพิ่มขึ้นเรื่อย ๆ&#8211; เมื่อชนท่อเกมจะหยุด &#8211; กำหนดให้อยู่ตำแหน่งเดิมเมื่อเริ่มเกมทุกครั้ง&#8211; เคลื่อนไหวทางซ้ายของจอโดยอัตโนมัติ&#8211; เมื่อชนกับนกทุกอย่างจะหยุด เพื่อเริ่มเกมใหม่ &#8211; กำหนดฉากเป็นป่าเพื่อความสมจริง และลึกลับ 1.&#160;ตั้งชื่อโพรเจ็กของเรา 2. เลือกฉากหลัง 3.&#160;เลือกตัวละคร เลือกตัวละครที่นักเรียนต้องการ หรือเลือก&#160;Parrot&#160;สำหรับการกำหนดการขยับปีก 4.&#160;ปรับขนาดและกำหนดทิศทางของนก 5.&#160;ใส่โค้ดให้ตัวละครกันเถอะ 6.&#160;กำหนดตำแหน่งเริ่มต้นของนก 7.&#160;พร้อมบินกันมั้ย ไปที่หมวดหมู่ Control ลากบล็อก forever มาไว้ด้านล่างบล็อก go to x and y  8.&#160;ช้าลงอีกนิด 9.&#160;บินขึ้นสิจ้ะ ไปที่หมวดหมู่ Motion แล้วลากบล็อก change y by มาต่อกับบล็อก space key pressed เอาล่ะตอนนี้นกของเราบินได้แล้ว ในตอนท้ายเราจะกำหนดให้นกกระพือปีก 10.&#160;สร้างอุปสรรคในเกมเพื่อความสนุก คลิกเลือกสีที่ Fill จากนั้นสร้างรูปทรงสี่เหลี่ยมโดยคลิกที่  square  คลิกและลากรูปทรงสี่เหลี่ยม เพื่อให้เกิดท่อสองอัน และมีช่องว่างสำหรับให้นกบินผ่าน 11.&#160;มาทำให้ท่อของเราเคลื่อนไหวกัน 12.&#160;สุ่มตำแหน่งของท่อเพื่อความตื่นเต้น 13.&#160;สร้างโค้ดอีกชุด กำหนดให้ชนแล้วจบเกม ไปที่หมวดหมู่ Control ลากบล็อก stop all แล้วใส่ไว้ในบล็อก if then เพื่อให้เกมจบลงเมื่อนกของเราบินชนท่อ ใส่ระบบคะแนนให้เกมของเรา 1.&#160;สร้างตัวแปร 2.&#160;กำหนดชื่อตัวแปร 3. จากนั้นคลิกที่ checkbox ด้านหน้า score ทำให้ score แสดงในเกมของเรา 4.&#160;คะแนนจะขึ้นเมื่อไหร่นะ กำหนดให้นกกระพือปีกเพื่อความสมจริง 1.&#160;เลือกตัวละครของเรา 2.&#160;ตั้งค่าการสลับภาพของตัวละคร 3.&#160;ทดสอบเกมกันได้เลย</p>
<p>The post <a href="https://www.kroochut.com/%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87%e0%b9%80%e0%b8%81%e0%b8%a1%e0%b8%99%e0%b8%81%e0%b8%99%e0%b9%89%e0%b8%ad%e0%b8%a2%e0%b9%80%e0%b8%ab%e0%b8%b4%e0%b8%99%e0%b9%80%e0%b8%a7%e0%b8%ab%e0%b8%b2/">สร้างเกมนกน้อยเหินเวหา (Flappy Bird) ด้วย Scratch  1</a> appeared first on <a href="https://www.kroochut.com">ครูชัชดอทคอม</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="has-yuki-font-medium-font-size"><strong>แนวคิดของเกม</strong></p>



<p class="has-yuki-font-medium-font-size">แนวคิดของเกมนี้การสร้างเกมที่ลักษณะคล้ายคลึงกับเกมที่ได้รับความนิยม นักเรียนรู้จักเป็นอย่างดี การควบคุมทำได้ไม่ยาก แต่มีสิ่งที่พิเศษคือการเก็บคะแนน ซึ่งนักเรียนจะได้รู้จักตัวแปร</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="715" height="538" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-1.png" alt="" class="wp-image-66" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-1.png 715w, https://www.kroochut.com/wp-content/uploads/2024/12/image-1-300x226.png 300w" sizes="(max-width: 715px) 100vw, 715px" /></figure>



<p style="font-size:clamp(14.642px, 0.915rem + ((1vw - 3.2px) * 0.836), 22px);"><strong>เป้าหมายของเกม</strong></p>



<p class="has-yuki-font-medium-font-size">ผู้เล่นควบคุมให้นกบินผ่านท่อ โดยต้องกดปุ่มสเปซบาร์เพื่อไม่ให้นกหล่นสู่พื้น เมื่อผ่านท่อจะได้คะแนนเพิ่มขึ้นเรื่อย ๆ</p>



<p class="has-yuki-font-medium-font-size"><strong>ส่วนประกอบของเกม</strong></p>



<figure class="wp-block-table"><table class="has-fixed-layout"><thead><tr><th class="has-text-align-left" data-align="left">นก</th><th class="has-text-align-left" data-align="left">ท่อ</th><th class="has-text-align-left" data-align="left">เวที</th></tr></thead><tbody><tr><td class="has-text-align-left" data-align="left">&#8211; อยู่ตำแหน่งเดิมเมื่อเริ่มเกมทุกครั้ง<br>&#8211; ต้องบินโดยการกดปุ่มสเปซบาร์ ไม่เช่นนั้นจะหล่น<br>&#8211; คะแนนจะเพิ่มขึ้นเรื่อย ๆ<br>&#8211; เมื่อชนท่อเกมจะหยุด</td><td class="has-text-align-left" data-align="left">&#8211; กำหนดให้อยู่ตำแหน่งเดิมเมื่อเริ่มเกมทุกครั้ง<br>&#8211; เคลื่อนไหวทางซ้ายของจอโดยอัตโนมัติ<br>&#8211; เมื่อชนกับนกทุกอย่างจะหยุด เพื่อเริ่มเกมใหม่</td><td class="has-text-align-left" data-align="left">&#8211; กำหนดฉากเป็นป่าเพื่อความสมจริง และลึกลับ</td></tr></tbody></table></figure>



<p class="has-pale-pink-color has-text-color has-link-color has-yuki-font-medium-font-size wp-elements-a9a42280a1a34e021de42dbf501e0333"><strong>1.&nbsp;ตั้งชื่อโพรเจ็กของเรา</strong></p>



<ul class="wp-block-list">
<li class="has-yuki-font-medium-font-size">ตั้งชื่อโพรเจ็กหรือเกมของเราว่า “Flappy Bird ”&nbsp;</li>



<li class="has-yuki-font-medium-font-size">ลบตัวละครแมวออกโดยคลิกที่สัญลักษณ์ถังขยะ</li>
</ul>



<figure class="wp-block-image size-full"><img decoding="async" width="382" height="449" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-4.png" alt="" class="wp-image-70" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-4.png 382w, https://www.kroochut.com/wp-content/uploads/2024/12/image-4-255x300.png 255w" sizes="(max-width: 382px) 100vw, 382px" /></figure>



<p class="has-yuki-font-medium-font-size"><strong>2. เลือกฉากหลัง</strong></p>



<ul class="wp-block-list">
<li class="has-yuki-font-medium-font-size">คลิกที่&nbsp;<strong>Choose a Backdrop&nbsp;</strong>มุมด้านล่างฝั่งขวามือ</li>
</ul>



<figure class="wp-block-image size-full"><img decoding="async" width="382" height="338" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-5.png" alt="" class="wp-image-71" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-5.png 382w, https://www.kroochut.com/wp-content/uploads/2024/12/image-5-300x265.png 300w" sizes="(max-width: 382px) 100vw, 382px" /></figure>



<p><a href="https://www.codewizardshq.com/wp-content/uploads/2023/04/image-3.png"></a></p>



<ul class="wp-block-list">
<li class="has-yuki-font-medium-font-size">เลือกฉากหลังเป็นป่า (Jungle) หรืออะไรก็ได้ที่นักเรียนต้องการ</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="382" height="320" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-6.png" alt="" class="wp-image-72" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-6.png 382w, https://www.kroochut.com/wp-content/uploads/2024/12/image-6-300x251.png 300w" sizes="(max-width: 382px) 100vw, 382px" /></figure>



<p class="has-yuki-font-medium-font-size"><strong>3.&nbsp;เลือกตัวละคร</strong></p>



<ul class="wp-block-list">
<li class="has-yuki-font-medium-font-size">คลิกที่&nbsp;<strong>Choose a Sprite</strong>&nbsp;</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="382" height="281" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-7.png" alt="" class="wp-image-74" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-7.png 382w, https://www.kroochut.com/wp-content/uploads/2024/12/image-7-300x221.png 300w" sizes="(max-width: 382px) 100vw, 382px" /></figure>



<p>เลือกตัวละครที่นักเรียนต้องการ หรือเลือก&nbsp;<strong>Parrot&nbsp;</strong>สำหรับการกำหนดการขยับปีก</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="619" height="331" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-8.png" alt="" class="wp-image-75" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-8.png 619w, https://www.kroochut.com/wp-content/uploads/2024/12/image-8-300x160.png 300w" sizes="(max-width: 619px) 100vw, 619px" /></figure>



<p class="has-yuki-font-medium-font-size"><strong>4.&nbsp;ปรับขนาดและกำหนดทิศทางของนก</strong></p>



<ul class="wp-block-list">
<li class="has-yuki-font-medium-font-size">กำหนดขนาดที่&nbsp;<strong>Size&nbsp;</strong>ปรับเป็น&nbsp;<strong>50&nbsp;</strong>&nbsp;</li>



<li class="has-yuki-font-medium-font-size">จากนั้นลากนกมาไว้ที่ฝั่งซ้ายมือ</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="526" height="508" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-9.png" alt="" class="wp-image-103" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-9.png 526w, https://www.kroochut.com/wp-content/uploads/2024/12/image-9-300x290.png 300w" sizes="(max-width: 526px) 100vw, 526px" /></figure>



<p class="has-yuki-font-medium-font-size"><strong>5.&nbsp;ใส่โค้ดให้ตัวละครกันเถอะ</strong></p>



<ul class="wp-block-list">
<li class="has-yuki-font-medium-font-size">ไปที่หมวดหมู่ <strong>Events </strong>ลากบล็อก<strong> when green flag clicked </strong>มาไว้ด้านขวามือพื้นที่ใส่บล็อก</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="619" height="385" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-10.png" alt="" class="wp-image-105" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-10.png 619w, https://www.kroochut.com/wp-content/uploads/2024/12/image-10-300x187.png 300w" sizes="(max-width: 619px) 100vw, 619px" /></figure>



<p class="has-yuki-font-medium-font-size"><strong>6.&nbsp;กำหนดตำแหน่งเริ่มต้นของนก</strong></p>



<ul class="wp-block-list">
<li class="has-yuki-font-medium-font-size">ไปที่หมวกหมู่ <strong>Motion </strong>ลากบล็อก<strong> go to x and y </strong>มาต่อท้ายบล็อก <strong>when green flag clicked </strong>เพื่อให้นกอยู่ตำแหน่งเดิมทุกครั้งที่เริ่มเกมใหม่</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="619" height="427" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-11.png" alt="" class="wp-image-106" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-11.png 619w, https://www.kroochut.com/wp-content/uploads/2024/12/image-11-300x207.png 300w" sizes="(max-width: 619px) 100vw, 619px" /></figure>



<p class="has-yuki-font-medium-font-size"></p>



<p class="has-yuki-font-medium-font-size"><strong>7</strong><strong>.&nbsp;พร้อมบินกันมั้ย</strong></p>



<p class="has-yuki-font-medium-font-size">ไปที่หมวดหมู่ <strong>Control </strong>ลากบล็อก <strong>forever </strong>มาไว้ด้านล่างบล็อก<strong> go to x and y</strong> </p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="619" height="424" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-13.png" alt="" class="wp-image-108" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-13.png 619w, https://www.kroochut.com/wp-content/uploads/2024/12/image-13-300x205.png 300w" sizes="(max-width: 619px) 100vw, 619px" /></figure>



<ul class="wp-block-list has-yuki-font-medium-font-size">
<li>กลับไปที่หมวดหมู่ <strong>Motion </strong>ลากบล็อก <strong>change y by  </strong>มาใส่ข้างในบล็อก <strong>forever </strong></li>



<li>เปลี่ยนตัวเลขในบล็อก <strong>change by y</strong> เป็น<strong> -15</strong>  ตอนนี้ถ้าทดสอบโดยการกดธงเขียวนกของนักเรียนจะร่วงลงพื้นอย่างรวดเร็ว</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="619" height="392" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-14.png" alt="" class="wp-image-109" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-14.png 619w, https://www.kroochut.com/wp-content/uploads/2024/12/image-14-300x190.png 300w" sizes="(max-width: 619px) 100vw, 619px" /></figure>



<p class="has-yuki-font-medium-font-size"><strong>8</strong><strong>.&nbsp;ช้าลงอีกนิด</strong></p>



<ul class="wp-block-list has-yuki-font-medium-font-size">
<li>แก้ไขให้นกค่อย ๆ ลงสู่พื้นโดยไปที่บล็อก <strong>wait </strong>ที่หมวดหมู่ <strong>Control </strong>นำมาไว้ด้านบนบล็อก <strong>change y by </strong></li>



<li>แก้ไขตัวเลขเป็น <strong>0.1</strong></li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="328" height="388" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-15.png" alt="" class="wp-image-110" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-15.png 328w, https://www.kroochut.com/wp-content/uploads/2024/12/image-15-254x300.png 254w" sizes="(max-width: 328px) 100vw, 328px" /></figure>



<p class="has-yuki-font-medium-font-size"><strong>9</strong><strong>.&nbsp;บินขึ้นสิจ้ะ</strong></p>



<ul class="wp-block-list">
<li class="has-yuki-font-medium-font-size">ตอนนี้เราต้องช่วยเจ้านกให้บินขึ้นแล้วโดยไปที่บล็อก <strong>when space key pressed</strong> ในหมวดหมู่ <strong>Events </strong>แล้วลากมาวางข้าง ๆ โค้ดชุดแรก</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="928" height="365" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-16.png" alt="" class="wp-image-111" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-16.png 928w, https://www.kroochut.com/wp-content/uploads/2024/12/image-16-300x118.png 300w, https://www.kroochut.com/wp-content/uploads/2024/12/image-16-768x302.png 768w" sizes="(max-width: 928px) 100vw, 928px" /></figure>



<p class="has-yuki-font-medium-font-size">ไปที่หมวดหมู่ <strong>Motion </strong>แล้วลากบล็อก <strong>change y by</strong> มาต่อกับบล็อก <strong>space key pressed</strong> เอาล่ะตอนนี้นกของเราบินได้แล้ว ในตอนท้ายเราจะกำหนดให้นกกระพือปีก</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="928" height="395" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-17.png" alt="" class="wp-image-112" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-17.png 928w, https://www.kroochut.com/wp-content/uploads/2024/12/image-17-300x128.png 300w, https://www.kroochut.com/wp-content/uploads/2024/12/image-17-768x327.png 768w" sizes="(max-width: 928px) 100vw, 928px" /></figure>



<p class="has-yuki-font-medium-font-size"><strong>10.&nbsp;สร้างอุปสรรคในเกมเพื่อความสนุก</strong></p>



<ul class="wp-block-list has-yuki-font-medium-font-size">
<li>คลิกที่ <strong>paint </strong>ซึ่งอยู่ด้านบนของการเลือกตัวละคร</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="533" height="419" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-18.png" alt="" class="wp-image-113" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-18.png 533w, https://www.kroochut.com/wp-content/uploads/2024/12/image-18-300x236.png 300w" sizes="(max-width: 533px) 100vw, 533px" /></figure>



<p class="has-yuki-font-medium-font-size">คลิกเลือกสีที่ <strong>Fill</strong> จากนั้นสร้างรูปทรงสี่เหลี่ยมโดยคลิกที่  <strong>square </strong></p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="778" height="588" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-19.png" alt="" class="wp-image-114" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-19.png 778w, https://www.kroochut.com/wp-content/uploads/2024/12/image-19-300x227.png 300w, https://www.kroochut.com/wp-content/uploads/2024/12/image-19-768x580.png 768w" sizes="(max-width: 778px) 100vw, 778px" /></figure>



<p class="has-yuki-font-medium-font-size">คลิกและลากรูปทรงสี่เหลี่ยม เพื่อให้เกิดท่อสองอัน และมีช่องว่างสำหรับให้นกบินผ่าน</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="778" height="591" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-20.png" alt="" class="wp-image-115" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-20.png 778w, https://www.kroochut.com/wp-content/uploads/2024/12/image-20-300x228.png 300w, https://www.kroochut.com/wp-content/uploads/2024/12/image-20-768x583.png 768w" sizes="(max-width: 778px) 100vw, 778px" /></figure>



<p class="has-yuki-font-medium-font-size"><strong>11.&nbsp;มาทำให้ท่อของเราเคลื่อนไหวกัน</strong></p>



<ul class="wp-block-list has-yuki-font-medium-font-size">
<li>คลิกที่แถบ <strong>Code </strong>ลากบล็อก<strong> when green flag clicked </strong>จากหมวดหมู่ <strong>Events </strong>จากนั้นลากบล็อก <strong>forever </strong>ในหมวดหมู่ <strong>Control </strong>มาต่อ</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="778" height="513" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-21.png" alt="" class="wp-image-116" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-21.png 778w, https://www.kroochut.com/wp-content/uploads/2024/12/image-21-300x198.png 300w, https://www.kroochut.com/wp-content/uploads/2024/12/image-21-768x506.png 768w" sizes="(max-width: 778px) 100vw, 778px" /></figure>



<ul class="wp-block-list has-yuki-font-medium-font-size">
<li>จากนั้นไปที่หมวดหมู่ <strong>Motion </strong>ลากบล็อก<strong> set y to</strong> และบล็อก<strong> set x to</strong> และบล็อก<strong> glide to x and y </strong>นำทั้งหมดมาใส่ไว้ในบล็อก <strong>forever </strong> </li>



<li>แก้ไขตัวเลขในบล็อก <strong>set x to</strong> เป็น <strong>275</strong> ตำแหน่งนี้ทำให้ท่อเริ่มต้นที่มุมขวาของจอ</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="778" height="480" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-22.png" alt="" class="wp-image-117" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-22.png 778w, https://www.kroochut.com/wp-content/uploads/2024/12/image-22-300x185.png 300w, https://www.kroochut.com/wp-content/uploads/2024/12/image-22-768x474.png 768w" sizes="(max-width: 778px) 100vw, 778px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="223" height="178" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-23.png" alt="" class="wp-image-118"/></figure>



<ul class="wp-block-list has-yuki-font-medium-font-size">
<li>แก้ไขตัวเลขในบล็อก <strong>glide </strong>เป็น <strong>2</strong> เปลี่ยนตัวเลขใน <strong>x</strong> เป็น<strong> -275</strong>เพื่อให้ท่อเลื่อนไปทางซ้ายของจอ </li>



<li>จากนั้นไปที่หมวดหมู่ <strong>Motion </strong>ลากบล็อก <strong>y position</strong> มาแทนที่ค่า <strong>y</strong></li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="778" height="441" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-24.png" alt="" class="wp-image-119" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-24.png 778w, https://www.kroochut.com/wp-content/uploads/2024/12/image-24-300x170.png 300w, https://www.kroochut.com/wp-content/uploads/2024/12/image-24-768x435.png 768w" sizes="(max-width: 778px) 100vw, 778px" /></figure>



<p class="has-yuki-font-medium-font-size"><strong>12.&nbsp;สุ่มตำแหน่งของท่อเพื่อความตื่นเต้น</strong></p>



<ul class="wp-block-list has-yuki-font-medium-font-size">
<li>ไปที่หมวดหมู่ <strong>Operators </strong>จากนั้นลากบล็อก <strong>pick random </strong>มาใส่ที่ตำแหน่งในบล็อก <strong>set y to</strong> </li>



<li>ปรับค่าตัวเลขเป็น <strong>-65</strong> และ <strong>65</strong></li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="778" height="436" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-25.png" alt="" class="wp-image-120" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-25.png 778w, https://www.kroochut.com/wp-content/uploads/2024/12/image-25-300x168.png 300w, https://www.kroochut.com/wp-content/uploads/2024/12/image-25-768x430.png 768w" sizes="(max-width: 778px) 100vw, 778px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="274" height="274" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-26.png" alt="" class="wp-image-121" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-26.png 274w, https://www.kroochut.com/wp-content/uploads/2024/12/image-26-150x150.png 150w" sizes="(max-width: 274px) 100vw, 274px" /></figure>



<p class="has-yuki-font-medium-font-size"><strong>13.&nbsp;สร้างโค้ดอีกชุด กำหนดให้ชนแล้วจบเกม</strong></p>



<ul class="wp-block-list has-yuki-font-medium-font-size">
<li>ใส่ความสนุกเพิ่มโดยไปที่บล็อก <strong>when green flag clicked</strong> จากหมวดหมู่ <strong>Events </strong>จากนั้นลากบล็อก <strong>forever </strong>จากหมวดหมู่ <strong>Control </strong>มาต่อท้าย</li>



<li>จากนั้นลากบล็อก <strong>if then</strong> มาใส่ไว้ในบล็อก <strong>forever </strong></li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="778" height="444" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-27.png" alt="" class="wp-image-122" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-27.png 778w, https://www.kroochut.com/wp-content/uploads/2024/12/image-27-300x171.png 300w, https://www.kroochut.com/wp-content/uploads/2024/12/image-27-768x438.png 768w" sizes="(max-width: 778px) 100vw, 778px" /></figure>



<ul class="wp-block-list has-yuki-font-medium-font-size">
<li>จากนั้นไปที่หมวดหมู่ <strong>sensing </strong>ลากบล็อก <strong>touching mouse-pointer</strong> มาใส่ไว้ในบล็อก <strong>if then</strong></li>



<li>คลิกที่ <strong>mouse-pointer option to</strong> เปลี่ยนเป็น <strong>Parrot</strong></li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="778" height="410" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-28.png" alt="" class="wp-image-123" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-28.png 778w, https://www.kroochut.com/wp-content/uploads/2024/12/image-28-300x158.png 300w, https://www.kroochut.com/wp-content/uploads/2024/12/image-28-768x405.png 768w" sizes="(max-width: 778px) 100vw, 778px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="258" height="257" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-29.png" alt="" class="wp-image-124" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-29.png 258w, https://www.kroochut.com/wp-content/uploads/2024/12/image-29-150x150.png 150w" sizes="(max-width: 258px) 100vw, 258px" /></figure>



<p class="has-yuki-font-medium-font-size">ไปที่หมวดหมู่ <strong>Control </strong>ลากบล็อก <strong>stop all </strong>แล้วใส่ไว้ในบล็อก <strong>if then </strong>เพื่อให้เกมจบลงเมื่อนกของเราบินชนท่อ</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="703" height="296" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-30.png" alt="" class="wp-image-125" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-30.png 703w, https://www.kroochut.com/wp-content/uploads/2024/12/image-30-300x126.png 300w" sizes="(max-width: 703px) 100vw, 703px" /></figure>



<p class="has-vivid-green-cyan-color has-text-color has-link-color has-yuki-font-large-font-size wp-elements-e0f45754a7abf0f2e347d623d9984489"><strong>ใส่ระบบคะแนนให้เกมของเรา</strong></p>



<p class="has-yuki-font-medium-font-size"><strong>1.&nbsp;สร้างตัวแปร</strong></p>



<ul class="wp-block-list">
<li class="has-yuki-font-medium-font-size">ไปที่หมวดหมู่ <strong>Variables </strong>category คลิกขวาที่ <strong>my variable</strong> เลือก <strong>Rename Variable </strong></li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="703" height="462" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-31.png" alt="" class="wp-image-128" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-31.png 703w, https://www.kroochut.com/wp-content/uploads/2024/12/image-31-300x197.png 300w" sizes="(max-width: 703px) 100vw, 703px" /></figure>



<p class="has-yuki-font-medium-font-size"><strong>2.&nbsp;กำหนดชื่อตัวแปร</strong></p>



<ul class="wp-block-list">
<li class="has-yuki-font-medium-font-size">แก้ไขชื่อเป็น <strong>score </strong>หรือคะแนนจากนั้นคลิก <strong>OK</strong></li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="523" height="368" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-32.png" alt="" class="wp-image-129" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-32.png 523w, https://www.kroochut.com/wp-content/uploads/2024/12/image-32-300x211.png 300w" sizes="(max-width: 523px) 100vw, 523px" /></figure>



<p class="has-yuki-font-medium-font-size"><strong>3.</strong> จากนั้นคลิกที่ <strong>checkbox </strong>ด้านหน้า <strong>score </strong>ทำให้ <strong>score</strong> แสดงในเกมของเรา</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="533" height="776" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-33.png" alt="" class="wp-image-131" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-33.png 533w, https://www.kroochut.com/wp-content/uploads/2024/12/image-33-206x300.png 206w" sizes="(max-width: 533px) 100vw, 533px" /></figure>



<p class="has-yuki-font-medium-font-size"><strong>4.&nbsp;คะแนนจะขึ้นเมื่อไหร่นะ</strong></p>



<ul class="wp-block-list has-yuki-font-medium-font-size">
<li>จากนั้นไปที่หมวดหมู่ <strong>Variables</strong> ลากบล็อก<strong> set score to 0 </strong>มาใส่ไว้ด้านล่างบล็อก <strong>when green flag clicked</strong> </li>



<li>จากนั้นลากบล็อก<strong> change score by 1</strong> มาไว้ด้านล่างบล็อก<strong> glide</strong> </li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="709" height="422" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-34.png" alt="" class="wp-image-132" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-34.png 709w, https://www.kroochut.com/wp-content/uploads/2024/12/image-34-300x179.png 300w" sizes="(max-width: 709px) 100vw, 709px" /></figure>



<p class="has-vivid-green-cyan-color has-text-color has-link-color has-yuki-font-large-font-size wp-elements-a2ea4f9dc9c6b793637f59d2d6391636"><strong>กำหนดให้นกกระพือปีกเพื่อความสมจริง</strong><strong></strong></p>



<p class="has-yuki-font-medium-font-size"><strong>1.&nbsp;เลือกตัวละครของเรา</strong></p>



<ul class="wp-block-list">
<li class="has-yuki-font-medium-font-size">คลิกที่นกหรือ <strong>Parrot </strong></li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="530" height="553" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-35.png" alt="" class="wp-image-134" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-35.png 530w, https://www.kroochut.com/wp-content/uploads/2024/12/image-35-288x300.png 288w" sizes="(max-width: 530px) 100vw, 530px" /></figure>



<p class="has-yuki-font-medium-font-size"><strong>2.&nbsp;ตั้งค่าการสลับภาพของตัวละคร</strong></p>



<ul class="wp-block-list has-yuki-font-medium-font-size">
<li>ไปที่หมวดหมู่ <strong>Looks </strong>จากนั้นลากบล็อก<strong> switch costume </strong>มาใส่ไว้ด้านในบล็อก <strong>forever </strong></li>



<li>เลือก <strong>parrot-a</strong> ในบล็อก <strong>forever </strong>และเลือก <strong>parrot-b </strong>ใต้บล็อก <strong>when space key pressed</strong> </li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="928" height="380" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-36.png" alt="" class="wp-image-136" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-36.png 928w, https://www.kroochut.com/wp-content/uploads/2024/12/image-36-300x123.png 300w, https://www.kroochut.com/wp-content/uploads/2024/12/image-36-768x314.png 768w" sizes="(max-width: 928px) 100vw, 928px" /></figure>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="158" height="158" src="https://www.kroochut.com/wp-content/uploads/2024/12/image-37.png" alt="" class="wp-image-137" srcset="https://www.kroochut.com/wp-content/uploads/2024/12/image-37.png 158w, https://www.kroochut.com/wp-content/uploads/2024/12/image-37-150x150.png 150w" sizes="(max-width: 158px) 100vw, 158px" /></figure>



<p class="has-yuki-font-medium-font-size"><strong>3.&nbsp;ทดสอบเกมกันได้เลย</strong></p>



<ul class="wp-block-list has-yuki-font-medium-font-size">
<li>เจ้านกกระพือปีก และบินขึ้นเมื่อกดปุ่มสเปซบาร์</li>



<li>ท่อเคลื่อนไหวไปทางซ้าย โดยการเปลี่ยนตำแหน่ง</li>



<li>คะแนนเพิ่มขึ้นเรื่อย ๆ</li>



<li>ทุกอย่างหยุดเมื่อนกบินชนท่อ</li>



<li>เกมของเราเสร็จสมบูรณ์ ได้เวลาสนุก</li>
</ul>



<!DOCTYPE html>
<html>
<body>



<iframe src="https://www.codewizardshq.com/wp-content/uploads/2023/04/image-3.gif" height="500" width="100%" title="Iframe Example"></iframe>

</body>
</html>


<p>The post <a href="https://www.kroochut.com/%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87%e0%b9%80%e0%b8%81%e0%b8%a1%e0%b8%99%e0%b8%81%e0%b8%99%e0%b9%89%e0%b8%ad%e0%b8%a2%e0%b9%80%e0%b8%ab%e0%b8%b4%e0%b8%99%e0%b9%80%e0%b8%a7%e0%b8%ab%e0%b8%b2/">สร้างเกมนกน้อยเหินเวหา (Flappy Bird) ด้วย Scratch  1</a> appeared first on <a href="https://www.kroochut.com">ครูชัชดอทคอม</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.kroochut.com/%e0%b8%aa%e0%b8%a3%e0%b9%89%e0%b8%b2%e0%b8%87%e0%b9%80%e0%b8%81%e0%b8%a1%e0%b8%99%e0%b8%81%e0%b8%99%e0%b9%89%e0%b8%ad%e0%b8%a2%e0%b9%80%e0%b8%ab%e0%b8%b4%e0%b8%99%e0%b9%80%e0%b8%a7%e0%b8%ab%e0%b8%b2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Flappy Bird: เกมง่ายๆ ที่ซ่อนเทคนิคโค้ดดิ้งเจ๋งๆ ไว้เพียบ</title>
		<link>https://www.kroochut.com/%e0%b9%80%e0%b8%81%e0%b8%a1-flappy-bird/</link>
					<comments>https://www.kroochut.com/%e0%b9%80%e0%b8%81%e0%b8%a1-flappy-bird/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 11 Dec 2024 03:45:50 +0000</pubDate>
				<category><![CDATA[Game]]></category>
		<category><![CDATA[Flappy Bird]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[เกม]]></category>
		<guid isPermaLink="false">https://www.kroochut.com/?p=41</guid>

					<description><![CDATA[<p>เกม Flappy Bird: เรื่องราวของนกน้อยที่บินได้ไม่ค่อยจะตรง Flappy Bird เป็นเกมมือถือที่เคยสร้างปรากฏการณ์ได้รับความนิยมอย่างสูงทั่วโลกในช่วงปี 2013-2014 เกมนี้ดูเรียบง่ายแต่ท้าทาย ผู้เล่นจะต้องควบคุมนกตัวเล็ก ๆ ให้บินผ่านช่องว่างระหว่างท่อสีเขียวได้อย่างปลอดภัย เพียงแค่แตะหน้าจอเพื่อกระพือปีก แต่นั่นแหละคือความยาก! เพราะนกตัวนี้บินไม่ค่อยจะตรงเท่าไหร่ บินแรงไปหน่อยก็ชนเพดาน บินเบาไปหน่อยก็ชนท่อ จึงทำให้เกมนี้กลายเป็นเกมที่ทั้งสนุก ทั้งน่าหงุดหงิดในเวลาเดียวกัน จุดเด่นของเกม Flappy Bird เหตุผลที่เกม Flappy Bird ประสบความสำเร็จ ทำไม Flappy Bird ถึงเหมาะกับการลองเขียนโค้ดในการเรียนวิทยาการคำนวณ Flappy Bird เป็นเกมที่ดูเรียบง่ายแต่ซ่อนความซับซ้อนของหลักการทางวิทยาการคำนวณเอาไว้มากมาย ทำให้เป็นเกมที่เหมาะอย่างยิ่งสำหรับใช้เป็นตัวอย่างในการเรียนรู้การเขียนโปรแกรม โดยเฉพาะอย่างยิ่งสำหรับผู้เริ่มต้น เหตุผลหลักๆ ที่ทำให้ Flappy Bird เป็นเกมที่น่าสนใจสำหรับการเรียนรู้มีดังนี้ครับ 1. ความเรียบง่ายของกราฟิกและการควบคุม 2. หลักการทางวิทยาการคำนวณที่ครอบคลุม 3. เหมาะสำหรับการแบ่งย่อยปัญหา 4. มีเครื่องมือและทรัพยากรมากมาย</p>
<p>The post <a href="https://www.kroochut.com/%e0%b9%80%e0%b8%81%e0%b8%a1-flappy-bird/">Flappy Bird: เกมง่ายๆ ที่ซ่อนเทคนิคโค้ดดิ้งเจ๋งๆ ไว้เพียบ</a> appeared first on <a href="https://www.kroochut.com">ครูชัชดอทคอม</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<iframe src="https://funhtml5games.com?embed=flappy" style="width:800px;height:520px;border:none;" frameborder="0" scrolling="no"></iframe>



<h2 class="wp-block-heading has-vivid-purple-color has-text-color has-link-color wp-elements-e9aa2512ef66226720bd0eb643b8dab4">เกม Flappy Bird: เรื่องราวของนกน้อยที่บินได้ไม่ค่อยจะตรง</h2>



<p class="has-yuki-font-medium-font-size"><strong>Flappy Bird</strong> เป็นเกมมือถือที่เคยสร้างปรากฏการณ์ได้รับความนิยมอย่างสูงทั่วโลกในช่วงปี 2013-2014 <br>เกมนี้ดูเรียบง่ายแต่ท้าทาย ผู้เล่นจะต้องควบคุมนกตัวเล็ก ๆ ให้บินผ่านช่องว่างระหว่างท่อสีเขียวได้อย่างปลอดภัย <br>เพียงแค่แตะหน้าจอเพื่อกระพือปีก แต่นั่นแหละคือความยาก! เพราะนกตัวนี้บินไม่ค่อยจะตรงเท่าไหร่ บินแรงไปหน่อยก็ชนเพดาน <br>บินเบาไปหน่อยก็ชนท่อ จึงทำให้เกมนี้กลายเป็นเกมที่ทั้งสนุก ทั้งน่าหงุดหงิดในเวลาเดียวกัน</p>



<p><strong>จุดเด่นของเกม Flappy Bird</strong></p>



<ul class="wp-block-list has-yuki-font-medium-font-size">
<li><strong>ความเรียบง่าย:</strong> กราฟิกสวยงามแต่ไม่ซับซ้อน ควบคุมง่ายเพียงแค่แตะหน้าจอ</li>



<li><strong>ความท้าทาย:</strong> เกมมีความยากที่ค่อย ๆ เพิ่มขึ้นเรื่อย ๆ ทำให้ผู้เล่นติดงอมแงม</li>



<li><strong>ความแปลกใหม่:</strong> ในช่วงที่เกมออกใหม่ ยังไม่มีเกมมือถือแนวนี้มากนัก ทำให้ Flappy Bird โดดเด่นเป็นเอกลักษณ์</li>
</ul>



<p class="has-yuki-font-medium-font-size"><strong>เหตุผลที่เกม Flappy Bird ประสบความสำเร็จ</strong></p>



<ul class="wp-block-list">
<li class="has-yuki-font-medium-font-size"><strong>การบอกต่อ:</strong> ผู้เล่นต่างพากันแชร์คะแนนและความรู้สึกขณะเล่นเกมผ่านโซเชียลมีเดีย ทำให้เกมเป็นที่รู้จักอย่างรวดเร็ว</li>



<li class="has-yuki-font-medium-font-size"><strong>ความยากที่พอดี:</strong> เกมมีความยากที่ทำให้ผู้เล่นรู้สึกท้าทายและอยากเล่นซ้ำอีก</li>



<li class="has-yuki-font-medium-font-size"><strong>ความเป็นไวรัล:</strong> เกมกลายเป็นกระแสไวรัลที่พูดถึงกันทั่วโลก</li>
</ul>



<h2 class="wp-block-heading has-luminous-vivid-orange-color has-text-color has-link-color wp-elements-cc192e5c0e2956237e40e237cab5d9d6">ทำไม Flappy Bird ถึงเหมาะกับการลองเขียนโค้ดในการเรียนวิทยาการคำนวณ</h2>



<p class="has-yuki-font-medium-font-size"><strong>Flappy Bird</strong> เป็นเกมที่ดูเรียบง่ายแต่ซ่อนความซับซ้อนของหลักการทางวิทยาการคำนวณเอาไว้มากมาย ทำให้เป็นเกมที่เหมาะอย่างยิ่งสำหรับใช้เป็นตัวอย่างในการเรียนรู้การเขียนโปรแกรม โดยเฉพาะอย่างยิ่งสำหรับผู้เริ่มต้น เหตุผลหลักๆ ที่ทำให้ Flappy Bird เป็นเกมที่น่าสนใจสำหรับการเรียนรู้มีดังนี้ครับ</p>



<h3 class="wp-block-heading">1. <strong>ความเรียบง่ายของกราฟิกและการควบคุม</strong></h3>



<ul class="wp-block-list">
<li class="has-yuki-font-medium-font-size"><strong>เข้าใจง่าย:</strong> กราฟิกของเกมเรียบง่าย ประกอบด้วยตัวละครหลักเพียงตัวเดียวและฉากหลังที่ไม่ซับซ้อน ทำให้ผู้เรียนสามารถเข้าใจคอนเซ็ปต์ของเกมได้อย่างรวดเร็ว</li>



<li class="has-yuki-font-medium-font-size"><strong>การควบคุมที่จำกัด:</strong> การควบคุมเกมมีเพียงการแตะหน้าจอเพื่อกระพือปีก ทำให้ผู้เรียนสามารถโฟกัสไปที่ตรรกะของการเขียนโปรแกรมได้โดยไม่ต้องเสียเวลาไปกับการเรียนรู้การควบคุมที่ซับซ้อน</li>
</ul>



<h3 class="wp-block-heading">2. <strong>หลักการทางวิทยาการคำนวณที่ครอบคลุม</strong></h3>



<ul class="wp-block-list">
<li class="has-yuki-font-medium-font-size"><strong>การเคลื่อนที่:</strong> การเคลื่อนที่ของนกและท่อเป็นการนำหลักการของฟิสิกส์พื้นฐานมาประยุกต์ใช้ เช่น แรงโน้มถ่วง ความเร็ว และการเร่ง</li>



<li class="has-yuki-font-medium-font-size"><strong>การตรวจจับการชน:</strong> การตรวจสอบว่านกชนกับท่อหรือพื้นหรือไม่ เป็นการนำหลักการของเรขาคณิตและตรรกะมาประยุกต์ใช้</li>



<li class="has-yuki-font-medium-font-size"><strong>การสร้างลูป:</strong> การวนลูปเพื่อให้เกมทำงานซ้ำไปเรื่อยๆ จนกว่าผู้เล่นจะแพ้ เป็นการนำหลักการของโครงสร้างควบคุมมาประยุกต์ใช้</li>



<li class="has-yuki-font-medium-font-size"><strong>การสุ่ม:</strong> การสุ่มระยะห่างระหว่างท่อแต่ละคู่ ทำให้เกมมีความหลากหลายและท้าทายมากขึ้น</li>
</ul>



<h3 class="wp-block-heading">3. <strong>เหมาะสำหรับการแบ่งย่อยปัญหา</strong></h3>



<ul class="wp-block-list">
<li class="has-yuki-font-medium-font-size"><strong>การสร้างเกม:</strong> การสร้างเกม Flappy Bird สามารถแบ่งย่อยออกเป็นปัญหาเล็กๆ หลายๆ ปัญหา เช่น การสร้างตัวละคร การเคลื่อนไหว การตรวจจับการชน และการแสดงผลคะแนน ทำให้ผู้เรียนสามารถเรียนรู้การแก้ปัญหาทีละขั้นตอน</li>



<li class="has-yuki-font-medium-font-size"><strong>การแก้ไขปัญหา:</strong> เมื่อเกิดปัญหาในการเขียนโปรแกรม ผู้เรียนสามารถค่อยๆ ตรวจสอบและแก้ไขปัญหาแต่ละส่วนได้อย่างง่ายดาย</li>
</ul>



<h3 class="wp-block-heading">4. <strong>มีเครื่องมือและทรัพยากรมากมาย</strong></h3>



<ul class="wp-block-list">
<li class="has-yuki-font-medium-font-size"><strong>ภาษาโปรแกรม:</strong> มีภาษาโปรแกรมหลายภาษาที่สามารถใช้สร้างเกม Flappy Bird ได้ เช่น Python, Scratch, Unity</li>



<li class="has-yuki-font-medium-font-size"><strong>ตัวอย่างโค้ด:</strong> มีตัวอย่างโค้ดและบทเรียนออนไลน์มากมายที่สอนวิธีการสร้างเกม Flappy Bird ทำให้ผู้เรียนสามารถนำไปศึกษาและปรับใช้ได้</li>
</ul>



<p></p>
<p>The post <a href="https://www.kroochut.com/%e0%b9%80%e0%b8%81%e0%b8%a1-flappy-bird/">Flappy Bird: เกมง่ายๆ ที่ซ่อนเทคนิคโค้ดดิ้งเจ๋งๆ ไว้เพียบ</a> appeared first on <a href="https://www.kroochut.com">ครูชัชดอทคอม</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.kroochut.com/%e0%b9%80%e0%b8%81%e0%b8%a1-flappy-bird/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
