Devlog - 9
NextJS
- I added upload avatar in the settings page, user uploads an avatar and crops it accordingly , max file size limit is 5mb also the image gets uploaded to cloudinary and the secure url of the image is stored in db
- Changed the lobby UI to make it less cluttered
- Now there are drawers for gamemode settings and party stuff
- Changed the friends sidebar to be attaced to the right wall and closed and when you open it , it comes out of the screen not occupieing any space.
- Made a UI for FREEFORM questionMode
- Added a animated starting screen.
Socket Server
- Added a new questionMode inside the Guess Agent gamemode now you can have freeform questions or preset
- Preset is same as before you will have a preset of questions to choose from and all its all like before
- Freeform is different you will have two buttons instead of questionPanel, you will have make guess and consume no. This gamemode is meant to be played in a vc like discord or any of your choice you can ask questions to the opponent direclty if there is a no you can just consume no and if you wanna guess you can guess. its like a offline game but you can count the nos and guess and have a agent panel to deduce
- Added a game starting phase where some details are created to show to the frontend.
- Added game cleanup functions, not perfect but will do for now
- Added a new event CONSUME_NO to consume no for questionMode
- Made some changes to type to adjust for freeform question mode
EXTRA
- Added rate limiting in some parts
- In socket server rate limiting is token bucket and in nextjs rate limiting is sliding window counter (somewhat strict rate limiting in guest login and magic link)
- The rate limiting is handled by the same redis used for game states and stuff
- Fixed some bugs here and there.
I know this devlog doesn’t feel personal and I only talk about the stuff I did, its because I wanna Ship this project as soon as possible and get done with it and move on to something else, because projects like this never end and you have to decide when to stop.
I think next devlog will be the last devlog before the first ship
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.