generated from dvorakmortonxd/pygame-template
still feel like im cooked, theres 9 hours left for the jam and its 9PM 🥀
This commit is contained in:
parent
f7894f2040
commit
8aa6154710
2 changed files with 48 additions and 8 deletions
36
levels.py
36
levels.py
|
|
@ -112,6 +112,7 @@ def level2(blip, screen, sheet, screen_width, screen_height, lastclickpos, basic
|
|||
screen.blit(dialog_square, (56, 500))
|
||||
if dialognum == 13:
|
||||
DIALOGTEXT = ""
|
||||
tickd = 0
|
||||
screen.blit(load_sprite(sheet, 0, 37, 57,36, 912, 576), (0,0))
|
||||
screen.blit(load_sprite(sheet,57,15,8,25, 80, 250), (660, 290))
|
||||
level = 3
|
||||
|
|
@ -132,4 +133,37 @@ def level2(blip, screen, sheet, screen_width, screen_height, lastclickpos, basic
|
|||
if dialognum != 7:
|
||||
pygame.mixer.Sound.play(blip)
|
||||
tickd = 60
|
||||
return level # returns the current level set
|
||||
return level # returns the current level set
|
||||
|
||||
def level3(blip, screen, sheet, screen_width, screen_height, lastclickpos, basicfont, mouse, click, big_text, level, tick, slightfont, pygamemixer): # the function for our first level, ignore the unused variables here, you can use them when you edit it
|
||||
global tickd
|
||||
tickd += 1
|
||||
screen.blit(load_sprite(sheet, 0, 37, 57, 36, 912, 576), (0, 0))
|
||||
screen.blit(load_sprite(sheet,57,15,8,25, 80, 250), (660, 290))
|
||||
square = pygame.surface.Surface((812, 476), pygame.SRCALPHA)
|
||||
square.fill((0, 0, 0))
|
||||
if tickd < 255:
|
||||
transparency = (tickd, tickd, tickd)
|
||||
else:
|
||||
transparency = (255,255,255)
|
||||
dialog1 = basicfont.render("Controls:", True, transparency)
|
||||
dialog2 = basicfont.render("<WASD> to move around", True, transparency)
|
||||
dialog3 = basicfont.render("<E> to interact when prompted", True, transparency)
|
||||
dialog4 = basicfont.render("<H> to hide yourself (the parasite)", True, transparency)
|
||||
dialog5 = basicfont.render("<Escape> to pause", True, transparency)
|
||||
dialog6 = basicfont.render("Press <Space> to continue.", True, transparency)
|
||||
square.blit(dialog1, (15, 15))
|
||||
square.blit(dialog2, (15, 65))
|
||||
square.blit(dialog3, (15, 115))
|
||||
square.blit(dialog4, (15, 165))
|
||||
square.blit(dialog5, (15, 215))
|
||||
square.blit(dialog6, (15, 426))
|
||||
screen.blit(square, (50, 50))
|
||||
return level
|
||||
|
||||
def level4(blip, screen, sheet, screen_width, screen_height, lastclickpos, basicfont, mouse, click, big_text, level, tick, slightfont, pygamemixer): # the function for our first level, ignore the unused variables here, you can use them when you edit it
|
||||
global tickd
|
||||
tickd += 1
|
||||
screen.blit(load_sprite(sheet, 0, 37, 57, 36, 912, 576), (0, 0))
|
||||
screen.blit(load_sprite(sheet,57,15,8,25, 80, 250), (660, 290))
|
||||
return level
|
||||
Loading…
Add table
Add a link
Reference in a new issue