Skip to content

Commit 199673b

Browse files
committed
removed dead code and a blue square used for debugging, from the PlatformerController2d.
1 parent 81df8af commit 199673b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

ursina/prefabs/platformer_controller_2d.py

-8
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ def __init__(self, **kwargs):
1313
self.collider = 'box'
1414

1515
self.animator = Animator({'idle' : None, 'walk' : None, 'jump' : None})
16-
# self.animation_state_machine.state = 'jump'
17-
# self.idle_animation = None
18-
# self.walk_animation = None
19-
# self.jump_animation = None
20-
# self.idle_animation = Entity(parent=self, model='cube', color=color.gray, origin_y=-.5, scale_z=2)
21-
# self.walk_animation = Animation(parent=self, texture='ursina_wink', color=color.red, origin_y=-.5, scale=(2,2), double_sided=True)
22-
# self.model = None
2316

2417
self.walk_speed = 8
2518
self.walking = False
@@ -50,7 +43,6 @@ def __init__(self, **kwargs):
5043
invoke(setattr, self, 'gravity', target_gravity, delay=1/60)
5144
self._original_scale_x = self.scale_x
5245

53-
Entity(model='cube', scale=.1, parent=self, color=color.azure, x=.5, y=.5)
5446
self.min_x = -99999
5547
self.max_x = 99999
5648

0 commit comments

Comments
 (0)