-
-
Save parzibyte/d545c544db25833ad7dd3de48a5d2fee to your computer and use it in GitHub Desktop.
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
import random | |
import os | |
""" | |
Deshabilitar mensaje inicial de PyGame. Al final solo lo usamos para los sonidos | |
""" | |
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "sí" | |
import pygame | |
pygame.init() | |
pygame.mixer.init() | |
sonido_acertado = pygame.mixer.Sound("acertado.wav") | |
sonido_fallado = pygame.mixer.Sound("fallado.wav") | |
FILAS = 5 | |
COLUMNAS = 5 | |
MAR = " " | |
SUBMARINO = "S" # Ocupa una celda | |
DESTRUCTOR = "D" # Ocupa dos celdas | |
DESTRUCTOR_VERTICAL = "A" # Ocupa dos celdas | |
DISPARO_FALLADO = "-" | |
DISPARO_ACERTADO = "*" | |
DISPAROS_INICIALES = 10 | |
CANTIDAD_BARCOS_INICIALES = 8 | |
JUGADOR_1 = "J1" | |
JUGADOR_2 = "J2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment