Skip to content

Commit a4df47c

Browse files
committed
Changelog v0.0.2 Server and Front-End update!
1 parent c103d30 commit a4df47c

File tree

4 files changed

+24
-8
lines changed

4 files changed

+24
-8
lines changed

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
11
# Multiplayer Game
22

3-
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. <a href="https://engineering.paiza.io/entry/paizacloud_online_multiplayer_game">Click here</a>
3+
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. <a href="https://engineering.paiza.io/entry/paizacloud_online_multiplayer_game">Click here</a>
4+
5+
## Front End Changelog (v0.0.2) - October 20, 2021
6+
- Deleted Facbook button
7+
- Moved Twitter button into game spawn/respawn screen
8+
9+
## Past Front End Updates
10+
11+
### Front End Update (v0.0.1) - October 18, 2021
12+
- Initial Release
13+
14+
### Console Changelog (v0.0.2) - October 20, 2021
15+
- Player Death logs in console
16+
- Updated Server Finished message
17+
18+
## Past Console Updates
19+
20+
### Console Update (v0.0.1) - October 18, 2021
21+
- Initial Release
22+

server.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ class Player extends GameObject{
9393
remove(){
9494
delete players[this.id];
9595
io.to(this.socketId).emit('dead');
96+
console.log(`[Server] a player has died`);
9697
}
9798
toJSON(){
9899
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) => {
218219

219220
const port = parseInt(yargs.port) || 3000;
220221
server.listen(port, () => {
221-
console.log(`Starting server on port ${port}`);
222+
console.log(`[Server] Done! Server starting on port ${port}`);
222223
});

static/2d.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
<div>
2020
Thomas' Multiplayer Game (<a href="/static/2d.html">2D</a> | <a href="/">3D</a>)
2121
<div style="float: right;">
22-
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-show-count="false">Tweet</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
23-
<script>(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); js.id = id;js.src = 'https://connect.facebook.net/ja_JP/sdk.js#xfbml=1&version=v3.0&appId=362223930530449&autoLogAppEvents=1';fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));</script>
24-
<div class="fb-share-button" data-href="https://paiza-battle-ground.paiza-user.cloud/" data-layout="button" data-size="small" data-mobile-iframe="true"><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fplugins%2F&amp;src=sdkpreparse" class="fb-xfbml-parse-ignore">シェア</a></div>
2522
</div>
2623
<div><a href="https://engineering.paiza.io/entry/paizacloud_online_multiplayer_game" target=_blank>Multiplayer Game</a></div>
2724
<!--div><a href="https://paiza.hatenablog.com/entry/paizacloud_online_multiplayer_game" target=_blank>使うのはJavaScriptとNode.jsだけ!30分で3Dオンライン対戦ゲームを作って公開してみた</a></div-->
@@ -31,6 +28,7 @@
3128
<div style="text-align: center; width: 100%; font-size: xx-large;">
3229
<input type="text" name="nickname" id="nickname" placeholder="Your nickname" autofocus><br/><br/>
3330
<button style="font-size: xx-large;" id="start-button">Start</button>
31+
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-show-count="false">Tweet</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
3432
</div>
3533
</div>
3634
<canvas id="canvas-2d" width="1000" height="1000" style="position:absolute;width:100%;height:100%;object-fit:contain;"></canvas>

static/3d.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
<div>
2222
Thomas' Multiplayer Game (<a href="/static/2d.html">2D</a> | <a href="/">3D</a>)
2323
<div style="float: right;">
24-
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-show-count="false">Tweet</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
25-
<script>(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0];if (d.getElementById(id)) return;js = d.createElement(s); js.id = id;js.src = 'https://connect.facebook.net/ja_JP/sdk.js#xfbml=1&version=v3.0&appId=362223930530449&autoLogAppEvents=1';fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));</script>
26-
<div class="fb-share-button" data-href="https://paiza-battle-ground.paiza-user.cloud/" data-layout="button" data-size="small" data-mobile-iframe="true"><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fplugins%2F&amp;src=sdkpreparse" class="fb-xfbml-parse-ignore">シェア</a></div>
2724
</div>
2825
<div><a href="https://engineering.paiza.io/entry/paizacloud_online_multiplayer_game" target=_blank>Multiplayer Game</a></div>
2926
<!--div><a href="https://paiza.hatenablog.com/entry/paizacloud_online_multiplayer_game" target=_blank>使うのはJavaScriptとNode.jsだけ!30分で3Dオンライン対戦ゲームを作って公開してみた</a></div-->
@@ -33,6 +30,7 @@
3330
<div style="text-align: center; width: 100%; font-size: xx-large;">
3431
<input type="text" name="nickname" id="nickname" placeholder="Your nickname" autofocus><br/><br/>
3532
<button style="font-size: xx-large;" id="start-button">Start</button>
33+
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-show-count="false">Tweet</a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
3634
</div>
3735
</div>
3836
<canvas id="canvas-2d" width="1000" height="1000" style="position: absolute; width: 100%; height: 100%; z-index:2;object-fit: contain;"></canvas>

0 commit comments

Comments
 (0)