Compare commits

...

2 Commits

Author SHA1 Message Date
9e69321399 Fix grammar. 2024-04-05 16:02:17 +05:00
837e732efd Print coordinates when pressing F4 2024-04-05 16:01:05 +05:00
2 changed files with 3 additions and 1 deletions

View File

@ -57,7 +57,7 @@ def open_level(path):
def make_wall(wall_buffer,level): def make_wall(wall_buffer,level):
if (len(wall_buffer) != 2): if (len(wall_buffer) != 2):
print('Warning: wall buffer not contains 2 points.') print("Warning: wall buffer doesn't contains 2 points.")
return return
level.append( level.append(

View File

@ -83,6 +83,8 @@ def mainLoop():
alert = Alert(f"File saved as {filename}", display) alert = Alert(f"File saved as {filename}", display)
alert_append(alert, 5) alert_append(alert, 5)
if event.key == pygame.K_F4:
print(gPlayer.cPos)
keys = pygame.key.get_pressed() keys = pygame.key.get_pressed()
if keys[pygame.K_d]: if keys[pygame.K_d]: