[gd_scene load_steps=11 format=3 uid="uid://ctbmgsp8dfel3"]

[ext_resource type="Script" uid="uid://3gn70ilm20tw" path="res://Game/Traps/traps.gd" id="1_6fgim"]
[ext_resource type="Texture2D" uid="uid://dn22pudsmyrrg" path="res://Assets/Traps/Mine/49.png" id="2_6m2fs"]
[ext_resource type="Texture2D" uid="uid://sb3dotm5napj" path="res://Assets/Traps/Mine/54.png" id="3_57sxm"]
[ext_resource type="Texture2D" uid="uid://by0c26bla5hce" path="res://Assets/Traps/Mine/55.png" id="4_a3dnl"]
[ext_resource type="Texture2D" uid="uid://cspjuelhbbavu" path="res://Assets/Traps/Mine/56.png" id="5_a1ih2"]
[ext_resource type="AudioStream" uid="uid://ccgorfnbo7tus" path="res://Assets/Sounds/mine impact.mp3" id="6_a3dnl"]

[sub_resource type="CircleShape2D" id="CircleShape2D_m1bdk"]
radius = 32.0

[sub_resource type="SpriteFrames" id="SpriteFrames_fp50i"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_57sxm")
}, {
"duration": 1.0,
"texture": ExtResource("4_a3dnl")
}, {
"duration": 1.0,
"texture": ExtResource("5_a1ih2")
}],
"loop": false,
"name": &"Explode",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_6m2fs")
}],
"loop": true,
"name": &"idle",
"speed": 0.0
}]

[sub_resource type="CircleShape2D" id="CircleShape2D_uiyu1"]

[sub_resource type="CircleShape2D" id="CircleShape2D_57sxm"]

[node name="Mine" type="Node2D"]
script = ExtResource("1_6fgim")

[node name="CharacterBody2D" type="CharacterBody2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
scale = Vector2(0.6, 0.6)
shape = SubResource("CircleShape2D_m1bdk")

[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="CharacterBody2D"]
scale = Vector2(0.2, 0.207)
sprite_frames = SubResource("SpriteFrames_fp50i")
animation = &"Explode"
autoplay = "idle"

[node name="Area2D" type="Area2D" parent="CharacterBody2D"]

[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D/Area2D"]
scale = Vector2(6, 6)
shape = SubResource("CircleShape2D_uiyu1")

[node name="Area2D" type="Area2D" parent="."]

[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
shape = SubResource("CircleShape2D_57sxm")
debug_color = Color(0.811824, 0.00210331, 0.983083, 0.42)

[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("6_a3dnl")
