File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ def update_game_logic(self):
290
290
if (spaceship .playerID ) == "Player1" :
291
291
self .player_one .leave_spaceship (0 )
292
292
elif (spaceship .playerID ) == "Player2" :
293
- self .player_two .leave_spaceship (1 )
293
+ self .player_two .leave_spaceship (0 )
294
294
if spaceship == self .spaceship_one :
295
295
variables .game_data [current_level ]["spaceship_one_hp" ]['current' ] = 0
296
296
spaceship .hp = 0
Original file line number Diff line number Diff line change @@ -222,9 +222,6 @@ def upgrade(self, new_spaceship_sprite_path):
222
222
# Set the image using the current angle
223
223
self .image = pygame .transform .rotate (self .original_sprite_scaled , self .angle )
224
224
225
-
226
-
227
-
228
225
def reposition (self , spaceship_number ):
229
226
"""Reposition the spaceship to its original location in case of collision."""
230
227
# Load the original position from variables
@@ -236,9 +233,10 @@ def reposition(self, spaceship_number):
236
233
self .x = planet_center_x + (self .planet_radius + self .radius ) * math .cos (self .initial_angle )
237
234
self .y = planet_center_y + (self .planet_radius + self .radius ) * math .sin (self .initial_angle )
238
235
self .angle = self .initial_angle + 180
236
+
239
237
self .image = pygame .transform .rotate (self .original_sprite_scaled , self .angle )
240
238
241
- # print(self.initial_angle )
239
+ print ("problem" )
242
240
# # print initial angle in degrees
243
241
# print(math.degrees(self.initial_angle))
244
242
# print(math.degrees(self.angle))
You can’t perform that action at this time.
0 commit comments