Skip to content

Commit 5345379

Browse files
style: format code with autopep8
Format code with autopep8 This commit fixes the style issues introduced in 952900c according to the output from Autopep8. Details: https://app.deepsource.com/gh/avinashkranjan/Amazing-Python-Scripts/transform/9595dd24-b9f0-45f5-a11f-66625d2bdff0/
1 parent 952900c commit 5345379

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Ink_art_puzzle_adv/ink-art-puzzle-adv.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
player_speed = 5
1919

2020
# Main game loop
21+
22+
2123
def game_loop():
2224
running = True
2325
while running:
@@ -38,14 +40,16 @@ def game_loop():
3840

3941
# Draw the player and background
4042
screen.fill(WHITE)
41-
pygame.draw.rect(screen, BLACK, (player_x, player_y, 50, 50)) # Player rectangle
43+
# Player rectangle
44+
pygame.draw.rect(screen, BLACK, (player_x, player_y, 50, 50))
4245

4346
# Draw ink art illustrations (replace this with your own images)
4447
# Example: ink_art_image = pygame.image.load("ink_art_image.png")
4548
# screen.blit(ink_art_image, (x, y))
4649

4750
pygame.display.update()
4851

52+
4953
# Start the game loop
5054
game_loop()
5155

0 commit comments

Comments
 (0)