Devlog #2
hey! Whats up?
it’s been a while since my last devlog, and i’ve gotten way more done than i expected. the project is now way more than just a chessboard on a browser.
online multiplayer
the biggest feature i added was online multiplayer!
i ended up using PeerJS so two players can connect directly to each other via a room ID. It keeps the board perfectly synced too.
this was actually pretty easy, it was well documented so didn’t take a lot of time. just a bit of research.
better ui!!!!!!
the thing that i dont like about apps like lichess is that the UI is kinda bum.
so, to fix that, i spent a bunch of time redesigning the whole webpage.
i basically gamified the css (biggest change was the buttons!!!)
here’s some of what changed:
- brand new signin page (no js yet)
- offline and online game mode buttons
- much better + cooler buttons
- dropdown hamburger menu with flip board button
- more spacing everywhere
- thats about it
imo it looks way better
offline improvements
offline mode auto flips board but u can manually flip too if u want to see from opponents pov.
reorganizing everything
as the project got bigger, one html file started becoming kind of messy. also i would like having separate links for online and offline play etc.
because of this i will split up code in the next devlog
what’s next?
the next thing i’m working on is accounts.
i’m planning on adding Firebase authentication so you can sign in with Google or continue as a guest. after that, i’ll start working on username specific challenges. ill use firbase to store person requests and it can generate a peer id so i dont need a server.
Im rlly happy with how its going :)
thanks for reading, and as always, let me know if you have any suggestions!