~/talk

Build Your Own Game Engine in the Browser

Talkat CPH DevFest 2024 · 2024-08-26..08-30· [javascript, creative-coding]
slides:none on file

Builds a working 2D game engine that runs in the browser and was put together in 10 days, using HTML5 canvas rendering, sprite sheets and animated GIFs, a simple ECS-like characteristics system, Mario‑style physics with velocity and gravity, and collision detection via a collision‑map JPEG read by the canvas API. Engine supports keyboard, touch and the browser Gamepad API, runs an asynchronous ghost‑race multiplayer mode on mobile and desktop, and proved playable at the conference.

AI-written summary · about

  1. 0:00Introduction to game modding
  2. 1:00Evolution of game engines
  3. 5:02Game engine architecture
  4. 9:53Defining engine subsystems
  5. 11:57The game loop and life
  6. 15:49Handling user input
  7. 20:07Entities and behaviors
  8. 23:25Entity-component systems
  9. 28:53Physics and platforming
  10. 31:49Graphics and sprites
  11. 36:00Rendering layers and camera
  12. 38:58Collision and AI mechanics
  13. 44:00Live demo and conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.