1
Fork 0
mirror of https://github.com/Steffo99/nanogolf.git synced 2024-11-25 09:34:18 +00:00
algodist-steffo-nanogolf/scenes/putt_controller.tscn

30 lines
1 KiB
Text
Raw Normal View History

2024-02-15 05:04:26 +00:00
[gd_scene load_steps=5 format=3 uid="uid://cu03w8wxnkffb"]
2024-02-16 03:26:01 +00:00
[ext_resource type="Script" path="res://scenes/putt_controller.gd" id="1_rb6v1"]
2024-02-15 05:04:26 +00:00
[ext_resource type="Texture2D" uid="uid://dvr4j6164rphg" path="res://sprites/square.svg" id="2_eblkx"]
[ext_resource type="AudioStream" uid="uid://clm7wapsnjjlp" path="res://sounds/putt.wav" id="3_0eren"]
[sub_resource type="Curve" id="Curve_pq63d"]
min_value = -16.0
max_value = 0.0
_data = [Vector2(0, -16), 0.0, 16.0, 0, 1, Vector2(1, 0), 16.0, 0.0, 1, 0]
point_count = 2
2024-03-15 18:57:15 +00:00
[node name="PuttController" type="Node2D" node_paths=PackedStringArray("sprite", "sound")]
2024-02-15 05:04:26 +00:00
visible = false
modulate = Color(1, 1, 1, 0.25098)
2024-02-16 03:26:01 +00:00
script = ExtResource("1_rb6v1")
2024-03-15 18:57:15 +00:00
sprite = NodePath("Sprite")
sound = NodePath("Sound")
2024-02-15 05:19:18 +00:00
putt_max_impulse = 333.0
2024-02-15 05:04:26 +00:00
putt_drag_scale = 1.0
2024-02-15 05:19:18 +00:00
putt_ghost_scale = 0.3
2024-02-15 05:04:26 +00:00
putt_volume = SubResource("Curve_pq63d")
[node name="Sprite" type="Sprite2D" parent="."]
2024-02-18 17:15:59 +00:00
scale = Vector2(0.063, 0.063)
2024-02-15 05:04:26 +00:00
texture = ExtResource("2_eblkx")
[node name="Sound" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("3_0eren")