Devlog #3
hey! welcome back!
i’ve been working on one of the biggest features so far: accounts.
firebase authentication
i finally got Firebase Authentication working!
you can now:
- sign in with Google
- continue as a guest
- stay signed in between sessions
once you log in, your name and profile picture are loaded throughout the site!
getting this working took a bit longer than i expected because i had to figure out how how firebase works (never used it before). after a lot of testing, it’s finally working reliably.
cleaning things up
i also spent some time reorganizing the project.
instead of putting everything into one giant HTML file, i split different parts of the project into their own pages. it’s already much easier to work on, and adding new features is a lot simpler now.
small improvements
i fixed a bunch of little issues while working on authentication:
- improved navigation between pages
- cleaned up some JavaScript
- made the login flow smoother
- fixed a few annoying bugs
what’s next?
the next feature i’m building is game challenges by username.
instead of sharing a PeerJS room ID, you’ll be able to search for another player’s username and send them a game challenge directly. if they accept, the game will automatically connect both players together.
i think this is the next needed update!
thanks for reading, and as always, let me know if you have any ideas or suggestions!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.