Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GH-1059] - Send match's map to the client #1064

Merged
merged 10 commits into from
Feb 7, 2025

Conversation

tvillegas98
Copy link
Contributor

@tvillegas98 tvillegas98 commented Feb 3, 2025

Warning

This PR should be merged alongside https://github.com/lambdaclass/champions_of_mirra/pull/2457

Motivation

Closes #1059

Summary of changes

DISCLAIMER: This PR increases arena version

How to test it?

Playtested it with the PR mentioned above and try to find Araban while playing deathmatch!

Checklist

  • Tested the changes locally.
  • Reviewed the changes on GitHub, line by line.
  • This change requires new documentation.
    • Documentation has been added/updated.

@tvillegas98 tvillegas98 changed the base branch from main to link-game-modes-table-with-matchmaking February 3, 2025 18:52
@tvillegas98 tvillegas98 changed the title [GH-1059] - Send the map to the client [GH-1059] - Send match's map to the client Feb 3, 2025
@tvillegas98 tvillegas98 marked this pull request as ready for review February 4, 2025 20:53
manucamejo
manucamejo previously approved these changes Feb 4, 2025
@manucamejo manucamejo dismissed their stale review February 4, 2025 22:44

We are going to rework it

@manucamejo manucamejo marked this pull request as draft February 4, 2025 22:45
@manucamejo manucamejo marked this pull request as ready for review February 5, 2025 14:51
manucamejo
manucamejo previously approved these changes Feb 5, 2025
@tvillegas98 tvillegas98 marked this pull request as draft February 5, 2025 18:29
Base automatically changed from link-game-modes-table-with-matchmaking to main February 5, 2025 22:30
@Nico-Sanchez Nico-Sanchez dismissed manucamejo’s stale review February 5, 2025 22:30

The base branch was changed.

@tvillegas98 tvillegas98 force-pushed the gh-1059-send-the-map-to-the-client branch 2 times, most recently from 886e244 to 7e8d46a Compare February 6, 2025 15:23
tvillegas98 and others added 10 commits February 6, 2025 12:28
- spikes were not working
- random position in map needs to be within a circle
* feat: add team size to game mode configurations

* feat: changes on the game mode configurations table and views
- renamed name to type
- add team size parameter when the game mode is teams
- add team type to game modes

* feat: create an endpoint to retrieve the game mode configuration

* chore: move every migration into one file

* chore: add seeds for game modes

* feat: add new fields and logic for game mode form

* chore: remove the amount of params from the map mode params
this is done because in the matchmaking we must always specify the amount of players to create a match

* feat: use the game modes in the matchmaking

* code: handle the failed requests when the application starts

* chore: remove not used require

* feat: restore the has many in the game mode configurations

* feat: fix pair and battle not using the game mode configuration

* fix: correctly parse the map mode params

* feat: changes on the initial positions and map
- select the initial positions based on if its teams or solo
- select a random map amongst all the availables in a game mode

* chore: format

* chore: credo

* chore: fix seeds

* chore: mix format again

* feat: use the team size parameter

* chore: remove not used field in migration

* fix: deathmatch and battle were not working

* feat: restore the amount of players to the map mode params

* feat: use the map amount params in the matchmakings

* chore: add quickgame to seeds

* feat: use the map selected from the matchmaking

* chore: restore changes in game modes form

* chore: fix typo in game mode's form

* chore: remove not needed map configurations from seeds

* refactor: merge team and solo positions into one

* feat: remove the name and filter and get the game mode configuration by team size and type

* chore: send the update params event in the init of each matchmaking

* refactor: modularize function in matchmaking module

* code: rename variable

* fix: errors
- templates not working due to an unexistent field
- battle mode not working

* feat: only display active maps for map mode params

* chore: mix format

* feat: filter maps only in the game mode form

---------

Co-authored-by: Nicolas Sanchez <sanchez.nicolas96@gmail.com>
@tvillegas98 tvillegas98 force-pushed the gh-1059-send-the-map-to-the-client branch from 81943cf to c0ce625 Compare February 6, 2025 15:33
@tvillegas98 tvillegas98 marked this pull request as ready for review February 6, 2025 16:37
@Nico-Sanchez Nico-Sanchez merged commit 24b61e2 into main Feb 7, 2025
1 check passed
@Nico-Sanchez Nico-Sanchez deleted the gh-1059-send-the-map-to-the-client branch February 7, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] - Send the map to the client before the match starts.
3 participants