This commit is contained in:
Diego 2020-07-21 23:55:01 -05:00
parent fdb647a441
commit ce42e18e72
3 changed files with 20 additions and 4 deletions

View file

@ -39,6 +39,9 @@ func _physics_process(_delta):
if health <= 0: if health <= 0:
queue_free() queue_free()
if is_on_wall() and is_on_floor():
velocity.y = -90
func do_knockback(normal): func do_knockback(normal):
if $Hell.flip_h == true: if $Hell.flip_h == true:
knockback = Vector2(-4, -4) knockback = Vector2(-4, -4)

File diff suppressed because one or more lines are too long

View file

@ -131,6 +131,12 @@ tracks/0/keys = {
[node name="World" type="Node2D"] [node name="World" type="Node2D"]
position = Vector2( 6.67419, 7.34163 ) position = Vector2( 6.67419, 7.34163 )
[node name="Door2" parent="." instance=ExtResource( 13 )]
modulate = Color( 0, 0, 0, 1 )
position = Vector2( 1932.15, 115.955 )
scale = Vector2( 1, 1.19488 )
frame = 0
[node name="Door" parent="." instance=ExtResource( 13 )] [node name="Door" parent="." instance=ExtResource( 13 )]
position = Vector2( 1932.15, 115.955 ) position = Vector2( 1932.15, 115.955 )
scale = Vector2( 1, 1.19488 ) scale = Vector2( 1, 1.19488 )
@ -156,6 +162,7 @@ shape = SubResource( 1 )
[node name="ParallaxBackground" type="ParallaxBackground" parent="."] [node name="ParallaxBackground" type="ParallaxBackground" parent="."]
[node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"] [node name="ParallaxLayer" type="ParallaxLayer" parent="ParallaxBackground"]
visible = false
modulate = Color( 0.635294, 0.635294, 0.635294, 1 ) modulate = Color( 0.635294, 0.635294, 0.635294, 1 )
motion_mirroring = Vector2( 490, 500 ) motion_mirroring = Vector2( 490, 500 )
@ -176,7 +183,7 @@ __meta__ = {
} }
[node name="Player" parent="." instance=ExtResource( 2 )] [node name="Player" parent="." instance=ExtResource( 2 )]
position = Vector2( 1919.33, 146.658 ) position = Vector2( -21.6742, 153.658 )
[node name="text" type="Node2D" parent="."] [node name="text" type="Node2D" parent="."]
position = Vector2( -5.81107, -6.20908 ) position = Vector2( -5.81107, -6.20908 )