GodotWIP/Projectile.tscn

37 lines
897 B
Plaintext

[gd_scene load_steps=5 format=2]
[ext_resource path="res://assets/bullet.png" type="Texture" id=1]
[ext_resource path="res://Projectile.gd" type="Script" id=2]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 1 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]
[sub_resource type="CircleShape2D" id=2]
radius = 4.0
[node name="Projectile" type="RigidBody2D"]
collision_layer = 64
collision_mask = 33
gravity_scale = 0.0
contacts_reported = 2
contact_monitor = true
script = ExtResource( 2 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 2 )
[node name="Timer" type="Timer" parent="."]
wait_time = 3.0
one_shot = true
autostart = true
[connection signal="body_entered" from="." to="." method="_on_Projectile_body_entered"]