Simple Intro to 2D Gaming in JS
Teach order:
Concept | Code | Example |
---|---|---|
Rect | document.getElementById.getContext.fillRect | Chess Board |
Colour | fillStyle | Flag |
Image | new Image() | Mario PNG |
Input | window.onclick | Bang |
Animate | requestAnimationFrame() | Cloud |