started making game and readme's
This commit is contained in:
6
TODO
6
TODO
@@ -5,8 +5,10 @@
|
||||
[x] Fix user timeouts / deletion
|
||||
[x] User sockets, or "users" are made innactive after timeout on socket
|
||||
- Prevents softlock of users and stops socket spamming
|
||||
[-] Game lobying system
|
||||
[ ] Delete lobby once user disconnects - no reconnection
|
||||
[x] Game lobying system
|
||||
[ ] Sanatise lobby names
|
||||
[ ] Make lobby names uppercase
|
||||
[x] Delete lobby once user disconnects - no reconnection
|
||||
[ ] Matchmaking system
|
||||
[ ] 1v1 game framework that allows spectators
|
||||
[ ]
|
||||
|
||||
@@ -9,5 +9,9 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -216,7 +216,7 @@ socket.on('lobby-update', obj => {
|
||||
|
||||
if (obj.state === 'lobby-deregister')
|
||||
{
|
||||
pageLog(`${obj.updateuser.username} deregistered lobby`);
|
||||
pageLog(`${obj.updateuser.username} deleted lobby`);
|
||||
leaveLobby();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -10,13 +10,3 @@ textarea {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
|
||||
.lobby-type {
|
||||
/* display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
border: 1px solid green ;*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ USER OBJECT
|
||||
ip: ip,
|
||||
// REGISTERED, CONNECTED, DISCONNECTED
|
||||
state: 'CONNECTED',
|
||||
// LOBYING, GAME, UNDECIDED
|
||||
// LOBYING, GAMETRANSITION, GAME, UNDECIDED
|
||||
intent: 'LOBBYING',
|
||||
// Doesn't update if state changes
|
||||
connectionid: 'none',
|
||||
|
||||
Reference in New Issue
Block a user