Quellcode durchsuchen

Primeiro commit - código inicial do iFrações

prislalima vor 1 Monat
Ursprung
Commit
56e75afd26
1 geänderte Dateien mit 7 neuen und 0 gelöschten Zeilen
  1. 7 0
      js/screens/map.js

+ 7 - 0
js/screens/map.js

@@ -180,7 +180,9 @@ const mapState = {
       navigation.add.left(['back', 'menu'], 'customMenu');
     }
 
+    
     game.event.add('click', this.onInputDown);
+   
     game.event.add('mousemove', this.onInputOver);
   },
 
@@ -246,6 +248,11 @@ const mapState = {
     const x = game.math.getMouse(mouseEvent).x;
     const y = game.math.getMouse(mouseEvent).y;
 
+    if (!self.waitUserAction) {
+      navigation.onInputDown(x, y);
+    return;
+  }
+
     if (game.math.isOverIcon(x, y, self.continueButton)) {
       if (audioStatus) game.audio.popSound.play();
       self.loadGame();