Skip to content

Commit d23158b

Browse files
committed
pylint fixes
1 parent ec356b0 commit d23158b

File tree

2 files changed

+324
-132
lines changed

2 files changed

+324
-132
lines changed

CircuitPython_GameAndWatch_Octopus/code.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
11
# SPDX-FileCopyrightText: 2022 Tim C, written for Adafruit Industries
22
#
33
# SPDX-License-Identifier: MIT
4-
import gc
5-
import time
64
import board
75
import keypad
8-
from displayio import OnDiskBitmap, TileGrid, Group
9-
import adafruit_imageload
10-
from octopus_game_helpers import DiverPlayer, OctopusGame
6+
from displayio import Group
7+
from octopus_game_helpers import OctopusGame
118

129
# built-in display
1310
display = board.DISPLAY
1411

15-
#display.brightness = 0.3
12+
# display.brightness = 0.3
1613

1714
# main group that we'll show in the display
1815
main_group = Group()
1916

2017
# create instance of OctopusGame
21-
octopus_game = OctopusGame(high_score_type=OctopusGame.HIGH_SCORE_NVM)
18+
octopus_game = OctopusGame()
19+
20+
# uncomment this instead, to use NVM highscore
21+
#octopus_game = OctopusGame(high_score_type=OctopusGame.HIGH_SCORE_NVM)
22+
23+
# uncomment this instead, to use SDCard highscore
24+
#octopus_game = OctopusGame(high_score_type=OctopusGame.HIGH_SCORE_NVM)
25+
2226

2327
# add octopus game to main group
2428
main_group.append(octopus_game)
@@ -73,4 +77,4 @@
7377
octopus_game.a_button_press()
7478

7579
# call the game tick function
76-
octopus_game.tick()
80+
octopus_game.tick()

0 commit comments

Comments
 (0)