Skip to content

Commit 6d4ccc5

Browse files
committed
Start Button Now Works
Start Button Now Works Version: 1.1.6
1 parent 75072aa commit 6d4ccc5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

code/SRunner.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,7 @@ def on_draw(self):
231231
self.bridge_list.draw()
232232

233233
if GAME_STATUS == 2:
234-
self.start_list.draw()
235-
arcade.draw_text("Game over, you score was " + str(SCORE), 20, 20, arcade.color.BLACK, 30)
234+
arcade.draw_text("Game over, you score was " + str(SCORE) + ". Click to restart.", 20, 20, arcade.color.BLACK, 30, font_name="code/resources/font.ttf")
236235

237236
def on_update(self, delta_time):
238237

@@ -296,6 +295,12 @@ def on_update(self, delta_time):
296295
0,
297296
SCREEN_HEIGHT)
298297

298+
def on_mouse_press(self, _x, _y, _button, _modifiers):
299+
global GAME_STATUS
300+
301+
self.setup()
302+
GAME_STATUS = 1
303+
299304
### ~ Player Movement ~ ###
300305

301306

0 commit comments

Comments
 (0)