JS Fight: How I Wrote My Own eval()
summary
Presentation describes the Script Battle Game — a small game written in JavaScript — and explains its internal implementation: a custom safe eval/sandbox for running user scripts, use of Web Workers for isolation, and reactive programming with RxJS to manage event streams. It covers technical details of building a developer-focused game (why RxJS and Workers were chosen over a mainstream game engine), sandboxing strategies for safe JS execution, and practical challenges of handling event streams and development timelines.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 3:45Game purpose
- 10:49Eval security issues
- 17:53Sandboxing isolation
- 24:58Randomness sync
- 30:59Game state management
- 34:31Singleplayer to multiplayer
- 37:02Game engine choice
- 40:13Testing user feedback
- 44:44JS game dev tips
- 46:31Q&A
related talks
29m"JavaScript as Play"
30mThe Magic of RxJS
05mWhy 'eval' makes JS the best language in the world
29mJavaScript and Game Development
01h 14mWorkshop (Part 1): Building a Small 2D Game Engine in JS
49mScala js: getting the best of JavaScript and Scala
45mHow to cook with RxJS
59mWorkshop - Test Drive a Browser Game With JavaScript
