(62010765) วิธีการทำหน้า Menu ก่อนเข้าเกมส์ และ หน้า Pause แบบ Eazy Eazy

RAPEEPAT PENGTEE
Nov 3 · 1 min read

สวัสดีครับเพื่อนๆ ผมชื่อพี อยู่ Sec 19 นะ วันนี้ผมก็จะมาสอนวิธีการทำหน้า Menu กัน ซึ่งหลายคนอาจจะมีวิธีทำเป็นของตัวเองอยู่แล้ว แต่วันนี้ผมก็จะมาแชร์วิธีที่ผมทำ

ซึ่งวิธีที่ผมทำนั้น ก็คือการใช้ ตัวแปร boolean มามีส่วนในการเปลี่ยน State ของภาพ

โดย ลูปเกมของผมจะ จะมี 3 ลูป หลัก ดังนี้

ถ้ามีอะไรตกหล่นไป มีไรผิดพลาดก็ขออภัยมาที่นี้ด้วยนะครับ

หวังว่าบล็อคนี้จะมีประโยชน์ต่อการทำเกมส์ ของเพื่อนไม่มากก็น้อย ขอบคุณครับ

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade