Codemaxxers / Issues

0 stars 0 forks source link

# Final Sprint - Theo Huntalas #86

Open TheoH32 opened 5 months ago

TheoH32 commented 5 months ago

Plan

Use Rachits websockets to implement a multiplayer feature in our game

Tasks

Schedule

Monday

Tuesday

Wednesday

Thursday

Friday

TheoH32 commented 5 months ago

Daily Work Log


Monday

https://github.com/Codemaxxers/Issues/assets/47646488/a3875398-5a0e-492d-a9b0-e6cf7d3e9208

Stuff that needs to be done

Today I worked a lot on ideation and structure of how exactly the multiplayer aspect will work. Lobbys in how players connect was the biggest mental obstacle to get around.

  1. Decide between static and dynamic lobbys ----> chose dynamic for scaling and a challenge
  2. Processed how user interaction will work between creating and joining lobby

    • Player 1 creates lobby
    • Player 2 joins lobby

    What needs to be made

    • [ ] Add Lobby Management: Create a class to manage lobbies and handle the creation, joining, and removal of lobbies.
    • [ ] Update the WebSocket Handler: Modify the MyHandler class to handle commands related to lobby management.
    • [ ] Frontend Integration: Make sure frontend can create lobbies, display available lobbies, and allow players to join them. Main screen should have "Create Lobby" for Player 1 and "Join Lobby" for Player 2

      Wednesday

      I didn't make as much progress as I wanted to today, but I am still happy with where I ended. I had to somewhat revamp most of what I've done so far. Instead of everything lobby related being websockets, I shifted some to api endpoints and the fighting into websockets. Now the process looks like this:

WEEK 2

Tuesday

Well we hit a roadblock. My features do work but not from the live frontend to backend server. So now I have to redo the whole thing for endpoints. I will probably spend a couple hours tonight and hope everything will work :)