2 ms·
I'm referring to how if you look at the demos linked, they're using C++/Java style OO patterns in JavaScript that's apparently being written from scratch (inste
by kevingadd 15y ago
I'm referring to how if you look at the demos linked, they're using C++/Java style OO patterns in JavaScript that's apparently being written from scratch (instead of ported from existing C++/Java game code). If you're writing from scratch, you should really use JS-friendly patterns so that your code will perform better. Some of this might be due to the fact that they're porting libraries from other languages (like Box2D, for example).
Entity.position = new geo.Point(x, y) versus entity.x = x, entity.y = y; ... etc.