From a4df47cec7b9a5fc91c0659996642b5594f89f8f Mon Sep 17 00:00:00 2001 From: MegaTKC Date: Tue, 19 Oct 2021 23:56:07 +0000 Subject: [PATCH] Changelog v0.0.2 Server and Front-End update! --- README.md | 21 ++++++++++++++++++++- server.js | 3 ++- static/2d.html | 4 +--- static/3d.html | 4 +--- 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9599de6..131685a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,22 @@ # Multiplayer Game -This project started off as a game for me and my friends to play with. We had lots of fun because of the names that we put, trying to crash the server, and more. I didn't know how to make a multiplayer game, so I found this tutorial. This is the link on how to make the game. Click here \ No newline at end of file +This project started off as a game for me and my friends to play with. We had lots of fun because of the names that we put, trying to crash the server, and more. I didn't know how to make a multiplayer game, so I found this tutorial. This is the link on how to make the game. Click here + +## Front End Changelog (v0.0.2) - October 20, 2021 +- Deleted Facbook button +- Moved Twitter button into game spawn/respawn screen + +## Past Front End Updates + +### Front End Update (v0.0.1) - October 18, 2021 +- Initial Release + +### Console Changelog (v0.0.2) - October 20, 2021 +- Player Death logs in console +- Updated Server Finished message + +## Past Console Updates + +### Console Update (v0.0.1) - October 18, 2021 +- Initial Release + diff --git a/server.js b/server.js index a77e1d6..dceb258 100644 --- a/server.js +++ b/server.js @@ -93,6 +93,7 @@ class Player extends GameObject{ remove(){ delete players[this.id]; io.to(this.socketId).emit('dead'); + console.log(`[Server] a player has died`); } toJSON(){ return Object.assign(super.toJSON(), {health: this.health, maxHealth: this.maxHealth, socketId: this.socketId, point: this.point, nickname: this.nickname}); @@ -218,5 +219,5 @@ app.get('/', (request, response) => { const port = parseInt(yargs.port) || 3000; server.listen(port, () => { - console.log(`Starting server on port ${port}`); + console.log(`[Server] Done! Server starting on port ${port}`); }); diff --git a/static/2d.html b/static/2d.html index 8653008..7570c0c 100644 --- a/static/2d.html +++ b/static/2d.html @@ -19,9 +19,6 @@
Thomas' Multiplayer Game (2D | 3D)
- - -
Multiplayer Game
@@ -31,6 +28,7 @@


+
diff --git a/static/3d.html b/static/3d.html index c90f97b..d4cb2e1 100644 --- a/static/3d.html +++ b/static/3d.html @@ -21,9 +21,6 @@
Thomas' Multiplayer Game (2D | 3D)
- - -
Multiplayer Game
@@ -33,6 +30,7 @@


+