built
This commit is contained in:
parent
69a949381f
commit
b7aecbb933
3 changed files with 13 additions and 2 deletions
File diff suppressed because one or more lines are too long
|
|
@ -4,7 +4,7 @@
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
|
|
||||||
<title>🧩 jigsaw.hyottoko.club</title>
|
<title>🧩 jigsaw.hyottoko.club</title>
|
||||||
<script type="module" crossorigin src="/assets/index.d7fe3ee6.js"></script>
|
<script type="module" crossorigin src="/assets/index.3ca85e0f.js"></script>
|
||||||
<link rel="modulepreload" href="/assets/vendor.18cd2d7e.js">
|
<link rel="modulepreload" href="/assets/vendor.18cd2d7e.js">
|
||||||
<link rel="stylesheet" href="/assets/index.f7304069.css">
|
<link rel="stylesheet" href="/assets/index.f7304069.css">
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
|
|
@ -957,6 +957,17 @@ function handleInput$1(gameId, playerId, input, ts, onSnap) {
|
||||||
changePlayer(gameId, playerId, { name, ts });
|
changePlayer(gameId, playerId, { name, ts });
|
||||||
_playerChange();
|
_playerChange();
|
||||||
}
|
}
|
||||||
|
else if (type === Protocol.INPUT_EV_MOVE) {
|
||||||
|
const w = input[1];
|
||||||
|
const h = input[2];
|
||||||
|
const player = getPlayer(gameId, playerId);
|
||||||
|
if (player) {
|
||||||
|
const x = player.x - w;
|
||||||
|
const y = player.y - h;
|
||||||
|
changePlayer(gameId, playerId, { ts, x, y });
|
||||||
|
_playerChange();
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (type === Protocol.INPUT_EV_MOUSE_DOWN) {
|
else if (type === Protocol.INPUT_EV_MOUSE_DOWN) {
|
||||||
const x = input[1];
|
const x = input[1];
|
||||||
const y = input[2];
|
const y = input[2];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue