generated from dvorakmortonxd/pygame-template
made some basic zombie ai and basically finished level 3/4 in the code
This commit is contained in:
parent
43716c7710
commit
95e5e9f9f3
4 changed files with 80 additions and 3 deletions
4
main.py
4
main.py
|
|
@ -52,7 +52,9 @@ def main(fps=window_fps): # the main function
|
|||
level = 3
|
||||
elif level == 3:
|
||||
level = levels.level3(screen, sheet, screen_width, screen_height, lastclickpos, basicfont, pygame.mouse, click, bigtext, level, tick, smalltext) # runs the level2 function from levels.py
|
||||
|
||||
elif level == 4:
|
||||
tick += 1
|
||||
level = levels.level4(screen, sheet, screen_width, screen_height, lastclickpos, basicfont, pygame.mouse, click, bigtext, level, tick, smalltext) # runs the level2 function from levels.py
|
||||
fps_text = smalltext.render(str(int(clock.get_fps())), True, (0, 255, 0)) # defines a thing that renders your fps in the top left corner
|
||||
screen.blit(fps_text, (5, 5)) # this actually renders "ftp_text" on the screen at the position (5, 5) which is the top left corner
|
||||
pygame.display.flip() # this updates the display so it displays all the new stuff we added
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue