コード例 #1
0
 def __init__(self):
     # entrar seleccion de niveles con boton enter en posicion x y y
     self.enter = ui.ButtonUI(pygame.K_RETURN, "[ENTER = next]", 50, 200)
     # salir con boton escape en posicion x y y
     self.esc = ui.ButtonUI(pygame.K_ESCAPE, "[ESC = quit]", 50, 250)
     # entrar creditos con boton c en posicion x y y
     self.c = ui.ButtonUI(pygame.K_c, "[C = creditos]", 50, 300)
コード例 #2
0
 def __init__(self):
     self.cr1 = ui.ButtonUI(pygame.K_RETURN, "sprite de coin por DasBilligeAlien", 50, 100)
     self.cr1_1 = ui.ButtonUI(pygame.K_RETURN, "https://opengameart.org/content/rotating-coin-0", 50, 130)
     self.cr2 = ui.ButtonUI(pygame.K_ESCAPE, "sprite de corazon por BenBushnell", 50, 200)
     self.cr2_1 = ui.ButtonUI(pygame.K_RETURN, "https://pixabay.com/es/illustrations/pixel-corazón-corazón-píxeles-2779422", 50, 230)
     self.cr3 = ui.ButtonUI(pygame.K_c, "degradado de escena y letras por nerdparadise", 50, 300)
     self.cr3_1 = ui.ButtonUI(pygame.K_RETURN, "https://nerdparadise.com/programming/pygameblitopacity", 50, 330)
コード例 #3
0
 def __init__(self):
     self.b1 = ui.ButtonUI(pygame.K_1, "[Nivel 1]", 50, 200)
     self.b2 = ui.ButtonUI(pygame.K_2, "[Nivel 2]", 50, 250)
     self.b3 = ui.ButtonUI(pygame.K_3, "[Nivel 3]", 50, 300)
     self.b4 = ui.ButtonUI(pygame.K_4, "[Nivel 4]", 50, 350)
     self.b5 = ui.ButtonUI(pygame.K_SPACE, "[nivel secreto] registrate para saber como desbloquear por solo $19.99 ", 50, 400)
     self.esc = ui.ButtonUI(pygame.K_ESCAPE, "[ESC = quit]", 50, 450)
コード例 #4
0
 def __init__(self):
     self.enter = ui.ButtonUI(pygame.K_RETURN, '[Enter=next]', 50, 200)
     self.esc = ui.ButtonUI(pygame.K_ESCAPE, '[Esc=quit]', 50, 250)
コード例 #5
0
 def __init__(self):
     self.esc = ui.ButtonUI(pygame.K_ESCAPE, '[Esc=quit]', 50, 300)
コード例 #6
0
 def __init__(self):
     self.alpha = 0
     self.esc = ui.ButtonUI(pygame.K_ESCAPE, "[ESC = quit]", 250, 10)