433 lines
14 KiB
Plaintext
433 lines
14 KiB
Plaintext
[gd_scene load_steps=45 format=3 uid="uid://dm0686s1pow7q"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://c5d1a8dvsp3wb" path="res://MiniGames/RingToss/RTSketch.png" id="1_0w7y7"]
|
|
[ext_resource type="Script" path="res://MiniGames/RingToss/RT_exit_button.gd" id="1_aaibf"]
|
|
[ext_resource type="Script" path="res://MiniGames/RingToss/PowerBar.gd" id="2_164r4"]
|
|
[ext_resource type="Script" path="res://MiniGames/RingToss/AimBar.gd" id="2_rw4ii"]
|
|
[ext_resource type="Script" path="res://MiniGames/RingToss/Target.gd" id="3_o6tp8"]
|
|
[ext_resource type="Texture2D" uid="uid://cufxcwk33l7gl" path="res://MiniGames/RingToss/RTTarget.png" id="5_2evu1"]
|
|
[ext_resource type="Script" path="res://MiniGames/RingToss/TargetAreaVisual.gd" id="7_1upxm"]
|
|
[ext_resource type="Texture2D" uid="uid://d234a8oyse3fc" path="res://MiniGames/RingToss/TargetAnim/HitCenter.png" id="7_77xoh"]
|
|
[ext_resource type="Texture2D" uid="uid://ck6l38oiw0njd" path="res://MiniGames/RingToss/TargetAnim/HitCenter2.png" id="8_iwgap"]
|
|
[ext_resource type="Texture2D" uid="uid://dfko13n37f4ql" path="res://MiniGames/RingToss/TargetAnim/HitCenter3.png" id="9_ucprk"]
|
|
[ext_resource type="Texture2D" uid="uid://cru6x8la12w3x" path="res://MiniGames/RingToss/TargetAnim/HitCenter4.png" id="10_jgbrq"]
|
|
[ext_resource type="Texture2D" uid="uid://cqtienv085dny" path="res://MiniGames/RingToss/TargetAnim/HitLeftB1.png" id="11_qdjqd"]
|
|
[ext_resource type="Texture2D" uid="uid://brql4x6wfph0h" path="res://MiniGames/RingToss/TargetAnim/HitLeftB2.png" id="12_gyybd"]
|
|
[ext_resource type="Texture2D" uid="uid://dnxtdev2mj8ja" path="res://MiniGames/RingToss/TargetAnim/HitLeftB3.png" id="13_527nv"]
|
|
[ext_resource type="Texture2D" uid="uid://d1thbbh2osm3t" path="res://MiniGames/RingToss/TargetAnim/HitLeftB4.png" id="14_582vk"]
|
|
[ext_resource type="Texture2D" uid="uid://c41dsdllps3jw" path="res://MiniGames/RingToss/TargetAnim/HitLeftT1.png" id="15_vj28u"]
|
|
[ext_resource type="Texture2D" uid="uid://db4m4lgcx7qid" path="res://MiniGames/RingToss/TargetAnim/HitLeftT2.png" id="16_w5hxq"]
|
|
[ext_resource type="Texture2D" uid="uid://c55gu8wtbxdrs" path="res://MiniGames/RingToss/TargetAnim/HitLeftT3.png" id="17_8325o"]
|
|
[ext_resource type="Texture2D" uid="uid://cb8wovkqwc6on" path="res://MiniGames/RingToss/TargetAnim/HitLeftT4.png" id="18_wlu7y"]
|
|
[ext_resource type="Texture2D" uid="uid://d1g0lgqvmvioa" path="res://MiniGames/RingToss/TargetAnim/HitRightB1.png" id="19_l7tja"]
|
|
[ext_resource type="Texture2D" uid="uid://cdo77atssmd6c" path="res://MiniGames/RingToss/TargetAnim/HitRightB2.png" id="20_flih8"]
|
|
[ext_resource type="Texture2D" uid="uid://cgewskbhh762y" path="res://MiniGames/RingToss/TargetAnim/HitRightB3.png" id="21_32tk4"]
|
|
[ext_resource type="Texture2D" uid="uid://cq1p4u341lw3i" path="res://MiniGames/RingToss/TargetAnim/HitRightB4.png" id="22_l7tdq"]
|
|
[ext_resource type="Texture2D" uid="uid://dtghxkea52s3y" path="res://MiniGames/RingToss/TargetAnim/HitRightT1.png" id="23_hus6o"]
|
|
[ext_resource type="Texture2D" uid="uid://ccuy04a226uq8" path="res://MiniGames/RingToss/TargetAnim/HitRightT2.png" id="24_6rjgp"]
|
|
[ext_resource type="Texture2D" uid="uid://6ik2m0l20pxm" path="res://MiniGames/RingToss/TargetAnim/HitRightT3.png" id="25_fnycq"]
|
|
[ext_resource type="Texture2D" uid="uid://di6aarrknxqf8" path="res://MiniGames/RingToss/TargetAnim/HitRightT4.png" id="26_crpnl"]
|
|
[ext_resource type="Texture2D" uid="uid://bjeck0wps33s6" path="res://MiniGames/RingToss/Crosshair.png" id="27_bittn"]
|
|
[ext_resource type="Texture2D" uid="uid://bmfmrxtjttc35" path="res://MiniGames/RingToss/TargetAnim/Ring.png" id="29_r0r6u"]
|
|
[ext_resource type="Texture2D" uid="uid://bq4bip3iqfke" path="res://MiniGames/RingToss/Sign.png" id="30_hjaie"]
|
|
[ext_resource type="Script" path="res://MiniGames/RingToss/ResultManager.gd" id="31_8e2pr"]
|
|
[ext_resource type="Texture2D" uid="uid://cwqa8rt4jpkb4" path="res://MiniGames/RingToss/rtResults.png" id="31_w7tdr"]
|
|
[ext_resource type="Texture2D" uid="uid://djgdtg73oqd67" path="res://Items/Toys/Other/Sprites/BalloonHoldNew1.png" id="33_gmr7g"]
|
|
[ext_resource type="Texture2D" uid="uid://og6jc1nvgt1a" path="res://Items/Badges/Sprites/RingTossBadge.png" id="34_4ma4q"]
|
|
[ext_resource type="Texture2D" uid="uid://b3wg7wx034400" path="res://Items/Badges/Sprites/RingTossBadgePerfect.png" id="35_orqrd"]
|
|
|
|
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_m4v3c"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_pn6ec"]
|
|
size = Vector2(938, 673)
|
|
|
|
[sub_resource type="CanvasTexture" id="CanvasTexture_7wcp2"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_x07e8"]
|
|
radius = 10.5119
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_fn6y8"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_ib5u0"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("7_77xoh")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("8_iwgap")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("9_ucprk")
|
|
}, {
|
|
"duration": 10.0,
|
|
"texture": ExtResource("10_jgbrq")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Center",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("11_qdjqd")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("12_gyybd")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("13_527nv")
|
|
}, {
|
|
"duration": 10.0,
|
|
"texture": ExtResource("14_582vk")
|
|
}],
|
|
"loop": true,
|
|
"name": &"LeftB",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("15_vj28u")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("16_w5hxq")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("17_8325o")
|
|
}, {
|
|
"duration": 10.0,
|
|
"texture": ExtResource("18_wlu7y")
|
|
}],
|
|
"loop": true,
|
|
"name": &"LeftT",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("19_l7tja")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("20_flih8")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("21_32tk4")
|
|
}, {
|
|
"duration": 10.0,
|
|
"texture": ExtResource("22_l7tdq")
|
|
}],
|
|
"loop": true,
|
|
"name": &"RightB",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("23_hus6o")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("24_6rjgp")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("25_fnycq")
|
|
}, {
|
|
"duration": 10.0,
|
|
"texture": ExtResource("26_crpnl")
|
|
}],
|
|
"loop": true,
|
|
"name": &"RightT",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("5_2evu1")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[sub_resource type="Animation" id="Animation_47ljp"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:scale")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(1.3, 1.3)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".:position")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 19)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_ykgxy"]
|
|
resource_name = "Throw"
|
|
length = 0.5
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:scale")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(1.3, 1.3), Vector2(1, 1)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".:position")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 19), Vector2(0, 0)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_3ltoi"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_47ljp"),
|
|
"Throw": SubResource("Animation_ykgxy")
|
|
}
|
|
|
|
[node name="RingtossScene" type="Node2D"]
|
|
process_mode = 3
|
|
z_index = 100
|
|
z_as_relative = false
|
|
|
|
[node name="Background" type="Area2D" parent="."]
|
|
material = SubResource("CanvasItemMaterial_m4v3c")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Background"]
|
|
position = Vector2(0, -4.5)
|
|
shape = SubResource("RectangleShape2D_pn6ec")
|
|
one_way_collision_margin = 0.0
|
|
|
|
[node name="RTcam" type="Camera2D" parent="."]
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
z_index = 101
|
|
z_as_relative = false
|
|
texture = ExtResource("1_0w7y7")
|
|
|
|
[node name="Exit_button" type="Button" parent="."]
|
|
z_index = 101
|
|
z_as_relative = false
|
|
offset_left = 376.0
|
|
offset_top = -305.0
|
|
offset_right = 437.0
|
|
offset_bottom = -267.0
|
|
text = "Exit"
|
|
icon = SubResource("CanvasTexture_7wcp2")
|
|
script = ExtResource("1_aaibf")
|
|
|
|
[node name="DirBar" type="ProgressBar" parent="."]
|
|
z_index = 101
|
|
z_as_relative = false
|
|
offset_left = -156.0
|
|
offset_top = 265.0
|
|
offset_right = 159.0
|
|
offset_bottom = 297.0
|
|
fill_mode = 1
|
|
show_percentage = false
|
|
script = ExtResource("2_rw4ii")
|
|
Speed = 80
|
|
|
|
[node name="Button" type="Button" parent="DirBar"]
|
|
z_index = 101
|
|
z_as_relative = false
|
|
layout_mode = 0
|
|
offset_left = 115.0
|
|
offset_top = -50.0
|
|
offset_right = 202.0
|
|
offset_bottom = -11.0
|
|
text = "Aim"
|
|
|
|
[node name="PowBar" type="ProgressBar" parent="DirBar" node_paths=PackedStringArray("root", "ringnode", "ringanim")]
|
|
z_index = 101
|
|
z_as_relative = false
|
|
layout_mode = 0
|
|
offset_left = -244.0
|
|
offset_top = -535.0
|
|
offset_right = -209.0
|
|
offset_bottom = 3.0
|
|
fill_mode = 3
|
|
show_percentage = false
|
|
script = ExtResource("2_164r4")
|
|
Speed = 80
|
|
root = NodePath("../..")
|
|
ringnode = NodePath("../../RingNode")
|
|
ringanim = NodePath("../../RingNode/Ring/AnimationPlayer")
|
|
|
|
[node name="Button" type="Button" parent="DirBar/PowBar"]
|
|
z_index = 101
|
|
z_as_relative = false
|
|
layout_mode = 0
|
|
offset_left = 372.0
|
|
offset_top = 475.0
|
|
offset_right = 434.0
|
|
offset_bottom = 530.0
|
|
text = "Throw"
|
|
|
|
[node name="Target" type="Sprite2D" parent="."]
|
|
z_index = 107
|
|
z_as_relative = false
|
|
position = Vector2(-121, -144)
|
|
texture = ExtResource("5_2evu1")
|
|
script = ExtResource("3_o6tp8")
|
|
|
|
[node name="Center" type="Area2D" parent="Target" groups=["Center"]]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Target/Center"]
|
|
position = Vector2(1, -19)
|
|
scale = Vector2(2, 2)
|
|
shape = SubResource("CircleShape2D_x07e8")
|
|
|
|
[node name="Outer" type="Area2D" parent="Target" groups=["Outer"]]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Target/Outer"]
|
|
position = Vector2(1, -14)
|
|
scale = Vector2(4.5, 4.5)
|
|
shape = SubResource("CircleShape2D_fn6y8")
|
|
|
|
[node name="Animate" type="AnimatedSprite2D" parent="Target"]
|
|
sprite_frames = SubResource("SpriteFrames_ib5u0")
|
|
|
|
[node name="Crosshair" type="Sprite2D" parent="."]
|
|
z_index = 107
|
|
z_as_relative = false
|
|
position = Vector2(-50, 53)
|
|
scale = Vector2(0.307, 0.23)
|
|
texture = ExtResource("27_bittn")
|
|
|
|
[node name="Score" type="RichTextLabel" parent="."]
|
|
z_index = 102
|
|
z_as_relative = false
|
|
offset_left = 331.0
|
|
offset_top = -49.0
|
|
offset_right = 441.0
|
|
offset_bottom = -10.0
|
|
rotation = 0.00948429
|
|
theme_override_colors/default_color = Color(1, 0.85098, 0, 1)
|
|
text = "Score: 0"
|
|
|
|
[node name="Throws" type="RichTextLabel" parent="."]
|
|
z_index = 102
|
|
z_as_relative = false
|
|
offset_left = 318.0
|
|
offset_top = -73.0
|
|
offset_right = 445.0
|
|
offset_bottom = -34.0
|
|
rotation = 0.03774
|
|
theme_override_colors/default_color = Color(1, 0.85098, 0, 1)
|
|
theme_override_font_sizes/normal_font_size = 15
|
|
text = "Throws: 0/10"
|
|
|
|
[node name="Button" type="Button" parent="."]
|
|
visible = false
|
|
z_index = 2
|
|
offset_left = 309.0
|
|
offset_top = -236.0
|
|
offset_right = 420.0
|
|
offset_bottom = -169.0
|
|
text = "Gen new pos
|
|
(Testing)"
|
|
|
|
[node name="Polygon2D" type="Polygon2D" parent="."]
|
|
visible = false
|
|
z_index = 5
|
|
color = Color(1, 0, 1, 0.501961)
|
|
polygon = PackedVector2Array(280, 150, -280, 150, -170, -220, 170, -220)
|
|
script = ExtResource("7_1upxm")
|
|
|
|
[node name="RingNode" type="Node2D" parent="."]
|
|
position = Vector2(24, 54)
|
|
|
|
[node name="Ring" type="Sprite2D" parent="RingNode"]
|
|
z_index = 7
|
|
position = Vector2(0, 19)
|
|
scale = Vector2(1.3, 1.3)
|
|
texture = ExtResource("29_r0r6u")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="RingNode/Ring"]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_3ltoi")
|
|
}
|
|
|
|
[node name="Sign" type="Sprite2D" parent="."]
|
|
z_index = 1
|
|
position = Vector2(366, -30)
|
|
scale = Vector2(1.36, 1.48)
|
|
texture = ExtResource("30_hjaie")
|
|
|
|
[node name="Result" type="Sprite2D" parent="."]
|
|
unique_name_in_owner = true
|
|
z_index = 10
|
|
scale = Vector2(0.7, 0.7)
|
|
texture = ExtResource("31_w7tdr")
|
|
script = ExtResource("31_8e2pr")
|
|
|
|
[node name="ProgressBar" type="ProgressBar" parent="Result"]
|
|
unique_name_in_owner = true
|
|
modulate = Color(0, 0.745098, 0, 1)
|
|
offset_left = -412.857
|
|
offset_top = 65.7143
|
|
offset_right = 265.143
|
|
offset_bottom = 92.7143
|
|
scale = Vector2(1.22857, 1.22857)
|
|
max_value = 200.0
|
|
step = 10.0
|
|
value = 150.0
|
|
show_percentage = false
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="Result"]
|
|
position = Vector2(1.42857, -71.4286)
|
|
scale = Vector2(0.571429, 0.621429)
|
|
texture = ExtResource("33_gmr7g")
|
|
|
|
[node name="Sprite2D2" type="Sprite2D" parent="Result"]
|
|
position = Vector2(204.286, -92.8571)
|
|
scale = Vector2(1.59524, 1.47619)
|
|
texture = ExtResource("34_4ma4q")
|
|
|
|
[node name="Sprite2D3" type="Sprite2D" parent="Result"]
|
|
position = Vector2(408.571, -90)
|
|
scale = Vector2(1.59524, 1.47619)
|
|
texture = ExtResource("35_orqrd")
|
|
|
|
[node name="RichTextLabel" type="RichTextLabel" parent="Result"]
|
|
offset_left = -428.571
|
|
offset_top = -132.857
|
|
offset_right = -279.571
|
|
offset_bottom = -92.8571
|
|
theme_override_font_sizes/normal_font_size = 25
|
|
text = "Rewards"
|
|
|
|
[node name="RichTextLabel2" type="RichTextLabel" parent="Result"]
|
|
offset_left = -428.571
|
|
offset_top = 4.28571
|
|
offset_right = -279.571
|
|
offset_bottom = 44.2857
|
|
theme_override_font_sizes/normal_font_size = 25
|
|
text = "Score"
|
|
|
|
[connection signal="pressed" from="Exit_button" to="Exit_button" method="_on_pressed"]
|
|
[connection signal="pressed" from="DirBar/Button" to="DirBar" method="_on_button_pressed"]
|
|
[connection signal="pressed" from="DirBar/PowBar/Button" to="DirBar/PowBar" method="_on_button_pressed"]
|
|
[connection signal="pressed" from="Button" to="Target" method="new_pos"]
|