File tree Expand file tree Collapse file tree 2 files changed +324
-132
lines changed
CircuitPython_GameAndWatch_Octopus Expand file tree Collapse file tree 2 files changed +324
-132
lines changed Original file line number Diff line number Diff line change 11# SPDX-FileCopyrightText: 2022 Tim C, written for Adafruit Industries
22#
33# SPDX-License-Identifier: MIT
4- import gc
5- import time
64import board
75import 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
1310display = board .DISPLAY
1411
15- #display.brightness = 0.3
12+ # display.brightness = 0.3
1613
1714# main group that we'll show in the display
1815main_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
2428main_group .append (octopus_game )
7377 octopus_game .a_button_press ()
7478
7579 # call the game tick function
76- octopus_game .tick ()
80+ octopus_game .tick ()
You can’t perform that action at this time.
0 commit comments