started making game and readme's

This commit is contained in:
Ben Kyd
2021-03-17 23:17:06 +00:00
parent df7b9f2476
commit d77998bbd8
8 changed files with 10 additions and 14 deletions

View File

6
TODO
View File

@@ -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
[ ]

View File

@@ -9,5 +9,9 @@
</head>
<body>
</body>
</html>

View File

@@ -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();
}
});

View File

@@ -10,13 +10,3 @@ textarea {
position: fixed;
bottom: 0;
}
.lobby-type {
/* display: block;
margin-left: auto;
margin-right: auto;
border: 1px solid green ;*/
}

View File

@@ -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',