58 lines
1.9 KiB
Plaintext
58 lines
1.9 KiB
Plaintext
|
[gd_scene load_steps=9 format=3 uid="uid://cjiftn2suskla"]
|
||
|
|
||
|
[ext_resource type="Texture2D" uid="uid://blr4xbgysdyto" path="res://Assets/Sprites/Misc/arrow.png" id="1_0im1r"]
|
||
|
[ext_resource type="Script" path="res://Entities/Projectile.cs" id="1_8ijcc"]
|
||
|
[ext_resource type="PackedScene" uid="uid://du5vhccg75nrq" path="res://BoundingBoxes/Hitbox.tscn" id="3_f4lib"]
|
||
|
|
||
|
[sub_resource type="CircleShape2D" id="CircleShape2D_m22ef"]
|
||
|
radius = 3.0
|
||
|
|
||
|
[sub_resource type="Gradient" id="Gradient_uqfn8"]
|
||
|
offsets = PackedFloat32Array(0, 0.1, 0.9)
|
||
|
colors = PackedColorArray(1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0)
|
||
|
|
||
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_te0n4"]
|
||
|
gradient = SubResource("Gradient_uqfn8")
|
||
|
|
||
|
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_yg5po"]
|
||
|
particle_flag_disable_z = true
|
||
|
direction = Vector3(-1, 0, 0)
|
||
|
gravity = Vector3(0, 0, 0)
|
||
|
initial_velocity_min = 4.0
|
||
|
initial_velocity_max = 8.0
|
||
|
orbit_velocity_min = 0.0
|
||
|
orbit_velocity_max = 0.0
|
||
|
scale_min = 2.0
|
||
|
scale_max = 2.0
|
||
|
color_ramp = SubResource("GradientTexture1D_te0n4")
|
||
|
|
||
|
[sub_resource type="CanvasTexture" id="CanvasTexture_ggksk"]
|
||
|
|
||
|
[node name="Arrow" type="RigidBody2D" node_paths=PackedStringArray("Hitbox")]
|
||
|
script = ExtResource("1_8ijcc")
|
||
|
ProjectileName = "Arrow"
|
||
|
Speed = 256.0
|
||
|
Hitbox = NodePath("Hitbox")
|
||
|
Lifetime = 3.0
|
||
|
|
||
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||
|
position = Vector2(-11, -2)
|
||
|
texture = ExtResource("1_0im1r")
|
||
|
centered = false
|
||
|
|
||
|
[node name="Hitbox" parent="." instance=ExtResource("3_f4lib")]
|
||
|
|
||
|
[node name="CollisionShape2D" parent="Hitbox" index="0"]
|
||
|
position = Vector2(0, -0.5)
|
||
|
shape = SubResource("CircleShape2D_m22ef")
|
||
|
|
||
|
[node name="GPUParticles2D" type="GPUParticles2D" parent="."]
|
||
|
position = Vector2(-9, 0)
|
||
|
amount = 16
|
||
|
process_material = SubResource("ParticleProcessMaterial_yg5po")
|
||
|
texture = SubResource("CanvasTexture_ggksk")
|
||
|
lifetime = 0.8
|
||
|
fixed_fps = 12
|
||
|
|
||
|
[editable path="Hitbox"]
|