diff options
author | Minteck <nekostarfan@gmail.com> | 2021-06-05 21:03:47 +0200 |
---|---|---|
committer | Minteck <nekostarfan@gmail.com> | 2021-06-05 21:03:47 +0200 |
commit | 4ec6f33be6130705b81f19fdc9e2fe01b4a3e7e2 (patch) | |
tree | 5b302015939c129ea7fdffc9560fdd89e2547039 /race/cars/keymap.js | |
parent | 97ebd65491420363f74ae9e5e6bf77495a37172f (diff) | |
download | kartik-client-4ec6f33be6130705b81f19fdc9e2fe01b4a3e7e2.tar.gz kartik-client-4ec6f33be6130705b81f19fdc9e2fe01b4a3e7e2.tar.bz2 kartik-client-4ec6f33be6130705b81f19fdc9e2fe01b4a3e7e2.zip |
Stats presque fini
Diffstat (limited to 'race/cars/keymap.js')
-rw-r--r-- | race/cars/keymap.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/race/cars/keymap.js b/race/cars/keymap.js index 74cce0a..221a7ec 100644 --- a/race/cars/keymap.js +++ b/race/cars/keymap.js @@ -29,6 +29,7 @@ startHooks.push(() => { car0cspeed = car0cspeed + 0.2; } if (document.getElementById("car0").style.transform !== "rotate(-90deg)") { + require('electron').ipcRenderer.send('addstats', { catalog: "ingame", key: "turns", add: 1 }); document.getElementById("car0").style.transform = "rotate(-90deg)"; car0collisionon = false; setTimeout(() => { @@ -41,6 +42,7 @@ startHooks.push(() => { car0cspeed = car0cspeed + 0.2; } if (document.getElementById("car0").style.transform !== "rotate(90deg)") { + require('electron').ipcRenderer.send('addstats', { catalog: "ingame", key: "turns", add: 1 }); document.getElementById("car0").style.transform = "rotate(90deg)"; car0collisionon = false; setTimeout(() => { @@ -53,6 +55,7 @@ startHooks.push(() => { car0cspeed = car0cspeed + 0.2; } if (document.getElementById("car0").style.transform !== "rotate(180deg)") { + require('electron').ipcRenderer.send('addstats', { catalog: "ingame", key: "turns", add: 1 }); document.getElementById("car0").style.transform = "rotate(180deg)"; car0collisionon = false; setTimeout(() => { @@ -65,6 +68,7 @@ startHooks.push(() => { car0cspeed = car0cspeed + 0.2; } if (document.getElementById("car0").style.transform !== "rotate(0deg)") { + require('electron').ipcRenderer.send('addstats', { catalog: "ingame", key: "turns", add: 1 }); document.getElementById("car0").style.transform = "rotate(0deg)"; car0collisionon = false; setTimeout(() => { |