From a3ba4d26c2f0bc7b29f806496a4541b24ed2d62b Mon Sep 17 00:00:00 2001 From: Guillaume Fay Date: Sat, 7 Oct 2017 15:35:51 +0200 Subject: [PATCH] Add icon and fix bug gameover --- client/img/icone.icns | Bin 0 -> 51114 bytes client/js/client.js | 8 ++++---- main.js | 8 ++++---- package.json | 4 +++- 4 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 client/img/icone.icns diff --git a/client/img/icone.icns b/client/img/icone.icns new file mode 100644 index 0000000000000000000000000000000000000000..589c0f52b00e720c314b961791d34d73e7dae370 GIT binary patch literal 51114 zcmb6C2Vhjy*2fL+OlBsX-i3sg0BNN6DG9wJc2q=E1bfAPnFJERu2``vV8eo<6g54W zmfjQ6D>an#WG3hRuYJx;;(eay``-5^H=MoaoVEM;%y zy3zwl_bJn-IlImY4W8xfHe(t-o;Kah*)t?`j;qVG>3gQmpD|WB#Xo$}1jYCnQ)f86 zAPk|zb`K_VVA^l0JFhnWe!GG>BrmMrP-Qe^;bKqzKCKDNzC1W#eP-Yd8O{hm5k)=ma)0}^3Frv3sad)&K}_f zcT8|}nDjICs(@+~E@sXOg%i8&66H`&Y@!Tjrfm?cbc@ja5OY${)x#Ds;?XH$etIO&nGX1hYtsRTMNlB&=mO zoD)!7k}w{v5K7piytMO9zvACy!3Cq+qV%O^?nPo)=%43)9z)0zR$&P%M$;*Q$~=f3 z8bZRA60fp%sDAX(knj^tBT9@LMvq0@%Zq54-3&p=f^JwL_}+%B6u}AiZU{kcir|dP zU6ZKXWPbfQYvXr2LqHZYqEyPa3XSYAe{>A)fBJ4NxFM`Z7~ThA7GW9nohWzbTKnbO z0T4^M7U9q7eRQwVDpZcE7p(M@&^09$;!^|?`OZC}$Pg@fQDg$m2T|nqRrbp_eeEJo zOz9Q)4OXGt<1CkH6|PPEi_07fnQw|RTW8eT+dpq3m!v?AR{Ehw#5O-R29l)f4;ig3 z%C`uAu}pjWYuIP}(Qy#GQ*8eQ$FFT&k7lviT@WG;-jx|jk|GU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J|(5T(a+j%K3{nol-q+vBG0;g+qImE_ioctLk-$PLEM^ z1?2;E3*TP-vFeL&@I^k^SY5U5aMddFEr?@rGU(HFhYeZ7+v8^H_jJr^SMIK^}jCe#j> zHB32`zJJNsTZpp8 zK1M~}4G%ULqzC(7@`r0fy09Oftac;en}Pa}J`khk@xosqQH@Jaa72+WcE?R)Ywzjs zCrI`=YDZSlghG(!&{wk%>%WVC7d-JM9s)NWPY~qG|FZ(A30@Md{o({K{Rv*aNbr*2 z)8~ih3UCFu0$c&E09Sx3z!l&Ma0R#mTmh~CSAZ+P72pbR1-JrS0j>a7fGfZi;0kaB zxB^@Ot^iknE5H@t3UCFu0$c&E09Sx3z!l&Ma0R#mTmh~CSAZ+P72pbR1-JrSf&Wnj j?k9NpGQmrtyXE { ipcRenderer.on('iaMoved', (event, data) => { console.log('Event : iaMoved'); updateGrid(data.board); + humanCanPlay = true; + displayTurn(1); if (data.gameOver !== 0){ displayGameOver(data.gameOver); } - humanCanPlay = true; - displayTurn(1); }); newGame(); diff --git a/main.js b/main.js index d11edad..421e00b 100644 --- a/main.js +++ b/main.js @@ -1,6 +1,6 @@ const {dialog, BrowserWindow, app, ipcMain, Tray} = require('electron') const Puissance4 = require('./puissance4'); -const minMaxWorker = require('child_process').fork('./minmax'); +const minMaxWorker = require('child_process').fork(`${__dirname}/minmax`); let browserWindow, tray, game; @@ -11,17 +11,17 @@ const createBrowserWindow = () => { } const createTray = () => { - tray = new Tray('client/img/red.png'); + tray = new Tray(`${__dirname}/client/img/red.png`); tray.setToolTip('A vous de jouer.'); } const updateTray = (event) => { let image, tooltip; if (event === 'humanMoved') { - image = 'client/img/yellow.png' + image = `${__dirname}/client/img/yellow.png` tooltip = 'A Electron de jouer'; } else { - image = 'client/img/red.png' + image = `${__dirname}/client/img/red.png` tooltip = 'A vous de jouer'; } tray.setImage(image); diff --git a/package.json b/package.json index b8304de..ea218e2 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,10 @@ }, "build": { "appId": "com.electron.puissance4", + "productName": "Puissance 4", "mac": { - "category": "public.app-category.games" + "category": "public.app-category.games", + "icon": "client/img/icone.icns" } } }