282 lines
8.7 KiB
Text
282 lines
8.7 KiB
Text
[gd_scene load_steps=27 format=3 uid="uid://bmd4m7lqj4v0x"]
|
|
|
|
[ext_resource type="Script" path="res://Spawner.gd" id="1_ifu8g"]
|
|
[ext_resource type="Script" path="res://GameManager.gd" id="1_k8sg3"]
|
|
[ext_resource type="FontFile" uid="uid://ve8css0g3ldb" path="res://Preahvihear/Preahvihear-Regular.ttf" id="2_0a4qt"]
|
|
[ext_resource type="PackedScene" uid="uid://4lc6bvf7b8a0" path="res://ircle.tscn" id="3_7jxvc"]
|
|
[ext_resource type="PhysicsMaterial" uid="uid://c5tm7od8mwjjb" path="res://elastic.tres" id="4_bx3xr"]
|
|
[ext_resource type="PackedScene" uid="uid://yu50iyftoyaj" path="res://riangle.tscn" id="4_icpv2"]
|
|
[ext_resource type="Gradient" uid="uid://c41berdx2rqpw" path="res://gradient.tres" id="4_yk0bb"]
|
|
[ext_resource type="Script" path="res://Clock.gd" id="5_7po8n"]
|
|
[ext_resource type="Texture2D" uid="uid://cx7ded6cxsxfr" path="res://black.png" id="6_sn16e"]
|
|
[ext_resource type="PackedScene" uid="uid://cgcjicue76wsr" path="res://player.tscn" id="7_ujibo"]
|
|
[ext_resource type="SpriteFrames" uid="uid://8b07jl81sgcb" path="res://countdown.gif" id="9_4eosh"]
|
|
[ext_resource type="Script" path="res://CollisionCheck.gd" id="11_ryeyk"]
|
|
[ext_resource type="Texture2D" uid="uid://cso5ufbf7u7oj" path="res://Circle.png" id="13_318fy"]
|
|
[ext_resource type="Script" path="res://Notification.gd" id="13_lkv81"]
|
|
[ext_resource type="Script" path="res://Stopwatch.gd" id="13_xhnp2"]
|
|
[ext_resource type="Script" path="res://Leaderboard.gd" id="14_v1elq"]
|
|
[ext_resource type="PackedScene" uid="uid://c54oi61t8bvtu" path="res://entagon.tscn" id="18_jl3xw"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_7w8g6"]
|
|
size = Vector2(328, 185.333)
|
|
|
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_o86fr"]
|
|
|
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_0lugs"]
|
|
normal = Vector2(2.08165e-12, 1)
|
|
|
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_nfw1m"]
|
|
normal = Vector2(1, 2.08165e-12)
|
|
|
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_wacat"]
|
|
normal = Vector2(-1, 2.08165e-12)
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_bmvvy"]
|
|
radius = 100.0
|
|
|
|
[sub_resource type="Gradient" id="Gradient_or5lt"]
|
|
colors = PackedColorArray(1, 0, 0, 1, 1, 0, 0, 1)
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_cygyn"]
|
|
gradient = SubResource("Gradient_or5lt")
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_ky2qs"]
|
|
gradient = ExtResource("4_yk0bb")
|
|
width = 2048
|
|
|
|
[node name="Node2D" type="Node2D"]
|
|
position = Vector2(-2, -1)
|
|
script = ExtResource("1_k8sg3")
|
|
|
|
[node name="Spawner" type="Marker2D" parent="."]
|
|
position = Vector2(1749, 999)
|
|
script = ExtResource("1_ifu8g")
|
|
item = ExtResource("3_7jxvc")
|
|
|
|
[node name="Timer" type="Timer" parent="Spawner"]
|
|
wait_time = 3.0
|
|
autostart = true
|
|
|
|
[node name="Spawner2" type="Marker2D" parent="."]
|
|
position = Vector2(1749, 999)
|
|
script = ExtResource("1_ifu8g")
|
|
item = ExtResource("4_icpv2")
|
|
|
|
[node name="Timer" type="Timer" parent="Spawner2"]
|
|
wait_time = 4.0
|
|
autostart = true
|
|
|
|
[node name="Spawner3" type="Marker2D" parent="."]
|
|
position = Vector2(3498, 1998)
|
|
script = ExtResource("1_ifu8g")
|
|
item = ExtResource("18_jl3xw")
|
|
|
|
[node name="Timer" type="Timer" parent="Spawner3"]
|
|
wait_time = 10.0
|
|
autostart = true
|
|
|
|
[node name="BG" type="TextureRect" parent="."]
|
|
z_index = -1000
|
|
offset_left = 2.0
|
|
offset_top = -5.0
|
|
offset_right = 50002.0
|
|
offset_bottom = 49995.0
|
|
texture = ExtResource("6_sn16e")
|
|
stretch_mode = 1
|
|
|
|
[node name="Clock" type="CharacterBody2D" parent="."]
|
|
position = Vector2(201, 200)
|
|
collision_layer = 3
|
|
collision_mask = 3
|
|
motion_mode = 1
|
|
script = ExtResource("5_7po8n")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Clock"]
|
|
position = Vector2(0, 0.5)
|
|
scale = Vector2(0.75, 0.75)
|
|
shape = SubResource("RectangleShape2D_7w8g6")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="Clock"]
|
|
texture_filter = 1
|
|
position = Vector2(0, 51)
|
|
sprite_frames = ExtResource("9_4eosh")
|
|
animation = &"gif"
|
|
autoplay = "gif"
|
|
|
|
[node name="Border" type="StaticBody2D" parent="."]
|
|
physics_material_override = ExtResource("4_bx3xr")
|
|
|
|
[node name="Bottom" type="CollisionShape2D" parent="Border"]
|
|
position = Vector2(1080, 1080)
|
|
shape = SubResource("WorldBoundaryShape2D_o86fr")
|
|
one_way_collision_margin = 0.0
|
|
|
|
[node name="Top" type="CollisionShape2D" parent="Border"]
|
|
position = Vector2(582, 0)
|
|
shape = SubResource("WorldBoundaryShape2D_0lugs")
|
|
|
|
[node name="Left" type="CollisionShape2D" parent="Border"]
|
|
position = Vector2(0, 330)
|
|
shape = SubResource("WorldBoundaryShape2D_nfw1m")
|
|
|
|
[node name="Right" type="CollisionShape2D" parent="Border"]
|
|
position = Vector2(1920, 330)
|
|
shape = SubResource("WorldBoundaryShape2D_wacat")
|
|
|
|
[node name="Player" parent="." instance=ExtResource("7_ujibo")]
|
|
position = Vector2(110, 74)
|
|
scale = Vector2(0.5, 0.5)
|
|
|
|
[node name="UI" type="Control" parent="."]
|
|
layout_mode = 3
|
|
anchors_preset = 0
|
|
offset_right = 1920.0
|
|
offset_bottom = 1080.0
|
|
|
|
[node name="Quare Count" type="Label" parent="UI"]
|
|
layout_mode = 1
|
|
anchors_preset = 2
|
|
anchor_top = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 44.0
|
|
offset_top = -137.0
|
|
offset_right = 279.0
|
|
grow_vertical = 0
|
|
theme_override_constants/line_spacing = -30
|
|
theme_override_fonts/font = ExtResource("2_0a4qt")
|
|
theme_override_font_sizes/font_size = 50
|
|
text = "2 Quares
|
|
1 Exagon"
|
|
|
|
[node name="Stopwatch" type="Label" parent="UI"]
|
|
layout_mode = 1
|
|
anchors_preset = 1
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
offset_left = -268.0
|
|
offset_top = 22.0
|
|
offset_right = -33.0
|
|
offset_bottom = 159.0
|
|
grow_horizontal = 0
|
|
theme_override_fonts/font = ExtResource("2_0a4qt")
|
|
theme_override_font_sizes/font_size = 50
|
|
text = "10:00.24"
|
|
script = ExtResource("13_xhnp2")
|
|
|
|
[node name="GameOver" type="Label" parent="."]
|
|
visible = false
|
|
z_index = 100
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_right = 1920.0
|
|
offset_bottom = 1080.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 4
|
|
theme_override_fonts/font = ExtResource("2_0a4qt")
|
|
theme_override_font_sizes/font_size = 200
|
|
text = "Game Over!"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="GameOver"]
|
|
z_index = -1
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0, 0, 0, 0.372549)
|
|
|
|
[node name="GameOver" type="Label" parent="GameOver"]
|
|
z_index = 100
|
|
layout_mode = 1
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = -293.0
|
|
offset_top = -147.0
|
|
offset_right = 293.0
|
|
offset_bottom = -37.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
theme_override_fonts/font = ExtResource("2_0a4qt")
|
|
theme_override_font_sizes/font_size = 60
|
|
text = "Press R to Restart"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="Leaderboard" type="Label" parent="GameOver" node_paths=PackedStringArray("stopwatch")]
|
|
layout_mode = 1
|
|
anchors_preset = 14
|
|
anchor_top = 0.5
|
|
anchor_right = 1.0
|
|
anchor_bottom = 0.5
|
|
offset_top = -217.0
|
|
offset_bottom = 255.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_fonts/font = ExtResource("2_0a4qt")
|
|
theme_override_font_sizes/font_size = 50
|
|
text = "
|
|
Loading Leaderboard..."
|
|
horizontal_alignment = 1
|
|
script = ExtResource("14_v1elq")
|
|
stopwatch = NodePath("../../UI/Stopwatch")
|
|
|
|
[node name="HTTPRequest" type="HTTPRequest" parent="GameOver/Leaderboard"]
|
|
|
|
[node name="CollisionCheck" type="ShapeCast2D" parent="."]
|
|
shape = SubResource("CircleShape2D_bmvvy")
|
|
target_position = Vector2(2.08165e-12, 2.08165e-12)
|
|
collision_mask = 3
|
|
script = ExtResource("11_ryeyk")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="CollisionCheck"]
|
|
visible = false
|
|
self_modulate = Color(1, 0, 0, 0.356863)
|
|
clip_children = 1
|
|
scale = Vector2(0.35, 0.35)
|
|
texture = ExtResource("13_318fy")
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="CollisionCheck/Sprite2D"]
|
|
offset_left = -288.0
|
|
offset_top = -288.0
|
|
offset_right = -32.0
|
|
offset_bottom = -248.0
|
|
scale = Vector2(2.19999, 15.1168)
|
|
texture = SubResource("GradientTexture1D_cygyn")
|
|
|
|
[node name="Notification" type="Label" parent="."]
|
|
modulate = Color(1, 1, 1, 0)
|
|
clip_children = 1
|
|
anchors_preset = 7
|
|
anchor_left = 0.5
|
|
anchor_top = 1.0
|
|
anchor_right = 0.5
|
|
anchor_bottom = 1.0
|
|
offset_left = 640.0
|
|
offset_top = 940.0
|
|
offset_right = 1280.0
|
|
offset_bottom = 963.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
theme_override_font_sizes/font_size = 100
|
|
text = "Too Crowded"
|
|
script = ExtResource("13_lkv81")
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Notification"]
|
|
layout_mode = 0
|
|
offset_right = 40.0
|
|
offset_bottom = 40.0
|
|
scale = Vector2(1, 3.12)
|
|
texture = SubResource("GradientTexture1D_ky2qs")
|
|
|
|
[connection signal="timeout" from="Spawner/Timer" to="Spawner" method="spawn"]
|
|
[connection signal="timeout" from="Spawner2/Timer" to="Spawner2" method="spawn"]
|
|
[connection signal="timeout" from="Spawner3/Timer" to="Spawner3" method="spawn"]
|
|
[connection signal="visibility_changed" from="GameOver/Leaderboard" to="GameOver/Leaderboard" method="submit_score"]
|