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.

50 lines
1.8 KiB

[gd_scene load_steps=9 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://dbjqbgu6ru4m1" path="res://white.png" id="3_35obe"]
[ext_resource type="Texture2D" uid="uid://bda38sojncx5q" path="res://light.png" id="4_jdr6g"]
[sub_resource type="CircleShape2D" id="CircleShape2D_1y8mw"]
[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="Gradient" id="Gradient_s173t"]
colors = PackedColorArray(0.967279, 0.105729, 0.103599, 1, 0.980392, 0.541176, 0.160784, 1)
[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_curve = SubResource("Curve_qw0p6")
gradient = SubResource("Gradient_s173t")
script = ExtResource("2_uq0x2")
MAX_LENGTH = 3
[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="."]
visible = false
texture = ExtResource("3_35obe")
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
root_path = NodePath("../Trail/PointLight2D")
replication_config = SubResource("SceneReplicationConfig_uqkxw")