Devlog 3
Backend Socket Server
- Made few changes to setting type and added a questionPool in gameState
- Settings now have a option to change totalQuestions and a randomly generated questionPool from the totalQuestions
- Removed spectator logic as not planning on pursuing it right now
- Also added a heartbeat event which supplies heartBeat every 5 seconds or so and if there is no heartBeat provided by the player for over 30 seconds the player gets removed from the room
Now Frontend
- Redesigned the lobby page and home page
- If you open the game for the first time it asks for the name which is currently stored in localstorage for a guest user.
- When users are added then people would be able to login using google and save their details in database.
- For now nothing is stored , only gameState are persistent for the duration of the game in redis and after few minutes of inactivity in the room , the room expires via ttl.
- Also added SEO Optimisations.
Future Plan
- I will either work on adding more gamemodes or adding the user authentication stuff using postgresql and prims direclty in nextjs
- After the auth has been added then I will publish the project so that it has atleast some complete features and users can see their stats and prev games results
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.