generated from dvorakmortonxd/pygame-template
almost the last commit for the intro thing just missing the control cheatsheet ill commit in the next push
This commit is contained in:
parent
f316adc74c
commit
f7894f2040
4 changed files with 39 additions and 5 deletions
5
main.py
5
main.py
|
|
@ -37,7 +37,12 @@ def main(fps=window_fps): # the main function
|
|||
levels.dialognum += 1
|
||||
if event.key == pygame.K_h:
|
||||
if levels.dialognum == 9:
|
||||
levels.tickd = 0
|
||||
levels.dialognum = 10
|
||||
if event.key == pygame.K_SPACE:
|
||||
if levels.dialognum == 11:
|
||||
levels.tickd = 0
|
||||
levels.dialognum = 12
|
||||
if event.type == pygame.MOUSEBUTTONDOWN: # what happens when you press down a mouse button
|
||||
click = True # sets the click variable to True so level function in levels.py can see
|
||||
print(pygame.mouse.get_pos()) # prints out where the mouse is during the click for debugging purposes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue