Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
xana
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
16 ms
·
1.
▲
by
xana
11y ago
But wouldn't it be more efficient to calculate the velocity on the client side then only send changes to the vector?
2.
▲
by
xana
11y ago
Yeah I know right. No wonder this game crashes. When you press the space bar it sends a message, when you move your mouse it sends a message. The message is in function U() (its the Y position, X position and some other value I've conf
3.
▲
by
xana
11y ago
While looking at the js source code and modifying it a bit I was able to program keys W A S D to move my cell around. But it doesn't work after a bit. The protocol is send the position of the mouse (which corresponds to the cell) to th