32 lines
1.2 KiB
Text
32 lines
1.2 KiB
Text
[gd_scene load_steps=5 format=3 uid="uid://h3caql0b6vft"]
|
|
|
|
[ext_resource type="Script" uid="uid://dttgoqksqnsm0" path="res://traps/bear_trap.gd" id="1_u48ys"]
|
|
[ext_resource type="Texture2D" uid="uid://cy70quh6k3s1j" path="res://icon.svg" id="2_mnxjq"]
|
|
[ext_resource type="PackedScene" uid="uid://chs0u61f45nau" path="res://utils/earth_aligner.tscn" id="3_mnxjq"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_yh007"]
|
|
radius = 30.0
|
|
|
|
[node name="BearTrap" type="Node2D"]
|
|
script = ExtResource("1_u48ys")
|
|
player_damage = 2
|
|
enemy_damage = 50
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 6
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
position = Vector2(0, -15)
|
|
scale = Vector2(1, 0.5)
|
|
shape = SubResource("CircleShape2D_yh007")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
self_modulate = Color(1, 0, 0, 1)
|
|
scale = Vector2(0.75, 0.1)
|
|
texture = ExtResource("2_mnxjq")
|
|
|
|
[node name="EarthAligner" parent="." instance=ExtResource("3_mnxjq")]
|
|
|
|
[connection signal="area_entered" from="Area2D" to="." method="_on_area_2d_area_entered"]
|
|
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
|