54 lines
1.9 KiB
Plaintext
54 lines
1.9 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://cm6t7t21qai2k"]
|
|
|
|
[ext_resource type="Script" path="res://tscn/bullet.gd" id="1_xkvd4"]
|
|
[ext_resource type="Texture2D" uid="uid://dw415r5q7gjav" path="res://assets/sheet02.png" id="2_u4orb"]
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_0degb"]
|
|
atlas = ExtResource("2_u4orb")
|
|
region = Rect2(166, 36, 5, 3)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6i4pj"]
|
|
size = Vector2(5, 3)
|
|
|
|
[sub_resource type="Curve" id="Curve_0a7jy"]
|
|
_data = [Vector2(0.0225989, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
|
point_count = 2
|
|
|
|
[sub_resource type="CurveTexture" id="CurveTexture_jkm6o"]
|
|
curve = SubResource("Curve_0a7jy")
|
|
|
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_4tm8h"]
|
|
particle_flag_disable_z = true
|
|
gravity = Vector3(-50, 0, 0)
|
|
color = Color(0, 0, 0, 1)
|
|
alpha_curve = SubResource("CurveTexture_jkm6o")
|
|
|
|
[node name="bullet" type="CharacterBody2D"]
|
|
script = ExtResource("1_xkvd4")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
position = Vector2(-2, -1)
|
|
texture = SubResource("AtlasTexture_0degb")
|
|
centered = false
|
|
|
|
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
|
|
position = Vector2(0.5, 0.5)
|
|
scale = Vector2(0.25, 0.15)
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
position = Vector2(0.5, 0.5)
|
|
shape = SubResource("RectangleShape2D_6i4pj")
|
|
|
|
[node name="GPUParticles2D" type="GPUParticles2D" parent="."]
|
|
position = Vector2(-1, 0.5)
|
|
process_material = SubResource("ParticleProcessMaterial_4tm8h")
|
|
lifetime = 0.4
|
|
trail_enabled = true
|
|
trail_sections = 2
|
|
trail_section_subdivisions = 6
|
|
|
|
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]
|
|
[connection signal="body_entered" from="Area2D" to="." method="_on_area_2d_body_entered"]
|