forked from jnathan02222/bager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTODO.txt
More file actions
58 lines (38 loc) · 1.42 KB
/
TODO.txt
File metadata and controls
58 lines (38 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#SERVER SIDE
#Append a random string as a room key when /setup is accessed DONE
#Save this string somewhere to avoid conflicts DONE
#Implementation: append querystring first and then forward to proxy? DONE
#Adjust ws controller to send to the same room it came from DONE
#Design a heartbeat function to constantly relay the latest data to all clients
#Detect player disconnects, including sudden disconnects
#Deleting a room
#Group user by session id
#CLIENT SIDE
#When first connecting, send initial data (name and avatar) and retrieve current data (Settings / Players)
#Subscripe to the correct room DONE
#On interactions with avatar, name or settings, publish new data to the server
#Note, maybe only let 1 person touch the settings
#GAME LOOP
#Select a player
#Player chooses a word
#Draws while people guess
#Finish and pass play to next player
Key concepts
https://spring.io/quickstart
https://spring.io/guides/gs/messaging-stomp-websocket
https://spring.io/guides/gs/scheduling-tasks
Services
Proxy / Redirects
https://docs.spring.io/spring-framework/reference/web/websocket/stomp/handle-send.html
#heartbeat + info update (should work with canvas and timer?)
#Disconnect logic
#Caching problem
#Fixing disconnecting during GAME
#Limit name length
#Limit guess length
#Clear canvas between
#Waiting for <current player> to select a word
#Icon to show current user
#Show word after guess
#Hints
#Sound effects