~/talk

Make coding fun: developing a game in the browser

Talkat FrontCon 2018 · 2018-06-14..06-15· [javascript, web-performance]
slides:none on file

Claims that full games run in vanilla JavaScript and were built over a few weekends, with an actual demo called Blasteroids that runs in the browser. Uses canvas + requestAnimationFrame, sprite assets shared to save memory, keyboard state as a Set for multi-key input, rectangle-vertex collision tests, a jump counter reaching ~48 pixels over ~30–40 frames, sound via Audio, scene manager and a single game loop. Codebase is roughly a hundred lines and the demo works live.

AI-written summary · about

  1. 0:00Start
  2. 1:16Differences between Normal Front-End Development and Game Programming
  3. 1:55Game Loop
  4. 4:09Sprites and Assets
  5. 4:20Animation
  6. 6:36Assets
  7. 8:15Draw Part
  8. 11:54Keyboard Input
  9. 16:07Heat Detection
  10. 19:44Demo
  11. 24:10Recap
  12. 25:32Abstract the Main Loop into a Game Class
  13. 26:09Scene Manager
  14. 26:35The Scene
  15. 27:46Demo of the Game
~/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.