Build 2D Games with HTML5 Canvas and JavaScript

Learn how to program responsive 2D browser games from scratch using modern JavaScript and the HTML5 Canvas API.

3.9 (175) ⏱ 1 ชม. 20 นาที 📚 9 บทเรียน 🎧 เวอร์ชันเสียง

เกี่ยวกับคอร์สนี้

Have you ever wanted to build your own web-based video games but did not know where to start? The HTML5 Canvas API combined with JavaScript offers a powerful, native way to create interactive 2D games that run smoothly on both desktop and mobile browsers. This text-based course takes you from a beginner to confidently programming your own web games. You will understand how to set up a high-performance game loop, render graphics, handle player input, and implement game physics without relying on heavy external frameworks. What you'll learn: - Understand the core concepts of the HTML5 Canvas API and how to render shapes and images. - Build a robust 2D game loop using modern JavaScript conventions for smooth rendering and performance. - Create sprite animations and manage character movement across the screen. - Apply basic physics and collision detection to handle interactions between game objects. - Implement responsive controls for both keyboard input and mobile touch events. - Configure game audio, preloaders, and state management for a polished user experience. You will begin with fundamental definitions and canvas setup before progressing to rendering single images, animating sprites, and structuring game logic. Through clear, step-by-step written explanations and practical code snippets, you will learn how to assemble these elements into fully functional browser games. This course is designed for beginners who have a basic understanding of HTML and JavaScript and want to apply their skills to game development. No prior game programming experience is required. Start reading today and build your first browser-based game from scratch.

สิ่งที่คุณจะได้รับ

  • 📜 ใบประกาศนียบัตร
    เพิ่มในโปรไฟล์ LinkedIn ของคุณ
  • 🎧 รวมเวอร์ชันเสียง
    เรียนได้ทุกที่ ไม่ต้องดูจอ
  • ♾️ เข้าถึงตลอดชีพ
    กลับมาเรียนได้ตลอด ไม่มีหมดอายุ
  • 📱 โทรศัพท์หรือคอมพิวเตอร์
    ใช้งานได้ทุกที่ ทุกอุปกรณ์
  • 💸 คืนเงิน 30 วัน
    ไม่ต้องอธิบาย
  • กระชับและตรงประเด็น
    1 ชม. 20 นาที เนื้อหาเชิงปฏิบัติ

รีวิว (3)

Mateo Herrera UY ผู้เรียนที่ยืนยันแล้ว
★ 4 · 2025-06-03T04:44:57+00:00

ชอบมาก โครงสร้างไหลลื่น การนำไปใช้จริงก็ใช้ได้ทันที เยี่ยมมาก!

Oskari Niemi FI
★ 5 · 2025-05-21T22:06:57+00:00

เนื้อหาแน่นหนาและนำเสนอได้ชัดเจน ฉันชอบการประยุกต์ใช้จริงที่แสดงให้เห็น น่าจะได้มีแบบฝึกหัดเพิ่มอีกสักหน่อย

Dagmawit Mulatu ET
★ 1 · 2025-04-10T14:47:57+00:00

อืมมม คาดหวังว่าจะได้เห็นการนำไปใช้จริงมากกว่านี้ คำอธิบายค่อนข้างเป็นนามธรรม และยังไม่แน่ใจว่าจะเอาไปใช้ยังไงเลย

เขียนรีวิว

หลังจากส่ง เราจะขอให้คุณเข้าสู่ระบบ — ฉบับร่างของคุณถูกบันทึก

ผู้เรียนคนอื่นเรียน

พื้นฐานอาชีพการเขียนโปรแกรมเกม

เรียนรู้ทักษะที่จำเป็นและทำความเข้าใจเส้นทางสู่การเป็นนักเขียนโปรแกรมเกม แม้ไม่มีประสบการณ์มาก่อน
★ 5.0 (18)
$4.99$9.99

พื้นฐานของเครื่องเกม: การเลือกและใช้ Unity, Unreal และ Godot

เข้าใจโครงสร้างพื้นฐานของเครื่องเกมสมัยใหม่ เลือกแพลตฟอร์มที่เหมาะสม และเริ่มสร้างเกมแรกของคุณ
★ 5.0 (6,972)
$4.99$9.99

พัฒนาเกมด้วย Unreal Engine5สำหรับมือใหม่

สร้างเกมสามมิติแบบตอบสนองจากพื้นฐานโดยการเรียนรู้การเขียนโปรแกรมด้วย Blueprints, พื้นฐานของ C++ และเทคโนโลยีการแสดงผลแบบสมัยใหม่
★ 4.9 (2,445)
$4.99$9.99

พัฒนาเกมบนมือถือ: สร้างและปรับแต่งเกมสำหรับมือถือ

เรียนรู้พื้นฐานการพัฒนาเกมมือถือ ตั้งแต่พื้นฐานการเขียนโปรแกรมและระบบสัมผัส จนถึงการปรับปรุงและปรับปรุงประสิทธิภาพของ UI
★ 4.9 (2,524)
$4.99$9.99

คำถามที่พบบ่อย

ฉันต้องใช้อะไรในการเรียนคอร์สนี้? +

แค่โทรศัพท์หรือคอมพิวเตอร์ที่มีอินเทอร์เน็ต ไม่ต้องติดตั้งหรือใช้อุปกรณ์พิเศษ

ฉันชำระเงินอย่างไร? +

ผ่านบัตรด้วย Stripe หรือคริปโต เราไม่เก็บข้อมูลบัตร — Stripe จัดการอย่างปลอดภัย

ฉันขอคืนเงินได้ไหม? +

ใช่ — คืนเงินเต็มจำนวนใน 30 วัน ไม่ต้องอธิบาย

ฉันมีสิทธิ์เข้าถึงนานเท่าไร? +

ตลอดไป เมื่อซื้อแล้วคอร์สเป็นของคุณ กลับมาเรียนได้ตลอด

ฉันจะได้ใบประกาศนียบัตรไหม? +

ได้ เมื่อเรียนจบจะได้รับใบประกาศนียบัตรที่เพิ่มในโปรไฟล์ LinkedIn ได้

ออกแบบสำหรับผู้เรียนใน
เทคโนโลยี ดีไซน์ การเงิน การตลาด สาธารณสุข การศึกษา ธุรกิจการบริการ อุตสาหกรรม