-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from TukiLaCosa:feature/LC-213/new-finalizar-p…
…artida Feature/LC-213/new-finalizar-partida # Cambios en finalizar partida. * Se agregó el endpoint para que la cosa pueda declarar la finalización de la partida. "/{game_name}/the-thing-end-game". El endpoint finaliza la partida y envía el evento GAME_ENDED por websocket. * Se modifico el endpoint " /{game_name}/result" para agregarle el caso en el que la cosa se declara ganador erroneamente. * Se modificó la finalización automática para que esta se realice al eliminar a la cosa o que la cosa sea el único jugador no eliminado. Falta agregar una cosa más que está en las reglas para cuando sucede que se infectan todos los jugadores vivos restantes y se tiene que agregar a la lista de perdedores al último jugador infectado. Co-authored-by: anelioalvarez <anelio272014@gmail.com>
- Loading branch information
Showing
5 changed files
with
88 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
import os | ||
import pygame | ||
import time | ||
# import os | ||
# import pygame | ||
# import time | ||
|
||
|
||
def show_initial_image(): | ||
# Path of the image I want to display | ||
image_path = "./app/resources/stay_away.png" | ||
# def show_initial_image(): | ||
# # Path of the image I want to display | ||
# image_path = "./app/resources/stay_away.png" | ||
|
||
# Path of the audio file | ||
audio_path = "./app/resources/stay_away.mp3" | ||
# # Path of the audio file | ||
# audio_path = "./app/resources/stay_away.mp3" | ||
|
||
# pygame configuration | ||
pygame.init() | ||
window = pygame.display.set_mode((400, 300), pygame.NOFRAME) | ||
# # pygame configuration | ||
# pygame.init() | ||
# window = pygame.display.set_mode((400, 300), pygame.NOFRAME) | ||
|
||
# Load the image | ||
image = pygame.image.load(image_path) | ||
# # Load the image | ||
# image = pygame.image.load(image_path) | ||
|
||
# Get the width and height of the window | ||
window_width, window_height = window.get_size() | ||
# # Get the width and height of the window | ||
# window_width, window_height = window.get_size() | ||
|
||
# Scale the image to the size of the window | ||
image = pygame.transform.scale(image, (window_width, window_height)) | ||
# # Scale the image to the size of the window | ||
# image = pygame.transform.scale(image, (window_width, window_height)) | ||
|
||
# Show the image in the window | ||
window.blit(image, (0, 0)) | ||
pygame.display.flip() | ||
# # Show the image in the window | ||
# window.blit(image, (0, 0)) | ||
# pygame.display.flip() | ||
|
||
# Play audio file | ||
pygame.mixer.init() | ||
pygame.mixer.music.load(audio_path) | ||
pygame.mixer.music.play() | ||
# # Play audio file | ||
# pygame.mixer.init() | ||
# pygame.mixer.music.load(audio_path) | ||
# pygame.mixer.music.play() | ||
|
||
# Wait 6 seconds | ||
time.sleep(6) | ||
# # Wait 6 seconds | ||
# time.sleep(6) | ||
|
||
# Close the window | ||
pygame.quit() | ||
# # Close the window | ||
# pygame.quit() |