Overview
Syllabus
Intro
Why learn JS to make games?
Environment Setup
Core concept #1 : variable and constants
Core concept #2 : conditional statements and boolean operations
Core concept #3 : complex data types Arrays and objects
Core concept #4 : loops
Core concept #5 : functions + param passing by reference vs by value
Core concept #6 : local vs global scoping
Core concept #7 : comments + how import/export js code works
What is a library?
Setting a modern dev environment with Node.js, NPM and Vite
Making our first JS game
How to export your JS game to a platform like itch.io
Next steps useful resources
Intro - What is Kaplay
How to install Kaplay
How to deploy/publish a game made with Kaplay
How to initialize the Kaplay
How to load assets in Kaplay
How scenes work in Kaplay
How game objects work in Kaplay
Child vs parent game objects
Kaplay major components : the sprite component
Kaplay major components : the area component
Kaplay major components : the body component
Kaplay major components : the text component
Introducing tags and get method
use and unuse methods to add/remove components
Handling collisions with onCollide and onCollideEnd
Handling use input with onKeyDown, onKeyPress and onKeyRelease
Advanced features : tween function
Advanced features : Briefly introducing how game maps are made in Kaplay
Advanced features : Briefly introducing how AI made with state machines
Advanced features : Briefly introducing custom events in Kaplay
Taught by
freeCodeCamp.org