We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d841f34 commit ad5a369Copy full SHA for ad5a369
src/main.ts
@@ -139,12 +139,10 @@ export async function setup(
139
cx.dynamic.player.y = blockSize * d.initialPlayerY + get(cx.config).marginY;
140
cx.dynamic.player.vx = 0;
141
cx.dynamic.player.vy = 0;
142
+ cx.dynamic.player.jumpingBegin = null;
143
cx.dynamic.focus = null;
144
cx.elapsed = 0;
- cx.state.update((prev) => ({
145
- ...prev,
146
- paused: false,
147
- }));
+ cx.state.set(structuredClone(initialGameState));
148
cx.grid.diffAndUpdateTo(cx, createCellsFromStageDefinition(stageDefinition));
149
// 上に同じく。 init を使う?でも init は中で document.addEventListener してるので...
150
History.record(cx);
0 commit comments