reloj1 = pygame.time.Clock() # CONSTANTES Y Inicializacion de variables BLANCO = (255, 255, 255) salto = False tiempo = 1 tiempo2 = 1 salir = False #Prueba Setters jugador = Jugador('Perro4.png', 0, 320, "jugador1") enemigo = Enemigo('rock.png', 990, 320) pantalla = Pantalla("Jump the Rock", pygame.display.set_mode((1080, 420)), 'fondo.jpg', 0, 0) pantalla.setDisplay(1080, 420) pantalla.setImagen('marte2.jpg') pantalla.setNombre("Jump the Rock") pantalla.setX(0) pantalla.setY(0) newGame = Juego(jugador, enemigo, pantalla, 0, 'dog.mp3') newGame.setJugador(jugador) newGame.setEnemigo(enemigo) newGame.setPantalla(pantalla) newGame.setPuntaje(0) newGame.setSonido('Yet Another Movie.mp3') newGame.actualizarPantalla()
# CONSTANTES Y Inicializacion de variables BLANCO = (255, 255, 255) tiempoEnemigo = 1 tiempo = 1 saltar = False salto = False sonido = Sonido() #Prueba Setters jugador = Jugador('colectivo.jpg', 0, 320, "jugador1") enemigo = Enemigo('rock.png', 500, 320) pantalla = Pantalla("Jump the Rock", pygame.display.set_mode((1080, 420)), 'f_Martillo.jpg', 0, 0) pantalla.setDisplay(1080, 600) pantalla.setImagen('f_Martillo.jpg') pantalla.setNombre("Test Nuevo Juego") pantalla.setX(0) pantalla.setY(0) newGame = Juego(jugador, enemigo, pantalla, 0) sonido.playSonido(1) #salir=True #Bucle principal del videojuego while salir != True: if newGame.actualizarPantalla() != True: #mientras no pierda newGame.pantalla.moverPantalla()
# CONSTANTES Y Inicializacion de variables BLANCO = (255, 255, 255) salto = False tiempo=1 tiempo2=1 salir=False #Prueba Setters jugador=Jugador('Perro4.png',0,320,"jugador1") enemigo=Enemigo('rock.png',990,320) pantalla=Pantalla("Jump the Rock",pygame.display.set_mode((1080,420)),'fondo.jpg',0,0) pantalla.setDisplay(1080 ,420) pantalla.setImagen('marte2.jpg') pantalla.setNombre("Jump the Rock") pantalla.setX(0) pantalla.setY(0) newGame=Juego(jugador,enemigo,pantalla,0,'dog.mp3') newGame.setJugador(jugador) newGame.setEnemigo(enemigo) newGame.setPantalla(pantalla) newGame.setPuntaje(0) newGame.setSonido('Yet Another Movie.mp3')
BLANCO = (255, 255, 255) tiempoEnemigo=1 tiempo=1 saltar=False salto = False sonido=Sonido() #Prueba Setters jugador=Jugador('colectivo.jpg',0,320,"jugador1") enemigo=Enemigo('rock.png',500,320) pantalla=Pantalla("Jump the Rock",pygame.display.set_mode((1080,420)),'f_Martillo.jpg',0,0) pantalla.setDisplay(1080 ,600) pantalla.setImagen('f_Martillo.jpg') pantalla.setNombre("Test Nuevo Juego") pantalla.setX(0) pantalla.setY(0) newGame=Juego(jugador,enemigo,pantalla,0) sonido.playSonido(1) #salir=True #Bucle principal del videojuego while salir != True: