xonecas.ioDon't click! Sean Caetano Martin Sign in
space-browser / client / src / pull.ts 6 lines453 bytes Raw
1// Where the piece in hand is being dragged to, in world space. Picking up and
2// dragging is direct manipulation: the client says where the piece is and the
3// server holds it at exactly that point, so the piece is drawn under the pointer
4// instead of one tick behind it. Nothing but the place of that one piece comes
5// from here, and it is never a decision about the world.
6export const pull: { to: { x: number; y: number } | null } = { to: null };