Want to contribute? Fork me on Codeberg.org!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
2.2 KiB

[gd_scene load_steps=10 format=3 uid="uid://bxyl3aa8j8qc5"]
[ext_resource type="Script" path="res://bullet.gd" id="1_eeg3n"]
[ext_resource type="Script" path="res://trail.gd" id="2_uq0x2"]
[ext_resource type="Texture2D" uid="uid://bda38sojncx5q" path="res://light.png" id="4_jdr6g"]
[ext_resource type="Texture2D" uid="uid://bcl076hrv3pfy" path="res://circle.png" id="4_tv64x"]
[ext_resource type="AudioStream" uid="uid://dhayng4sypahr" path="res://fire.mp3" id="5_es1i2"]
[ext_resource type="AudioStream" uid="uid://oet1lthsa14c" path="res://ricochet.mp3" id="6_6fq30"]
[sub_resource type="CircleShape2D" id="CircleShape2D_1y8mw"]
radius = 2.0
[sub_resource type="Curve" id="Curve_qw0p6"]
_data = [Vector2(0, 1), 0.0, -1.0, 0, 1, Vector2(1, 0), -1.0, 0.0, 1, 0]
point_count = 2
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_uqkxw"]
properties/0/path = NodePath("../..:position")
properties/0/spawn = true
properties/0/sync = true
properties/0/watch = false
[node name="Bullet" type="CharacterBody2D"]
collision_layer = 4
script = ExtResource("1_eeg3n")
speed = 2000.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_1y8mw")
[node name="Trail" type="Line2D" parent="."]
width = 4.0
width_curve = SubResource("Curve_qw0p6")
default_color = Color(0.913725, 0.494118, 0.780392, 1)
script = ExtResource("2_uq0x2")
MAX_LENGTH = 3
OPACITY_SHRINK_RATE = 15
SIZE_SHRINK_RATE = 15
[node name="PointLight2D" type="PointLight2D" parent="Trail"]
scale = Vector2(0.1, 0.1)
color = Color(0.996078, 0.807843, 0.682353, 1)
energy = 2.5
texture = ExtResource("4_jdr6g")
[node name="Sprite2D" type="Sprite2D" parent="Trail"]
modulate = Color(0.960784, 0.94902, 0.0431373, 1)
scale = Vector2(0.125, 0.125)
texture = ExtResource("4_tv64x")
[node name="Fire" type="AudioStreamPlayer" parent="."]
stream = ExtResource("5_es1i2")
volume_db = -5.0
autoplay = true
[node name="Ricochet" type="AudioStreamPlayer" parent="."]
stream = ExtResource("6_6fq30")
volume_db = -12.0
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
root_path = NodePath("../Trail/PointLight2D")
replication_config = SubResource("SceneReplicationConfig_uqkxw")