12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- [gd_scene load_steps=6 format=2]
- [ext_resource path="res://player/bullet.gd" type="Script" id=1]
- [ext_resource path="res://player/bullet.png" type="Texture2D" id=2]
- [sub_resource type="CanvasItemMaterial" id=1]
- blend_mode = 1
- [sub_resource type="CircleShape2D" id=2]
- radius = 4.5
- [sub_resource type="Animation" id=3]
- length = 1.5
- tracks/0/type = "method"
- tracks/0/path = NodePath(".")
- tracks/0/interp = 1
- tracks/0/loop_wrap = true
- tracks/0/imported = false
- tracks/0/enabled = true
- tracks/0/keys = {
- "times": PackedFloat32Array(1.31),
- "transitions": PackedFloat32Array(1),
- "values": [{
- "args": [],
- "method": "queue_free"
- }]
- }
- tracks/1/type = "value"
- tracks/1/path = NodePath("Sprite2D:modulate")
- tracks/1/interp = 1
- tracks/1/loop_wrap = true
- tracks/1/imported = false
- tracks/1/enabled = true
- tracks/1/keys = {
- "times": PackedFloat32Array(0, 1.03),
- "transitions": PackedFloat32Array(1, 1),
- "update": 0,
- "values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
- }
- tracks/2/type = "value"
- tracks/2/path = NodePath("GPUParticles2D:self_modulate")
- tracks/2/interp = 1
- tracks/2/loop_wrap = true
- tracks/2/imported = false
- tracks/2/enabled = true
- tracks/2/keys = {
- "times": PackedFloat32Array(0, 0.5),
- "transitions": PackedFloat32Array(1, 1),
- "update": 0,
- "values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
- }
- [node name="Bullet" type="RigidDynamicBody2D"]
- continuous_cd = 2
- script = ExtResource( 1 )
- [node name="GPUParticles2D" type="CPUParticles2D" parent="."]
- material = SubResource( 1 )
- emitting = false
- lifetime = 0.3
- speed_scale = 3.0
- local_coords = false
- texture = ExtResource( 2 )
- spread = 0.0
- gravity = Vector2(0, 0)
- initial_velocity = 1.0
- angular_velocity = 38.0
- scale_amount = 0.8
- [node name="Sprite2D" type="Sprite2D" parent="."]
- texture = ExtResource( 2 )
- [node name="CollisionShape2D" type="CollisionShape2D" parent="."]
- shape = SubResource( 2 )
- [node name="Timer" type="Timer" parent="."]
- one_shot = true
- [node name="AnimationPlayer" type="AnimationPlayer" parent="."]
- anims/shutdown = SubResource( 3 )
- [connection signal="timeout" from="Timer" to="." method="disable"]
|