Files
GMTK25/arrow/arrow.tscn
Minimata cfe154e754
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 8s
Create tag and build when new code gets to main / Export (push) Successful in 2m31s
fix: sound tweaks
2025-08-03 15:27:43 +02:00

63 lines
2.5 KiB
Plaintext

[gd_scene load_steps=10 format=3 uid="uid://4bfkbcr7v8tj"]
[ext_resource type="Script" uid="uid://127t4dvlp6tv" path="res://arrow/arrow.gd" id="1_d2qln"]
[ext_resource type="Script" uid="uid://dt2lsk3je41th" path="res://damageable/hitbox.gd" id="2_d2qln"]
[ext_resource type="Texture2D" uid="uid://lhq6h8f81qrr" path="res://player/assets/Fleche.png" id="2_ofxgm"]
[ext_resource type="AudioStream" uid="uid://ca5ip2v4sbw8r" path="res://world_assets/audio/384912__ali_6868__arrow-impact-3.wav" id="4_lo0oj"]
[ext_resource type="AudioStream" uid="uid://cl171ph84g5t2" path="res://world_assets/audio/384913__ali_6868__arrow-impact-2.wav" id="5_nl01e"]
[ext_resource type="AudioStream" uid="uid://ejdkgkgh1arq" path="res://world_assets/audio/384914__ali_6868__arrow-impact-1.wav" id="6_e3mw3"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_d2qln"]
size = Vector2(2, 2)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yaehf"]
size = Vector2(12, 5)
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_l8mgh"]
streams_count = 3
stream_0/stream = ExtResource("4_lo0oj")
stream_1/stream = ExtResource("5_nl01e")
stream_2/stream = ExtResource("6_e3mw3")
[node name="Arrow" type="RigidBody2D"]
collision_layer = 0
collision_mask = 0
freeze_mode = 1
linear_velocity = Vector2(-100, 0)
script = ExtResource("1_d2qln")
speed = 1
rotation_speed = 10
jump_strength_on_death = 500
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_d2qln")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("2_ofxgm")
region_rect = Rect2(717, 6, 35, 9)
[node name="Area2D" type="Area2D" parent="."]
collision_layer = 4
collision_mask = 5
script = ExtResource("2_d2qln")
hitback_direction = Vector2(-1, -1)
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(1, 0.5)
shape = SubResource("RectangleShape2D_yaehf")
[node name="KillAfter" type="Timer" parent="."]
wait_time = 3.0
one_shot = true
ignore_time_scale = true
[node name="KillAudio" type="AudioStreamPlayer2D" parent="."]
stream = SubResource("AudioStreamRandomizer_l8mgh")
max_distance = 100.0
bus = &"SFX"
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="body_entered" from="Area2D" to="." method="_on_body_entered"]
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_body_entered"]
[connection signal="timeout" from="KillAfter" to="." method="_on_kill_after_timeout"]