~/talk

Building Age Of Empires 2 with React: Rise of the Browser

Talkat JSworld Conference 2023 · 2023-02-08..02-10· [react, web-performance]
slides:none on file

Claims rebuilding Age of Empires 2 entirely in React with no game engine and rendering every tile is a DOM element using raw JS CSS and React. Implements world-to-screen isometric math to place sprites, a requestAnimationFrame game loop with refs for dynamic state, and vector math for unit movement. Result is a working prototype: clickable buildings, scrolling, animated units and facing directions, but incomplete and not released because original assets prevent distribution.

AI-written summary · about

  1. 0:00Introduction
  2. 1:57Who played AoE2
  3. 4:02Building game in React
  4. 5:27UI with React and CSS
  5. 6:29Game state with useReducer
  6. 7:34Isometric view rendering
  7. 9:41Isometric grid math
  8. 11:48Grid to screen space
  9. 12:49Units and buildings in DOM
  10. 13:11Smooth scrolling attempt
  11. 14:56Game loops with requestAnimationFrame
  12. 16:41Scrolling fix with state and refs
  13. 17:23Moving units with vectors
  14. 19:48Live demo
  15. 20:29Limitations and next steps
  16. 21:09Lessons learned
~/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.