Skip to content

Commit 81e60e5

Browse files
committed
adjust exit button to be start instead of b
1 parent 8c64751 commit 81e60e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

game/iter_fractal_viewer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def on_button_press(self, controller, button_name):
6969
if button_name == "a":
7070
self.zoom_start_position = self.cursor_sprite.center_x, self.cursor_sprite.center_y
7171
self.dragging_with_controller = True
72-
elif button_name == "b":
72+
elif button_name == "start":
7373
self.main_exit()
7474

7575
def on_button_release(self, controller, button_name):

game/sierpinsky_carpet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def on_mouse_press(self, x: int, y: int, button: int, modifiers: int) -> bool |
7676
def on_button_press(self, controller, name):
7777
if name == "a":
7878
self.on_mouse_press(self.cursor_sprite.left, self.cursor_sprite.bottom, arcade.MOUSE_BUTTON_LEFT, 0)
79-
elif name == "b":
79+
elif name == "start":
8080
self.main_exit()
8181

8282
def on_stick_motion(self, controller, name, vector):

0 commit comments

Comments
 (0)