Open
Conversation
- Ajout des touches F4 (2 joueurs) et F5 (4 joueurs) dans le menu - Configuration des 4 joueurs avec positions de spawn distinctes (coins de l'écran) - Couleurs distinctes: P1 (rose), P2 (cyan), P3 (orange), P4 (violet) - Contrôles multiples: Flèches (P1), ZQSD (P2), IJKL (P3), Pavé numérique 8456 (P4) - Détection des collisions entre serpents - Affichage des scores dans les 4 coins de l'écran - Système de victoire: dernier serpent survivant gagne - Génération de nourriture évitant tous les corps de serpents Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated PR by Tickova
Ticket: 1dztkBFN7h
Description
Objective
Étendre le mode multijoueur existant (2 joueurs) pour supporter 4 joueurs en local sur le même écran.
Context
Le jeu supporte actuellement 2 joueurs via la touche F4. Les utilisateurs souhaitent pouvoir jouer à 4 pour des sessions de jeu plus conviviales. Cela augmente significativement la rejouabilité et l'aspect social du jeu.
Technical Details
Basé sur l'architecture existante du mode 2 joueurs:
1. Nouveaux contrôles à définir:
2. Positions de spawn (coins de l'écran):
3. Nouvelles couleurs:
4. Modifications nécessaires:
check_snake_collision()pour gérer 4 serpents5. Gestion des collisions:
Acceptance Criteria
Affected Files
Notes
This PR was created automatically by Tickova AI Worker