2024-02-16 03:26:01 +00:00
|
|
|
[gd_scene load_steps=10 format=3 uid="uid://ca06elq8io5wu"]
|
2024-02-15 05:04:26 +00:00
|
|
|
|
2024-02-16 03:26:01 +00:00
|
|
|
[ext_resource type="Script" path="res://scenes/golf_ball.gd" id="1_1uswk"]
|
2024-02-15 05:04:26 +00:00
|
|
|
[ext_resource type="Texture2D" uid="uid://bxyy3bwt7a5l2" path="res://sprites/circle.svg" id="2_mqlag"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cu03w8wxnkffb" path="res://scenes/putt_controller.tscn" id="3_rx2v7"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://cj15ash4r3i4v" path="res://scenes/collision_sound.tscn" id="4_6m2yp"]
|
2024-02-16 03:26:01 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://bf0a04t4b1wil" path="res://scenes/hole_controller.tscn" id="5_tdklt"]
|
|
|
|
[ext_resource type="AudioStream" uid="uid://crfybmbv6dbs4" path="res://sounds/hole.wav" id="6_08dpq"]
|
2024-02-15 05:04:26 +00:00
|
|
|
|
|
|
|
[sub_resource type="Curve" id="Curve_v81ms"]
|
|
|
|
min_value = -20.0
|
|
|
|
max_value = 0.0
|
|
|
|
_data = [Vector2(0, -20), 0.0, 20.0, 0, 1, Vector2(1, 0), 20.0, 0.0, 1, 0]
|
|
|
|
point_count = 2
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_3vk3q"]
|
2024-02-18 17:15:59 +00:00
|
|
|
radius = 4.0
|
2024-02-15 05:04:26 +00:00
|
|
|
|
2024-02-16 03:26:01 +00:00
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_aigrf"]
|
2024-02-18 17:15:59 +00:00
|
|
|
radius = 1.0
|
2024-02-16 03:26:01 +00:00
|
|
|
|
2024-02-15 05:04:26 +00:00
|
|
|
[node name="GolfBall" type="CharacterBody2D"]
|
|
|
|
motion_mode = 1
|
|
|
|
wall_min_slide_angle = 0.0
|
2024-02-16 03:26:01 +00:00
|
|
|
script = ExtResource("1_1uswk")
|
|
|
|
physics_friction = 60.0
|
2024-02-15 05:04:26 +00:00
|
|
|
physics_max_bounces = 4.0
|
2024-02-15 05:19:18 +00:00
|
|
|
physics_bounce_coefficient = 0.65
|
2024-02-15 05:04:26 +00:00
|
|
|
collision_sound = ExtResource("4_6m2yp")
|
|
|
|
collision_volume_db = SubResource("Curve_v81ms")
|
|
|
|
collision_volume_max_velocity = 150.0
|
|
|
|
|
|
|
|
[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_mqlag")
|
|
|
|
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="."]
|
|
|
|
shape = SubResource("CircleShape2D_3vk3q")
|
2024-02-16 03:26:01 +00:00
|
|
|
debug_color = Color(0, 0.6, 0.701961, 0.419608)
|
2024-02-15 05:04:26 +00:00
|
|
|
|
|
|
|
[node name="PuttController" parent="." instance=ExtResource("3_rx2v7")]
|
|
|
|
|
2024-02-16 03:26:01 +00:00
|
|
|
[node name="HoleController" parent="." instance=ExtResource("5_tdklt")]
|
|
|
|
|
|
|
|
[node name="Shape" type="CollisionShape2D" parent="HoleController"]
|
|
|
|
shape = SubResource("CircleShape2D_aigrf")
|
|
|
|
debug_color = Color(0, 0.701961, 0.141176, 0.419608)
|
|
|
|
|
|
|
|
[node name="HoleSound" type="AudioStreamPlayer2D" parent="."]
|
|
|
|
stream = ExtResource("6_08dpq")
|
|
|
|
|
2024-02-15 05:04:26 +00:00
|
|
|
[connection signal="putt" from="PuttController" to="." method="_on_putt"]
|