Impülement intro questions

This commit is contained in:
Dennis Schoepf 2021-08-02 17:01:27 +02:00
parent 1e5b627e26
commit 47a7ec98ea
5 changed files with 266 additions and 10 deletions

View file

@ -38,7 +38,11 @@ const sketch = (s: p5) => {
s.mousePressed = () => {
const { currentScene, companionState, infoMessageShown } = store.getState();
if (companionState !== CompanionState.ACTIVE || !infoMessageShown) {
if (
companionState !== CompanionState.ACTIVE ||
!infoMessageShown ||
store.getState().currentIntroStep === 0
) {
if (currentScene === Scenes.OVERVIEW) {
overviewScene.onSceneClick();
} else if (currentScene === Scenes.DETAIL) {