Skip to content

Commit fe097b9

Browse files
committed
Removing failing linting fixes.
1 parent 73396ce commit fe097b9

2 files changed

Lines changed: 5 additions & 16 deletions

File tree

top-python-game-engines/pygame_zero_sample/pygame_zero/pygame_zero_basic.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
# `pgzrun pygame_zero_basic.py`
1515
import pgzrun
1616

17-
# This section is used to satisfy linters, and can be removed
18-
from pgzero.rect import Rect
19-
import pgzero.game
20-
2117
# Set the width and height of our output window, in pixels
2218
WIDTH = 800
2319
HEIGHT = 600
@@ -27,22 +23,22 @@ def draw():
2723
"""Draw is called once per frame to render everything on the screen"""
2824

2925
# Clear the screen first
30-
pgzero.game.screen.clear()
26+
screen.clear()
3127

3228
# Set the background color to white
33-
pgzero.game.screen.fill("white")
29+
screen.fill("white")
3430

3531
# Draw a blue circle with a radius of 50 in the center of the screen
36-
pgzero.game.screen.draw.filled_circle(
32+
screen.draw.filled_circle(
3733
(WIDTH // 2, HEIGHT // 2), 50, "blue"
3834
)
3935

4036
# Draw a red outlined square in the top left corner of the screen
4137
red_square = Rect((50, 50), (100, 100))
42-
pgzero.game.screen.draw.rect(red_square, (200, 0, 0))
38+
screen.draw.rect(red_square, (200, 0, 0))
4339

4440
# Draw an orange caption along the bottom in 60 point font
45-
pgzero.game.screen.draw.text(
41+
screen.draw.text(
4642
"Hello, World! From Pygame Zero!",
4743
(100, HEIGHT - 50),
4844
fontsize=60,

top-python-game-engines/pygame_zero_sample/pygame_zero/pygame_zero_game.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@
2020
# To randomize coin placement
2121
from random import randint
2222

23-
# This section is used to satisfy linters, and can be removed
24-
from pgzero.actor import Actor
25-
from pgzero.rect import Rect
26-
from pgzero.loaders import sounds
27-
from pgzero.clock import clock
28-
import pgzero.game
29-
3023
# Set the width and height of our output window, in pixels
3124
WIDTH = 800
3225
HEIGHT = 600

0 commit comments

Comments
 (0)