diff --git a/index.js b/index.js index 15061bb..0a6ab3b 100644 --- a/index.js +++ b/index.js @@ -917,21 +917,21 @@ function checkFlag(key) { async function finishPrepPhase(socket, playerGame) { await GInfo.endPrepPhase(socket); - // const members = [...roomMemberIterator(playerGame.id)]; - // for (let i = 0; i < members.length; i++) { - // const sid = members[i][0]; - // const socket = io.sockets.sockets.get(sid); + const members = [...roomMemberIterator(playerGame.id)]; + for (let i = 0; i < members.length; i++) { + const sid = members[i][0]; + const socket = io.sockets.sockets.get(sid); - // let placedShips = await GInfo.depleteShips(socket); - // placedShips.forEach(shipData => { - // socket.emit("placed ship", shipData) - // }); + let placedShips = await GInfo.depleteShips(socket); + placedShips.forEach(shipData => { + socket.emit("placed ship", shipData) + }); - // if (placedShips.length > 0) { - // const locale = new Lang(socket.session.langs); - // socket.emit("toast", locale.t("board.Your remaining ships have been randomly placed")) - // } - // } + if (placedShips.length > 0) { + const locale = new Lang(socket.session.langs); + socket.emit("toast", locale.t("board.Your remaining ships have been randomly placed")) + } + } GInfo.timer(playerGame.id, 30, () => { AFKEnd(playerGame.id); diff --git a/public/assets/img/screenshot_create.png b/public/assets/img/screenshot_create.png new file mode 100644 index 0000000..56bbe54 Binary files /dev/null and b/public/assets/img/screenshot_create.png differ diff --git a/public/assets/img/screenshot_game1.png b/public/assets/img/screenshot_game1.png new file mode 100644 index 0000000..1788ed5 Binary files /dev/null and b/public/assets/img/screenshot_game1.png differ diff --git a/public/assets/img/screenshot_game2.png b/public/assets/img/screenshot_game2.png new file mode 100644 index 0000000..1e114a9 Binary files /dev/null and b/public/assets/img/screenshot_game2.png differ diff --git a/public/assets/img/screenshot_mainmenu.png b/public/assets/img/screenshot_mainmenu.png new file mode 100644 index 0000000..863ca7b Binary files /dev/null and b/public/assets/img/screenshot_mainmenu.png differ diff --git a/public/assets/img/screenshot_profile.png b/public/assets/img/screenshot_profile.png new file mode 100644 index 0000000..e095dac Binary files /dev/null and b/public/assets/img/screenshot_profile.png differ diff --git a/public/assets/img/statki-logo-crop-144.png b/public/assets/img/statki-logo-crop-144.png new file mode 100644 index 0000000..5fef660 Binary files /dev/null and b/public/assets/img/statki-logo-crop-144.png differ diff --git a/public/pwa/manifest.json b/public/pwa/manifest.json index c38fee0..d56aa76 100644 --- a/public/pwa/manifest.json +++ b/public/pwa/manifest.json @@ -1,5 +1,6 @@ { "name": "Statki", + "description": "The #1 online multiplayer battleships game\nModern, simple UI, PvP and PvE modes, advanced statistics and more.", "start_url": "/", "background_color": "black", "theme_color": "black", @@ -7,8 +8,48 @@ "icons": [ { "src": "/assets/img/statki-logo-crop.png", - "sizes": "1080x1080", - "type": "image/png" + "sizes": "1080x1080" + }, + { + "src": "/assets/img/statki-logo-crop-144.png", + "sizes": "144x144" + } + ], + "screenshots": [ + { + "src": "/assets/img/screenshot_game2.png", + "sizes": "1920x911", + "type": "image/png", + "form_factor": "wide", + "label": "Middle of the round" + }, + { + "src": "/assets/img/screenshot_mainmenu.png", + "sizes": "1920x911", + "type": "image/png", + "form_factor": "wide", + "label": "Main menu" + }, + { + "src": "/assets/img/screenshot_create.png", + "sizes": "1920x911", + "type": "image/png", + "form_factor": "wide", + "label": "Create game screen" + }, + { + "src": "/assets/img/screenshot_profile.png", + "sizes": "1920x911", + "type": "image/png", + "form_factor": "wide", + "label": "Main menu" + }, + { + "src": "/assets/img/screenshot_game1.png", + "sizes": "1920x911", + "type": "image/png", + "form_factor": "wide", + "label": "Preparation phase" } ], "display": "standalone"