Skip to content

Commit 75072aa

Browse files
committed
Fixed Bugs
Fixed Bugs Version: 1.1.5
1 parent 3cdf118 commit 75072aa

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

code/SRunner.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Program Name: SRunner.py
33
Creator: James Ashwood
4-
Date last modified: 7 Aug 2021
4+
Date last modified: 8 Aug 2021
55
Github Link: https://github.com/James-Ashwood/SRunner
66
"""
77

@@ -11,8 +11,6 @@
1111

1212
import arcade
1313
from typing import Optional
14-
import math
15-
from time import sleep
1614
import random
1715

1816
## Constants
@@ -180,11 +178,20 @@ def setup(self):
180178

181179
for x in range(250):
182180
image_source6 ="code/resources/background.png" ## Background
183-
self.bg_sprite = arcade.Sprite(image_source6, 2)
184-
self.bg_sprite.center_x = x * 100
181+
self.bg_sprite = arcade.Sprite(image_source6, 1.2)
182+
self.bg_sprite.center_x = x * 600
185183
self.bg_sprite.center_y = 250
186184
self.bg.append(self.bg_sprite)
187185

186+
## Start button
187+
188+
self.start_list = arcade.SpriteList()
189+
image_source7 ="code/resources/startbutton.png" ## Block type 5
190+
191+
self.start_sprite = arcade.Sprite(image_source7, 1)
192+
self.start_sprite.center_x = 120
193+
self.start_sprite.center_y = 130
194+
self.start_list.append(self.start_sprite)
188195

189196
### ~ Physics Engine Setup ~ ###
190197

@@ -224,6 +231,7 @@ def on_draw(self):
224231
self.bridge_list.draw()
225232

226233
if GAME_STATUS == 2:
234+
self.start_list.draw()
227235
arcade.draw_text("Game over, you score was " + str(SCORE), 20, 20, arcade.color.BLACK, 30)
228236

229237
def on_update(self, delta_time):
@@ -293,7 +301,7 @@ def on_update(self, delta_time):
293301

294302
def on_key_press(self, key, modifiers):
295303

296-
global CUrRENT_BLOCK_TYPE
304+
global CURRENT_BLOCK_TYPE
297305

298306
## Player jumps if the UP or W key is pressed
299307

0 commit comments

Comments
 (0)