AprilGameExample/Scenes/grenade.tscn

25 lines
940 B
Plaintext
Raw Permalink Normal View History

[gd_scene format=3 uid="uid://dotmw0uwnqv6w"]
[ext_resource type="Script" uid="uid://bd8br3emm1nhb" path="res://Scripts/grenade.gd" id="1_v44n1"]
[ext_resource type="Texture2D" uid="uid://b22v4ysmsexkp" path="res://assets/graphics/objects/grenade.png" id="2_5rnft"]
[sub_resource type="CircleShape2D" id="CircleShape2D_b5j7x"]
radius = 5.0
[node name="Grenade" type="RigidBody2D" unique_id=638454305]
contact_monitor = true
max_contacts_reported = 3
script = ExtResource("1_v44n1")
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1542775089]
shape = SubResource("CircleShape2D_b5j7x")
debug_color = Color(0.81554836, 0.40704176, 0.03861203, 0.41960785)
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1051169739]
texture_filter = 1
position = Vector2(1, -1)
scale = Vector2(0.75, 0.75)
texture = ExtResource("2_5rnft")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]