From d22f675e3ec80a48ea07b3cf911c4012df3e79cc Mon Sep 17 00:00:00 2001 From: Nicholas Hebert <68243838+n-hebert@users.noreply.github.com> Date: Thu, 9 May 2024 11:40:26 -0300 Subject: [PATCH] Modify hotkeys to add 0 and SPC for pause --- src/components/Compositor.tsx | 2 +- src/data/Scenarios.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Compositor.tsx b/src/components/Compositor.tsx index 21e7ca2..bf6a98e 100644 --- a/src/components/Compositor.tsx +++ b/src/components/Compositor.tsx @@ -37,7 +37,7 @@ import { setSpeed } from "../reducers/Game"; import { store } from "../Store"; const keyMap = { - PAUSED: "`", + PAUSED: ["`", "space", "0"], SLOW: "1", NORMAL: "2", FAST: "3", diff --git a/src/data/Scenarios.tsx b/src/data/Scenarios.tsx index 5af11d9..835a9c7 100644 --- a/src/data/Scenarios.tsx +++ b/src/data/Scenarios.tsx @@ -169,7 +169,7 @@ export const SCENARIOS = [ target: "#speedChangeButtons", content: ( - Start the game by unpausing it. (Hotkeys: ~/1/2/3) + Start the game by unpausing it. Hotkeys are in a row: `/1/2/3. Space and 0 also pause.

This tutorial will run for 1 year. Try building different types of