10 | function myRestartStopFunction(){ |
11 | console.log("Begin myRestartStopFunction: isStopped=",isStopped); |
12 | clearInterval(myRun); |
13 | init(); |
14 | if(false){ |
15 | isStopped=false; |
16 | document.getElementById('startStopButton').innerHTML="Neues Spiel"; |
17 | myRun=setInterval(main_step, 1000/fps); |
18 | } |
19 | else{ |
20 | document.getElementById('startStopButton').innerHTML=""; |
21 | document.getElementById('mouseMoveDisplay').innerHTML |
22 | ="Gehen Sie mit der Maus zum schwarzen Punkt<br />" |
23 | +" und starten Sie mit Mausklick oder Tastendruck"; |
24 | isStopped=true; |
25 | main_step(); |
26 | } |
27 | console.log("end of myResumeStopFunction: isStopped=",isStopped); |
28 | |
29 | } |