3 ms·
This is superb, addicting as hell, and now I have to force myself to stop because I have real work to do. The game gets increasingly jittery as it gets busier.
by yoz 5y ago
This is superb, addicting as hell, and now I have to force myself to stop because I have real work to do.
The game gets increasingly jittery as it gets busier. It might be worth writing some tests to simulate lots of players moving around so it's easier to tune the performance.
- westoncb 5y agoGlancing at the code, it looks like he's rendering everything via DOM elements. I think player sprites are positioned using the top/left properties; could potentially optimize by keeping those props constant and just updating `transform: translate(x,y)` instead...
- jasonkester 5y agoThat's a holdout from 1998. Can't go changing things up after all that time, can we? I imagine today I would have built the whole thing in canvas. But it's cool how quick you can get something up and running if you let the browser do most of the work.