minor stuff
This commit is contained in:
@@ -31,7 +31,7 @@ animations = [{
|
|||||||
}]
|
}]
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mnewg"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mnewg"]
|
||||||
size = Vector2(14, 25)
|
size = Vector2(14, 47)
|
||||||
|
|
||||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_luw3y"]
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_luw3y"]
|
||||||
size = Vector2(16, 24)
|
size = Vector2(16, 24)
|
||||||
@@ -42,14 +42,13 @@ script = ExtResource("1_nrv87")
|
|||||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||||
position = Vector2(8, -12)
|
position = Vector2(8, -12)
|
||||||
sprite_frames = SubResource("SpriteFrames_1s1v4")
|
sprite_frames = SubResource("SpriteFrames_1s1v4")
|
||||||
animation = &"down"
|
|
||||||
autoplay = "default"
|
autoplay = "default"
|
||||||
|
|
||||||
[node name="Area2D" type="Area2D" parent="."]
|
[node name="Area2D" type="Area2D" parent="."]
|
||||||
collision_mask = 2
|
collision_mask = 2
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||||
position = Vector2(8, -12.5)
|
position = Vector2(8, -23.5)
|
||||||
shape = SubResource("RectangleShape2D_mnewg")
|
shape = SubResource("RectangleShape2D_mnewg")
|
||||||
|
|
||||||
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -75,6 +75,9 @@ func _physics_process(delta):
|
|||||||
@onready var die_sound = $dieSound
|
@onready var die_sound = $dieSound
|
||||||
|
|
||||||
func f_die():
|
func f_die():
|
||||||
|
gravity_scale = 0
|
||||||
|
collision_shape_2d.queue_free()
|
||||||
|
die.queue_free()
|
||||||
die_sound.play()
|
die_sound.play()
|
||||||
speed = 0
|
speed = 0
|
||||||
innocent = true
|
innocent = true
|
||||||
|
|||||||
@@ -200,6 +200,7 @@ func shrink():
|
|||||||
player_die()
|
player_die()
|
||||||
|
|
||||||
func player_die():
|
func player_die():
|
||||||
|
visible = false
|
||||||
die_player.play("die")
|
die_player.play("die")
|
||||||
on_pause = true
|
on_pause = true
|
||||||
music.stop()
|
music.stop()
|
||||||
|
|||||||
Reference in New Issue
Block a user