Envie/Projectiles/basic_projectile.tscn
2023-01-14 23:05:08 -05:00

23 lines
865 B
Plaintext

[gd_scene load_steps=4 format=3 uid="uid://cpo8qy3y0fuui"]
[ext_resource type="Script" path="res://Projectiles/basic_projectile.gd" id="1_l2kyf"]
[ext_resource type="Texture2D" uid="uid://gqotbni355f" path="res://Sprites/placeholder_projectile.png" id="1_o7jy1"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_pp7ve"]
size = Vector2(10, 10)
[node name="basic_projectile" type="Area2D"]
script = ExtResource("1_l2kyf")
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(5, 5)
texture = ExtResource("1_o7jy1")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_pp7ve")
[node name="LifeTimer" type="Timer" parent="."]
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="timeout" from="LifeTimer" to="." method="_on_life_timer_timeout"]