~/talk

Fakery, Artificial Intelligence, Collision Detection, a 2D Platform Shooter in JS

Talkat JSConf US 2011 · 2011-05-02..05-03· [creative-coding, javascript]
slides:none on file

A 2D platform shooter called Pistol Slut is implemented in JavaScript on the canvas using the Render Engine and runs in modern browsers. Fakery uses particles with 700 ms life and parallax layers; collision is grid plus bounding boxes, bullets use line intersection to recover impact point and grenades use sweeping collision detection; AI is behavior trees serialized as JSON with prioritized and sequential strategies. Performance wins come from on/off‑camera caching and selective denial; the game is built and playable.

AI-written summary · about

  1. 0:00Start
  2. 2:30MOLE
  3. 4:30PARTICLES
  4. 6:41PARALLAX SCROLLING
  5. 8:09PERFORMANCE
  6. 9:10DENIAL
  7. 11:06THE WORLD IS A GRID
  8. 11:38THE WORLD IS NOT A GRID
  9. 16:52BOUNDING BOXES
  10. 17:04UNMOVING OBJECTS
  11. 19:35BEHAVIOUR TREES
  12. 20:02SHOOT
  13. 21:32STRATEGIES
  14. 26:09COOL
  15. 27:08UNHITCHING YOUR LOVER'S BELT
  16. 28:26FALLING IN LOVE
~/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.