PopTheLockClone/main.tscn
Bobby Lucero 540e0087b4 Initial Commit
Didn't use git for a minute, oh well.
2025-06-05 00:31:32 -04:00

527 lines
15 KiB
Plaintext

[gd_scene load_steps=23 format=3 uid="uid://dc7mdcm45gwcm"]
[ext_resource type="Script" uid="uid://837wj2bp417t" path="res://addons/primitives2d/circle2d.gd" id="1_ig7tw"]
[ext_resource type="Script" uid="uid://bspmrib6cl6qc" path="res://addons/primitives2d/rectangle2d.gd" id="2_0xm2m"]
[ext_resource type="Script" uid="uid://cqccd451iqfti" path="res://PaddlePivotTest.cs" id="3_h2yge"]
[ext_resource type="Script" uid="uid://csmfx22swajfs" path="res://GameManager.cs" id="4_lquwl"]
[ext_resource type="Script" uid="uid://dw1twisa1uie6" path="res://CenterDisplayController.cs" id="5_7mycd"]
[sub_resource type="SystemFont" id="SystemFont_0xm2m"]
font_names = PackedStringArray("Fredoka")
hinting = 2
[sub_resource type="LabelSettings" id="LabelSettings_h2yge"]
line_spacing = -17.165
font = SubResource("SystemFont_0xm2m")
font_size = 46
[sub_resource type="SystemFont" id="SystemFont_h2yge"]
font_names = PackedStringArray("Fredoka")
font_stretch = 200
[sub_resource type="LabelSettings" id="LabelSettings_1bvp3"]
font = SubResource("SystemFont_h2yge")
font_size = 56
[sub_resource type="LabelSettings" id="LabelSettings_lquwl"]
font = SubResource("SystemFont_h2yge")
font_size = 125
font_color = Color(1, 1, 1, 0.0862745)
[sub_resource type="Animation" id="Animation_272bh"]
resource_name = "CounterFadeIn"
length = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:label_settings:font_color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0.0862745), Color(1, 1, 1, 1)]
}
tracks/1/type = "method"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("AnimationPlayer")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0.5),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [&"CounterInIdle", -1, 1.0, false],
"method": &"play"
}]
}
[sub_resource type="Animation" id="Animation_5vw27"]
resource_name = "CounterFadeOut"
length = 0.35
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:label_settings:font_color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.35),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0.0862745)]
}
[sub_resource type="Animation" id="Animation_kek77"]
resource_name = "CounterInIdle"
length = 0.1
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:label_settings:font_color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 1)]
}
[sub_resource type="Animation" id="Animation_4c57u"]
resource_name = "CounterOutIdle"
length = 0.1
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:label_settings:font_color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 0.0862745), Color(1, 1, 1, 0.0862745)]
}
[sub_resource type="Animation" id="Animation_efxa6"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:label_settings:font_color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 0.0862745)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_dg77c"]
_data = {
&"CounterFadeIn": SubResource("Animation_272bh"),
&"CounterFadeOut": SubResource("Animation_5vw27"),
&"CounterInIdle": SubResource("Animation_kek77"),
&"CounterOutIdle": SubResource("Animation_4c57u"),
&"RESET": SubResource("Animation_efxa6")
}
[sub_resource type="LabelSettings" id="LabelSettings_7mycd"]
font = SubResource("SystemFont_h2yge")
font_size = 20
shadow_color = Color(0.637843, 0.637843, 0.637843, 1)
[sub_resource type="LabelSettings" id="LabelSettings_272bh"]
line_spacing = -4.19
font = SubResource("SystemFont_h2yge")
font_size = 30
font_color = Color(0, 0.32549, 0.698039, 0)
[sub_resource type="Animation" id="Animation_lquwl"]
resource_name = "TextFade"
length = 0.75
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:label_settings:font_color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.749632),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0, 0.32549, 0.698039, 0.34902), Color(0, 0.32549, 0.698039, 1)]
}
[sub_resource type="Animation" id="Animation_7mycd"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:label_settings:font_color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(0, 0.32549, 0.698039, 0)]
}
[sub_resource type="Animation" id="Animation_dg77c"]
resource_name = "TextOutIdle"
length = 0.1
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:label_settings:font_color")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(0, 0.32549, 0.698039, 0), Color(0, 0.32549, 0.698039, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_272bh"]
_data = {
&"RESET": SubResource("Animation_7mycd"),
&"TextFade": SubResource("Animation_lquwl"),
&"TextOutIdle": SubResource("Animation_dg77c")
}
[node name="Node2D" type="Node2D"]
[node name="Camera2D" type="Camera2D" parent="."]
offset = Vector2(0, -158.4)
[node name="Sprite2D" type="Sprite2D" parent="."]
[node name="Polygon2D" type="Polygon2D" parent="."]
[node name="MainBodyLit" type="Node2D" parent="."]
z_index = -1
script = ExtResource("1_ig7tw")
radius = 289.04
filled = true
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="MainBodyOutline" type="Node2D" parent="."]
z_index = -2
script = ExtResource("1_ig7tw")
color = Color(0.14902, 0.14902, 0.14902, 1)
radius = 298.25
filled = true
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="MainBodyLEDBackground" type="Node2D" parent="."]
script = ExtResource("1_ig7tw")
color = Color(0.14902, 0.14902, 0.14902, 1)
radius = 246.215
line_width = 72.66
detail = 90
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="HACK" type="Node2D" parent="MainBodyLEDBackground"]
rotation = 0.0371891
script = ExtResource("1_ig7tw")
color = Color(0.14902, 0.14902, 0.14902, 1)
radius = 246.215
line_width = 72.66
detail = 90
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="PaddleTrack" type="Node2D" parent="."]
script = ExtResource("1_ig7tw")
color = Color(0.14902, 0.14902, 0.14902, 1)
radius = 183.83
filled = true
detail = 47
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="PaddleTrackOutline" type="Node2D" parent="PaddleTrack"]
script = ExtResource("1_ig7tw")
color = Color(0, 0, 0, 1)
radius = 184.415
line_width = 3.24
detail = 47
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="HACK" type="Node2D" parent="PaddleTrack/PaddleTrackOutline"]
rotation = 0.00711103
script = ExtResource("1_ig7tw")
color = Color(0, 0, 0, 1)
radius = 184.415
line_width = 3.24
detail = 47
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="DisplayOutline" type="Node2D" parent="."]
z_index = 1
script = ExtResource("1_ig7tw")
color = Color(0.47788, 0.47788, 0.47788, 1)
radius = 113.605
line_width = 9.2
detail = 67
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="FUCKINGHACK" type="Node2D" parent="DisplayOutline"]
z_index = 1
rotation = 0.0129723
script = ExtResource("1_ig7tw")
color = Color(0.47788, 0.47788, 0.47788, 1)
radius = 113.605
line_width = 9.2
detail = 67
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="LockTopBackgroundLit" type="Node2D" parent="."]
z_index = -4
position = Vector2(0, -405)
script = ExtResource("1_ig7tw")
radius = 190.0
filled = true
detail = 47
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="LockTopBackgroundLit2" type="Node2D" parent="LockTopBackgroundLit"]
z_index = -2
position = Vector2(0, 179)
script = ExtResource("2_0xm2m")
size = Vector2(380, 352.7)
centered = true
metadata/_custom_type_script = "uid://bspmrib6cl6qc"
[node name="LockTopOutline" type="Node2D" parent="."]
z_index = -7
position = Vector2(0, -405)
script = ExtResource("1_ig7tw")
color = Color(0.14902, 0.14902, 0.14902, 1)
radius = 200.0
filled = true
detail = 47
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="LockTopOutline2" type="Node2D" parent="LockTopOutline"]
z_index = -2
position = Vector2(0, 179)
script = ExtResource("2_0xm2m")
color = Color(0.14902, 0.14902, 0.14902, 1)
size = Vector2(400, 352.7)
centered = true
metadata/_custom_type_script = "uid://bspmrib6cl6qc"
[node name="LockTopInnerBackground" type="Node2D" parent="."]
z_index = -3
position = Vector2(0, -405)
script = ExtResource("1_ig7tw")
color = Color(0.14902, 0.14902, 0.14902, 1)
radius = 120.0
filled = true
detail = 47
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="LockTopInnerBackground2" type="Node2D" parent="LockTopInnerBackground"]
z_index = -1
position = Vector2(0, 179)
script = ExtResource("2_0xm2m")
color = Color(0.14902, 0.14902, 0.14902, 1)
size = Vector2(240, 352.7)
centered = true
metadata/_custom_type_script = "uid://bspmrib6cl6qc"
[node name="TopScreenBackground" type="Node2D" parent="."]
z_index = -3
position = Vector2(0, -295)
script = ExtResource("2_0xm2m")
size = Vector2(215.96, 133.325)
centered = true
metadata/_custom_type_script = "uid://bspmrib6cl6qc"
[node name="LogoOutline" type="Node2D" parent="."]
z_index = 1
position = Vector2(0, -444)
script = ExtResource("1_ig7tw")
radius = 70.015
filled = true
detail = 47
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="LogoBackground" type="Node2D" parent="."]
z_index = 1
position = Vector2(0, -444)
script = ExtResource("1_ig7tw")
color = Color(0.14902, 0.14902, 0.14902, 1)
radius = 64.095
filled = true
detail = 47
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="Label" type="Label" parent="."]
z_index = 1
offset_left = -40.0
offset_top = -505.0
offset_right = 62.0
offset_bottom = -357.0
scale = Vector2(0.777311, 0.769849)
text = "Pop
the
Lock"
label_settings = SubResource("LabelSettings_h2yge")
horizontal_alignment = 1
vertical_alignment = 1
[node name="PaddlePivot" type="Node2D" parent="." node_paths=PackedStringArray("FPS", "HitsLeft", "shapes")]
script = ExtResource("3_h2yge")
FPS = NodePath("../Label2")
HitsLeft = NodePath("../CenterDisplayController/DisplayBackground/Counter")
shapes = [NodePath("../MainBodyLit"), NodePath("../LockTopBackgroundLit"), NodePath("../LockTopBackgroundLit/LockTopBackgroundLit2"), NodePath("../TopScreenBackground")]
[node name="Circle2D" type="Node2D" parent="PaddlePivot"]
z_index = 8
position = Vector2(3.04231e-05, -174)
script = ExtResource("1_ig7tw")
color = Color(0.719453, 3.7542e-06, 3.85046e-07, 1)
radius = 6.0
filled = true
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="Circle2D2" type="Node2D" parent="PaddlePivot"]
z_index = 8
position = Vector2(2.25551e-05, -129)
script = ExtResource("1_ig7tw")
color = Color(0.719453, 3.7542e-06, 3.85046e-07, 1)
radius = 6.0
filled = true
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="Rectangle2D" type="Node2D" parent="PaddlePivot"]
z_index = 8
position = Vector2(0, -151)
script = ExtResource("2_0xm2m")
color = Color(0.719453, 3.7542e-06, 3.85046e-07, 1)
size = Vector2(12, 44.92)
centered = true
metadata/_custom_type_script = "uid://bspmrib6cl6qc"
[node name="Label2" type="Label" parent="."]
offset_left = -332.0
offset_top = -708.0
offset_right = -120.0
offset_bottom = -639.0
text = "FPS: xxx"
label_settings = SubResource("LabelSettings_1bvp3")
vertical_alignment = 1
[node name="Coin" type="Node2D" parent="."]
z_index = 1
position = Vector2(152, 0)
script = ExtResource("1_ig7tw")
color = Color(0.933333, 0.878431, 0, 1)
radius = 26.175
filled = true
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="Background" type="Node2D" parent="."]
z_index = -100
script = ExtResource("2_0xm2m")
color = Color(0, 0, 0, 1)
size = Vector2(1000, 10000)
centered = true
metadata/_custom_type_script = "uid://bspmrib6cl6qc"
[node name="GameManager" type="Node" parent="."]
script = ExtResource("4_lquwl")
[node name="CenterDisplayController" type="Node" parent="." node_paths=PackedStringArray("_background", "_counterLabel", "_togoLabel", "_pbtsLabel", "_pbstAnimationPlayer", "_counterAnimationPlayer")]
script = ExtResource("5_7mycd")
_background = NodePath("DisplayBackground")
_counterLabel = NodePath("DisplayBackground/Counter")
_togoLabel = NodePath("DisplayBackground/TO GO!")
_pbtsLabel = NodePath("DisplayBackground/Press Button To Start")
_pbstAnimationPlayer = NodePath("DisplayBackground/Press Button To Start/ColorFadeLoop")
_counterAnimationPlayer = NodePath("DisplayBackground/Counter/AnimationPlayer")
[node name="DisplayBackground" type="Node2D" parent="CenterDisplayController"]
z_index = 1
script = ExtResource("1_ig7tw")
color = Color(0, 0.75118, 0, 1)
radius = 105.185
filled = true
detail = 47
metadata/_custom_type_script = "uid://837wj2bp417t"
[node name="Counter" type="Label" parent="CenterDisplayController/DisplayBackground"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -106.0
offset_top = -115.0
offset_right = 106.0
offset_bottom = 69.0
grow_horizontal = 2
grow_vertical = 2
pivot_offset = Vector2(106, 92)
text = "50"
label_settings = SubResource("LabelSettings_lquwl")
horizontal_alignment = 1
vertical_alignment = 1
[node name="AnimationPlayer" type="AnimationPlayer" parent="CenterDisplayController/DisplayBackground/Counter"]
libraries = {
&"": SubResource("AnimationLibrary_dg77c")
}
[node name="TO GO!" type="Label" parent="CenterDisplayController/DisplayBackground"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -106.0
offset_top = -33.0
offset_right = 106.0
offset_bottom = 151.0
grow_horizontal = 2
grow_vertical = 2
pivot_offset = Vector2(106, 92)
text = "TO GO!"
label_settings = SubResource("LabelSettings_7mycd")
horizontal_alignment = 1
vertical_alignment = 1
[node name="Press Button To Start" type="Label" parent="CenterDisplayController/DisplayBackground"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -106.0
offset_top = -88.0
offset_right = 106.0
offset_bottom = 96.0
grow_horizontal = 2
grow_vertical = 2
pivot_offset = Vector2(106, 92)
text = "Press Button
To Start"
label_settings = SubResource("LabelSettings_272bh")
horizontal_alignment = 1
vertical_alignment = 1
[node name="ColorFadeLoop" type="AnimationPlayer" parent="CenterDisplayController/DisplayBackground/Press Button To Start"]
libraries = {
&"": SubResource("AnimationLibrary_272bh")
}