Fakery, Artificial Intelligence, Collision Detection, a 2D Platform Shooter in JS
summary
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
chapters (16)
- 0:00Start
- 2:30MOLE
- 4:30PARTICLES
- 6:41PARALLAX SCROLLING
- 8:09PERFORMANCE
- 9:10DENIAL
- 11:06THE WORLD IS A GRID
- 11:38THE WORLD IS NOT A GRID
- 16:52BOUNDING BOXES
- 17:04UNMOVING OBJECTS
- 19:35BEHAVIOUR TREES
- 20:02SHOOT
- 21:32STRATEGIES
- 26:09COOL
- 27:08UNHITCHING YOUR LOVER'S BELT
- 28:26FALLING IN LOVE
related talks
42mMake coding fun: developing a game in the browser
45mNatural physics simulations and canvas hackery
25mJavascript as Play A Primer on Getting Started with Video Games
51mBuild Your Own Game Engine in the Browser
26mdeveloping videogames in JavaScript
29m"JavaScript as Play"
50mBuild Your Own Game Engine in the Browser
31mMake coding fun: developing a game in the browser
