本课程由Frank Dvorak主讲,11小时140节,带你用原生JavaScript与HTML5 Canvas从零手写2D动作游戏,涵盖动画状态、敌方AI、粒子特效、镜头跟随与事件系统,全程不依赖任何游戏引擎,最终用VS Code发布上线,适合有JS基础的初学者。
原始标题:JavaScript Game Development Pixel by Pixel

这个课程是专为具备基础 JavaScript 知识的初学者设计的原生 2D 游戏开发指南,由 Frank Dvorak 创建,总长 11 小时 20 分钟。课程完全不依赖任何第三方游戏引擎或框架,通过 140 节纯粹的手写代码教学,手把手带你利用 HTML5 Canvas 和 Vanilla JS 从零构建出一款包含多状态动画、敌方 AI、粒子特效、镜头跟随及事件系统的完整 2D 动作游戏,并最终使用 VS Code 和 Live Server 将其发布上线。
Published 10/2026
Created by Frank Dvorak
MP4 | Video: h264, 2560×1440 | Audio: AAC, 44.1 KHz, 2 Ch
Level: Beginner | Genre: eLearning | Language: English | Duration: 140 Lectures ( 11h 20m ) | Size: 14.1 GB
Build and publish 2D games. HTML5 Canvas, plain JavaScript, no engine needed
What you’ll learn
⚡ Learn how to build 2D games in vanilla JavaScript and HTML5 Canvas, with no frameworks or libraries
⚡ Organize game code into modules, managers and data files that are easy to extend
⚡ Connect audio, particles, UI and camera effects with an event system instead of tangled dependencies
⚡ Animate sprite sheets with a reusable animation state system, including hit and death animations
⚡ Find and fix your own bugs by comparing your code with a complete working checkpoint of the project
⚡ Run your project with VS Code and Live Server, then publish the finished game online so anyone can play it
⚡ Add game feel with particle effects, screen shake, knockback and a smooth follow camera
Requirements
❗ Basic JavaScript: variables, functions, arrays, objects, loops and conditionals
❗ Basic HTML and CSS, and how JavaScript finds and changes page elements (DOM basics)
❗ No game development or art skills needed: free pixel-art assets are included
Description
Let’s build 2D action games with JavaScript and the HTML5 Canvas, no engine or framework. We’ll include all the basics every game needs, like animated sprites, enemies, particles, screen shake and a camera that follows your hero, and we’ll write every line together from scratch. When it’s done, we’ll publish it online so you can send anyone a link to play it.
In this course, you will
✨ Build a 2D action game from scratch, handcrafting every system in plain JavaScript on the HTML5 Canvas, with no engine or framework
✨ Bring game characters to life with sprite sheets and a state-based animation system, so every move, hit and defeat plays the right frames
✨ Unleash enemies that look, move and behave differently, then spawn and recycle them with object pooling
✨ Add the game feel that makes every hit land: particle bursts, screen shake and knockback
✨ Create a follow camera that tracks your hero across a world bigger than the window, then ground every character with depth sorting and shadows
✨ Wire sound, effects and UI together with an event system, so one hit triggers all three without spaghetti code
✨ Drive your game from data files, so you can retune enemies, swap sounds and sprites, and rewrite missions without touching the game loop
✨ Wrap it all in a real interface: an HTML and CSS HUD, menus, a pause screen and mission briefings
✨ Debug with your eyes instead of guesswork by drawing helper shapes over the action
✨ Publish your finished game online and share it with a single link, so anyone with a browser can play it
If you know the basics of JavaScript and want to try game development on something bigger than a tutorial toy, this workshop is for you. Maybe you have followed a game tutorial and ended up with code you could copy but not change. Maybe you have looked at game engines and wondered what they actually do for you. Either way, the fix is the same: build the game yourself, one small piece at a time, until nothing about it is a mystery.
Tools, art and code
All you need is a modern browser and the free Visual Studio Code editor, and I show how to use it with the Live Server extension. VS Code runs on Windows, macOS and Linux, so you can follow along on whichever you use. Free art assets are included so you can focus on the code. Sprites are described in data files, so you can swap in your own artwork later
Before you start
You should already know the basics of JavaScript: variables, functions, if statements, loops, arrays and objects. You do not need any game development experience. More advanced features such as classes and async/await are introduced briefly where the game uses them, and every line is explained, but I do not teach JavaScript from zero. If you have never written JavaScript before, take a beginner course first and then come back, you will enjoy this one far more.
Who this course is for
⭐ JavaScript learners who have finished beginner tutorials and want to build a complete game instead of another small exercise
⭐ Self-taught developers and bootcamp students who want a project that shows how to structure code, not just make it work
⭐ Hobbyists whose game code became one giant script that broke whenever they added a feature
⭐ Aspiring indie developers who want a reusable 2D starter kit they can adapt with their own art and ideas
⭐ Unity or Godot users curious how animation, cameras, particles and audio work when built from scratch
此处内容需要权限查看
会员免费查看



