diff options
43 files changed, 951 insertions, 991 deletions
@@ -1,4 +1,5 @@ # Godot Engine +.godot/ .import/ export.cfg export_presets.cfg diff --git a/desksmashers.svg.import b/desksmashers.svg.import index 0fa0322..9b066e4 100644 --- a/desksmashers.svg.import +++ b/desksmashers.svg.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/desksmashers.svg-542cbb9a482f76be692d1aefda640a70.stex" +type="CompressedTexture2D" +uid="uid://dgsdw4qwxxevv" +path="res://.godot/imported/desksmashers.svg-542cbb9a482f76be692d1aefda640a70.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,27 @@ metadata={ [deps] source_file="res://desksmashers.svg" -dest_files=[ "res://.import/desksmashers.svg-542cbb9a482f76be692d1aefda640a70.stex" ] +dest_files=["res://.godot/imported/desksmashers.svg-542cbb9a482f76be692d1aefda640a70.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=true -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=true +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/project.godot b/project.godot index aa5f2ed..0f0620a 100644 --- a/project.godot +++ b/project.godot @@ -6,12 +6,14 @@ ; [section] ; section goes between [] ; param=value ; assign values to parameters -config_version=4 +config_version=5 [application] config/name="BasketBALLAZ" run/main_scene="res://scenes/level.tscn" +config/features=PackedStringArray("4.0") +run/max_fps=165 config/icon="res://textures/basketball.png" [autoload] @@ -21,17 +23,18 @@ Audio="*res://scenes/audio.tscn" [display] -window/size/width=214 -window/size/height=120 -window/size/test_width=1070 -window/size/test_height=600 -window/stretch/mode="2d" +window/size/viewport_width=214 +window/size/viewport_height=120 +window/size/window_width_override=1070 +window/size/window_height_override=600 +window/stretch/mode="canvas_items" window/stretch/aspect="expand" +window/vsync/vsync_mode=0 [gui] -common/drop_mouse_on_gui_input_disabled=true theme/custom_font="res://theme_data/font.tres" +common/drop_mouse_on_gui_input_disabled=true [importer_defaults] @@ -61,16 +64,20 @@ texture={ shoot={ "deadzone": 0.5, -"events": [ Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"button_mask":0,"position":Vector2( 0, 0 ),"global_position":Vector2( 0, 0 ),"factor":1.0,"button_index":1,"pressed":false,"doubleclick":false,"script":null) - ] +"events": [Object(InputEventMouseButton,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"button_mask":0,"position":Vector2(0, 0),"global_position":Vector2(0, 0),"factor":1.0,"button_index":1,"pressed":false,"double_click":false,"script":null) +] } escape={ "deadzone": 0.5, -"events": [ Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"alt":false,"shift":false,"control":false,"meta":false,"command":false,"pressed":false,"scancode":16777217,"physical_scancode":0,"unicode":0,"echo":false,"script":null) - ] +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194305,"physical_keycode":0,"key_label":0,"unicode":0,"echo":false,"script":null) +] } [physics] -common/enable_pause_aware_picking=true 2d/default_gravity=196 +common/enable_pause_aware_picking=true + +[rendering] + +textures/canvas_textures/default_texture_filter=0 diff --git a/scenes/audio.tscn b/scenes/audio.tscn index 1ac82eb..0c43644 100644 --- a/scenes/audio.tscn +++ b/scenes/audio.tscn @@ -1,11 +1,11 @@ -[gd_scene load_steps=2 format=2] +[gd_scene load_steps=2 format=3 uid="uid://ckf344kaw3ak6"] -[ext_resource path="res://sound/unused_music.ogg" type="AudioStream" id=1] +[ext_resource type="AudioStream" uid="uid://cx0oukrbd2e4e" path="res://sound/unused_music.ogg" id="1"] [node name="Audio" type="Node"] -pause_mode = 2 +process_mode = 3 [node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."] -stream = ExtResource( 1 ) +stream = ExtResource("1") volume_db = -20.0 -bus = "Music" +bus = &"Music" diff --git a/scenes/basketball.tscn b/scenes/basketball.tscn index f6b01b3..70f9ac8 100644 --- a/scenes/basketball.tscn +++ b/scenes/basketball.tscn @@ -1,43 +1,40 @@ -[gd_scene load_steps=6 format=2] +[gd_scene load_steps=6 format=3 uid="uid://dnb0otlc0mnc5"] -[ext_resource path="res://textures/basketball.png" type="Texture" id=1] -[ext_resource path="res://scripts/basketball.gd" type="Script" id=2] -[ext_resource path="res://textures/release_indicator.png" type="Texture" id=3] +[ext_resource type="Script" path="res://scripts/basketball.gd" id="2"] +[ext_resource type="Texture2D" uid="uid://cxj2d4xkponp3" path="res://textures/basketball.png" id="2_naarc"] +[ext_resource type="Texture2D" uid="uid://bvt8l7s2qeplp" path="res://textures/release_indicator.png" id="3_ihdpi"] -[sub_resource type="PhysicsMaterial" id=2] +[sub_resource type="PhysicsMaterial" id="2"] bounce = 0.65 -[sub_resource type="CircleShape2D" id=1] +[sub_resource type="CircleShape2D" id="1"] radius = 8.0 [node name="Basketball" type="RigidBody2D"] -physics_material_override = SubResource( 2 ) -script = ExtResource( 2 ) -__meta__ = { -"_edit_group_": true -} +physics_material_override = SubResource("2") +script = ExtResource("2") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] -shape = SubResource( 1 ) +shape = SubResource("1") -[node name="GhostSprite" type="Sprite" parent="."] +[node name="GhostSprite" type="Sprite2D" parent="."] visible = false -modulate = Color( 1, 1, 1, 0.494118 ) -texture = ExtResource( 1 ) +modulate = Color(1, 1, 1, 0.494118) +texture = ExtResource("2_naarc") -[node name="Sprite" type="Sprite" parent="."] -texture = ExtResource( 1 ) +[node name="Sprite2D" type="Sprite2D" parent="."] +texture = ExtResource("2_naarc") [node name="InnerShape" type="Area2D" parent="."] [node name="CollisionShape2D2" type="CollisionShape2D" parent="InnerShape"] -shape = SubResource( 1 ) +shape = SubResource("1") -[node name="ReleaseIndicator" type="Sprite" parent="."] +[node name="ReleaseIndicator" type="Sprite2D" parent="."] visible = false -modulate = Color( 1, 1, 1, 0.498039 ) -texture = ExtResource( 3 ) -offset = Vector2( 0, -2 ) +modulate = Color(1, 1, 1, 0.498039) +texture = ExtResource("3_ihdpi") +offset = Vector2(0, -2) [connection signal="mouse_entered" from="InnerShape" to="." method="_on_InnerShape_mouse_entered"] [connection signal="mouse_exited" from="InnerShape" to="." method="_on_InnerShape_mouse_exited"] diff --git a/scenes/hoop.tscn b/scenes/hoop.tscn index 5463a18..7183d85 100644 --- a/scenes/hoop.tscn +++ b/scenes/hoop.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=6 format=2] -[ext_resource path="res://textures/hoop_fore.png" type="Texture" id=1] -[ext_resource path="res://textures/hoop_back.png" type="Texture" id=2] +[ext_resource path="res://textures/hoop_fore.png" type="Texture2D" id=1] +[ext_resource path="res://textures/hoop_back.png" type="Texture2D" id=2] [ext_resource path="res://scripts/hoop.gd" type="Script" id=3] [sub_resource type="SegmentShape2D" id=1] @@ -9,17 +9,17 @@ a = Vector2( 5.8, -12.4 ) b = Vector2( -4.6, 11.4 ) [sub_resource type="RectangleShape2D" id=2] -extents = Vector2( 6.3, 0.55 ) +size = Vector2( 6.3, 0.55 ) [node name="Hoop" type="StaticBody2D"] script = ExtResource( 3 ) -[node name="BackgroundSprite" type="Sprite" parent="."] +[node name="BackgroundSprite" type="Sprite2D" parent="."] light_mask = 4 z_index = -1 texture = ExtResource( 2 ) -[node name="ForegroundSprite" type="Sprite" parent="."] +[node name="ForegroundSprite" type="Sprite2D" parent="."] position = Vector2( -12, 16 ) z_index = 1 texture = ExtResource( 1 ) @@ -32,7 +32,7 @@ shape = SubResource( 1 ) position = Vector2( -21.8, 6.6 ) rotation = 0.546288 scale = Vector2( 0.5, 1 ) -polygon = PoolVector2Array( 0.762794, -5.14728, 5.32917, 3.9975, 2.25312, 4.93263, -3.35769, 0.318554 ) +polygon = PackedVector2Array( 0.762794, -5.14728, 5.32917, 3.9975, 2.25312, 4.93263, -3.35769, 0.318554 ) [node name="Area2D" type="Area2D" parent="."] @@ -43,7 +43,7 @@ shape = SubResource( 2 ) [node name="CollisionPolygon2D2" type="CollisionPolygon2D" parent="."] position = Vector2( -12.5, 14.4 ) rotation = 3.14159 -polygon = PoolVector2Array( 10.9, 3.20002, -11.1, 3.19997, -8.49998, -3.60003, 7.50002, -3.59999 ) +polygon = PackedVector2Array( 10.9, 3.20002, -11.1, 3.19997, -8.49998, -3.60003, 7.50002, -3.59999 ) one_way_collision = true [connection signal="body_exited" from="Area2D" to="." method="_on_Area2D_body_exited"] diff --git a/scenes/interface.tscn b/scenes/interface.tscn index 23aeb44..ed21f96 100644 --- a/scenes/interface.tscn +++ b/scenes/interface.tscn @@ -1,219 +1,225 @@ -[gd_scene load_steps=7 format=2] +[gd_scene load_steps=8 format=3 uid="uid://cixqgc85i5wnn"] -[ext_resource path="res://scenes/pausemenu.tscn" type="PackedScene" id=1] -[ext_resource path="res://textures/hourglass.png" type="Texture" id=2] -[ext_resource path="res://scripts/interface.gd" type="Script" id=3] -[ext_resource path="res://theme_data/interface_theme.tres" type="Theme" id=4] +[ext_resource type="PackedScene" uid="uid://dgeurb05rmq88" path="res://scenes/pausemenu.tscn" id="1"] +[ext_resource type="Texture2D" uid="uid://c5w410bewcnh5" path="res://textures/hourglass.png" id="2"] +[ext_resource type="Script" path="res://scripts/interface.gd" id="3"] +[ext_resource type="Theme" uid="uid://2jc1rrh032m0" path="res://theme_data/interface_theme.tres" id="4"] -[sub_resource type="Animation" id=1] +[sub_resource type="Animation" id="1"] length = 0.001 tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true tracks/0/path = NodePath(".:visible") tracks/0/interp = 1 tracks/0/loop_wrap = true -tracks/0/imported = false -tracks/0/enabled = true tracks/0/keys = { -"times": PoolRealArray( 0 ), -"transitions": PoolRealArray( 1 ), +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), "update": 0, -"values": [ false ] +"values": [false] } tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true tracks/1/path = NodePath("../ChangeLabel:visible") tracks/1/interp = 1 tracks/1/loop_wrap = true -tracks/1/imported = false -tracks/1/enabled = true tracks/1/keys = { -"times": PoolRealArray( 0 ), -"transitions": PoolRealArray( 1 ), +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), "update": 0, -"values": [ false ] +"values": [false] } tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true tracks/2/path = NodePath("../ChangeLabel:modulate") tracks/2/interp = 1 tracks/2/loop_wrap = true -tracks/2/imported = false -tracks/2/enabled = true tracks/2/keys = { -"times": PoolRealArray( 0 ), -"transitions": PoolRealArray( 1 ), +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), "update": 0, -"values": [ Color( 1, 1, 1, 1 ) ] +"values": [Color(1, 1, 1, 1)] } tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true tracks/3/path = NodePath(".:modulate") tracks/3/interp = 1 tracks/3/loop_wrap = true -tracks/3/imported = false -tracks/3/enabled = true tracks/3/keys = { -"times": PoolRealArray( 0 ), -"transitions": PoolRealArray( 1 ), +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), "update": 0, -"values": [ Color( 1, 1, 1, 1 ) ] +"values": [Color(1, 1, 1, 1)] } -[sub_resource type="Animation" id=2] +[sub_resource type="Animation" id="2"] resource_name = "blinking" length = 4.0 tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true tracks/0/path = NodePath(".:visible") tracks/0/interp = 1 tracks/0/loop_wrap = true -tracks/0/imported = false -tracks/0/enabled = true tracks/0/keys = { -"times": PoolRealArray( 0, 3 ), -"transitions": PoolRealArray( 1, 1 ), +"times": PackedFloat32Array(0, 3), +"transitions": PackedFloat32Array(1, 1), "update": 1, -"values": [ true, false ] +"values": [true, false] } tracks/1/type = "value" +tracks/1/imported = false +tracks/1/enabled = true tracks/1/path = NodePath("../ChangeLabel:visible") tracks/1/interp = 1 tracks/1/loop_wrap = true -tracks/1/imported = false -tracks/1/enabled = true tracks/1/keys = { -"times": PoolRealArray( 0, 3 ), -"transitions": PoolRealArray( 1, 1 ), +"times": PackedFloat32Array(0, 3), +"transitions": PackedFloat32Array(1, 1), "update": 1, -"values": [ true, false ] +"values": [true, false] } tracks/2/type = "value" +tracks/2/imported = false +tracks/2/enabled = true tracks/2/path = NodePath("../ChangeLabel:modulate") tracks/2/interp = 1 tracks/2/loop_wrap = true -tracks/2/imported = false -tracks/2/enabled = true tracks/2/keys = { -"times": PoolRealArray( 0, 0.5, 1, 1.5, 2, 2.5, 3 ), -"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1 ), +"times": PackedFloat32Array(0, 0.5, 1, 1.5, 2, 2.5, 3), +"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1), "update": 0, -"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ] +"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0)] } tracks/3/type = "value" +tracks/3/imported = false +tracks/3/enabled = true tracks/3/path = NodePath(".:modulate") tracks/3/interp = 1 tracks/3/loop_wrap = true -tracks/3/imported = false -tracks/3/enabled = true tracks/3/keys = { -"times": PoolRealArray( 0, 0.5, 2.5, 3 ), -"transitions": PoolRealArray( 1, 1, 1, 1 ), +"times": PackedFloat32Array(0, 0.5, 2.5, 3), +"transitions": PackedFloat32Array(1, 1, 1, 1), "update": 0, -"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ] +"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 1), Color(1, 1, 1, 0)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_fobnn"] +_data = { +"RESET": SubResource("1"), +"blinking": SubResource("2") } [node name="Interface" type="CanvasLayer"] -script = ExtResource( 3 ) +script = ExtResource("3") [node name="TimerLabel" type="Label" parent="."] +anchors_preset = 3 anchor_left = 1.0 anchor_top = 1.0 anchor_right = 1.0 anchor_bottom = 1.0 -margin_left = -22.0 -margin_top = -15.0 -margin_right = 2.00002 -margin_bottom = 1.00001 -rect_scale = Vector2( 0.8, 0.8 ) -theme = ExtResource( 4 ) +offset_left = -22.0 +offset_top = -15.0 +offset_right = 2.00002 +offset_bottom = 1.00001 +scale = Vector2(0.8, 0.8) +theme = ExtResource("4") text = "000" -align = 2 -__meta__ = { -"_edit_use_anchors_": true -} -[node name="Sprite" type="Sprite" parent="TimerLabel"] -position = Vector2( -4.99998, 8.75 ) -texture = ExtResource( 2 ) +[node name="Sprite2D" type="Sprite2D" parent="TimerLabel"] +position = Vector2(-4.99998, 8.75) +texture = ExtResource("2") [node name="ScoreLabel" type="Label" parent="."] -margin_top = -2.0 -margin_right = 48.0 -margin_bottom = 14.0 -rect_scale = Vector2( 0.8, 0.8 ) -theme = ExtResource( 4 ) +offset_top = -2.0 +offset_right = 48.0 +offset_bottom = 14.0 +scale = Vector2(0.8, 0.8) +theme = ExtResource("4") text = "Score:" [node name="Timer" type="Timer" parent="."] [node name="LoseLabel" type="Label" parent="."] visible = false +anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -margin_left = -107.0 -margin_top = -20.0 -margin_right = 107.0 -margin_bottom = 20.0 -theme = ExtResource( 4 ) +offset_left = -107.0 +offset_top = -20.0 +offset_right = 107.0 +offset_bottom = 20.0 +theme = ExtResource("4") text = "YOU RAN OUT OF TIME! RESTART?" -align = 1 +horizontal_alignment = 1 [node name="Difficulty" type="Control" parent="."] +layout_mode = 3 +anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -margin_left = -20.0 -margin_top = -20.0 -margin_right = 20.0 -margin_bottom = 20.0 +offset_left = -20.0 +offset_top = -20.0 +offset_right = 20.0 +offset_bottom = 20.0 +grow_horizontal = 2 +grow_vertical = 2 mouse_filter = 2 [node name="AnimationPlayer" type="AnimationPlayer" parent="Difficulty"] root_node = NodePath("../MessageLabel") -anims/RESET = SubResource( 1 ) -anims/blinking = SubResource( 2 ) +libraries = { +"": SubResource("AnimationLibrary_fobnn") +} [node name="MessageLabel" type="Label" parent="Difficulty"] visible = false +layout_mode = 0 anchor_left = 0.5 anchor_right = 0.5 -margin_left = -107.0 -margin_right = 107.0 -margin_bottom = 16.0 -theme = ExtResource( 4 ) +offset_left = -107.0 +offset_right = 107.0 +offset_bottom = 16.0 +theme = ExtResource("4") text = "DIFFICULT PHASE CHANGED:" -align = 1 +horizontal_alignment = 1 [node name="ChangeLabel" type="Label" parent="Difficulty"] visible = false +layout_mode = 0 anchor_left = 0.5 anchor_top = 1.0 anchor_right = 0.5 anchor_bottom = 1.0 -margin_left = -107.0 -margin_top = -28.0 -margin_right = 107.0 -margin_bottom = -12.0 -custom_colors/font_color_shadow = Color( 0.788235, 0.0823529, 0.0823529, 1 ) +offset_left = -107.0 +offset_top = -28.0 +offset_right = 107.0 +offset_bottom = -12.0 text = "TEST" -align = 1 +horizontal_alignment = 1 [node name="PhaseLabel" type="Label" parent="."] +anchors_preset = 2 anchor_top = 1.0 anchor_bottom = 1.0 -margin_top = -8.0 -margin_right = 88.0 -margin_bottom = 8.0 -rect_scale = Vector2( 0.5, 0.5 ) -theme = ExtResource( 4 ) +offset_top = -8.0 +offset_right = 88.0 +offset_bottom = 8.0 +scale = Vector2(0.5, 0.5) +theme = ExtResource("4") text = "Next Phase: " -[node name="PauseMenu" parent="." instance=ExtResource( 1 )] -pause_mode = 2 +[node name="PauseMenu" parent="." instance=ExtResource("1")] visible = false -anchor_right = 1.0 -anchor_bottom = 1.0 -margin_right = 0.0 -margin_bottom = 0.0 [connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"] diff --git a/scenes/leaderboard.tscn b/scenes/leaderboard.tscn index e71a790..ee9e1a4 100644 --- a/scenes/leaderboard.tscn +++ b/scenes/leaderboard.tscn @@ -1,371 +1,296 @@ -[gd_scene load_steps=7 format=2] +[gd_scene load_steps=7 format=3 uid="uid://kgod8xnsqa7w"] -[ext_resource path="res://theme_data/interface_theme.tres" type="Theme" id=1] -[ext_resource path="res://scripts/leaderboard.gd" type="Script" id=2] -[ext_resource path="res://textures/retry.png" type="Texture" id=3] -[ext_resource path="res://textures/quit_hover.png" type="Texture" id=4] -[ext_resource path="res://textures/retry_hover.png" type="Texture" id=5] -[ext_resource path="res://textures/quit.png" type="Texture" id=6] +[ext_resource type="Theme" uid="uid://2jc1rrh032m0" path="res://theme_data/interface_theme.tres" id="1"] +[ext_resource type="Script" path="res://scripts/leaderboard.gd" id="2"] +[ext_resource type="Texture2D" uid="uid://byumgtet2e552" path="res://textures/retry.png" id="3"] +[ext_resource type="Texture2D" uid="uid://c1fq67yw20je5" path="res://textures/quit_hover.png" id="4"] +[ext_resource type="Texture2D" uid="uid://cyk45edx4rokj" path="res://textures/retry_hover.png" id="5"] +[ext_resource type="Texture2D" uid="uid://cvwyjpoqfsdc4" path="res://textures/quit.png" id="6"] [node name="Leaderboard" type="Control"] +layout_mode = 3 +anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 -theme = ExtResource( 1 ) -script = ExtResource( 2 ) +grow_horizontal = 2 +grow_vertical = 2 +theme = ExtResource("1") +script = ExtResource("2") [node name="Panel" type="Panel" parent="."] +layout_mode = 1 +anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 [node name="GridContainer" type="GridContainer" parent="."] +layout_mode = 1 +anchors_preset = 4 anchor_top = 0.5 anchor_bottom = 0.5 -margin_left = 5.0 -margin_top = -54.0 -margin_right = 125.0 -margin_bottom = 162.0 -rect_scale = Vector2( 0.5, 0.5 ) +offset_left = 4.0 +offset_top = -112.0 +offset_right = 124.0 +offset_bottom = 114.0 +grow_vertical = 2 +scale = Vector2(0.5, 0.5) +pivot_offset = Vector2(0, 112) +size_flags_horizontal = 0 columns = 2 [node name="NamePanel1" type="PanelContainer" parent="GridContainer"] -margin_right = 90.0 -margin_bottom = 18.0 -rect_min_size = Vector2( 90, 0 ) +custom_minimum_size = Vector2(90, 0) +layout_mode = 2 [node name="Name" type="Label" parent="GridContainer/NamePanel1"] -margin_left = 5.0 -margin_right = 85.0 -margin_bottom = 16.0 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +layout_mode = 2 text = "Name" +vertical_alignment = 1 [node name="ScorePanel1" type="PanelContainer" parent="GridContainer"] -margin_left = 94.0 -margin_right = 120.0 -margin_bottom = 18.0 +layout_mode = 2 [node name="Score" type="Label" parent="GridContainer/ScorePanel1"] -margin_left = 5.0 -margin_right = 21.0 -margin_bottom = 16.0 +layout_mode = 2 size_flags_horizontal = 6 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) text = "00" +vertical_alignment = 1 [node name="NamePanel2" type="PanelContainer" parent="GridContainer"] -margin_top = 22.0 -margin_right = 90.0 -margin_bottom = 40.0 -rect_min_size = Vector2( 90, 0 ) +custom_minimum_size = Vector2(90, 0) +layout_mode = 2 [node name="Name" type="Label" parent="GridContainer/NamePanel2"] -margin_left = 5.0 -margin_right = 85.0 -margin_bottom = 16.0 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +layout_mode = 2 text = "Name" +vertical_alignment = 1 [node name="ScorePanel2" type="PanelContainer" parent="GridContainer"] -margin_left = 94.0 -margin_top = 22.0 -margin_right = 120.0 -margin_bottom = 40.0 +layout_mode = 2 [node name="Score" type="Label" parent="GridContainer/ScorePanel2"] -margin_left = 5.0 -margin_right = 21.0 -margin_bottom = 16.0 +layout_mode = 2 size_flags_horizontal = 6 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) text = "00" +vertical_alignment = 1 [node name="NamePanel3" type="PanelContainer" parent="GridContainer"] -margin_top = 44.0 -margin_right = 90.0 -margin_bottom = 62.0 -rect_min_size = Vector2( 90, 0 ) +custom_minimum_size = Vector2(90, 0) +layout_mode = 2 [node name="Name" type="Label" parent="GridContainer/NamePanel3"] -margin_left = 5.0 -margin_right = 85.0 -margin_bottom = 16.0 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +layout_mode = 2 text = "Name" +vertical_alignment = 1 [node name="ScorePanel3" type="PanelContainer" parent="GridContainer"] -margin_left = 94.0 -margin_top = 44.0 -margin_right = 120.0 -margin_bottom = 62.0 +layout_mode = 2 [node name="Score" type="Label" parent="GridContainer/ScorePanel3"] -margin_left = 5.0 -margin_right = 21.0 -margin_bottom = 16.0 +layout_mode = 2 size_flags_horizontal = 6 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) text = "00" +vertical_alignment = 1 [node name="NamePanel4" type="PanelContainer" parent="GridContainer"] -margin_top = 66.0 -margin_right = 90.0 -margin_bottom = 84.0 -rect_min_size = Vector2( 90, 0 ) +custom_minimum_size = Vector2(90, 0) +layout_mode = 2 [node name="Name" type="Label" parent="GridContainer/NamePanel4"] -margin_left = 5.0 -margin_right = 85.0 -margin_bottom = 16.0 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +layout_mode = 2 text = "Name" +vertical_alignment = 1 [node name="ScorePanel4" type="PanelContainer" parent="GridContainer"] -margin_left = 94.0 -margin_top = 66.0 -margin_right = 120.0 -margin_bottom = 84.0 +layout_mode = 2 [node name="Score" type="Label" parent="GridContainer/ScorePanel4"] -margin_left = 5.0 -margin_right = 21.0 -margin_bottom = 16.0 +layout_mode = 2 size_flags_horizontal = 6 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) text = "00" +vertical_alignment = 1 [node name="NamePanel5" type="PanelContainer" parent="GridContainer"] -margin_top = 88.0 -margin_right = 90.0 -margin_bottom = 106.0 -rect_min_size = Vector2( 90, 0 ) +custom_minimum_size = Vector2(90, 0) +layout_mode = 2 [node name="Name" type="Label" parent="GridContainer/NamePanel5"] -margin_left = 5.0 -margin_right = 85.0 -margin_bottom = 16.0 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +layout_mode = 2 text = "Name" +vertical_alignment = 1 [node name="ScorePanel5" type="PanelContainer" parent="GridContainer"] -margin_left = 94.0 -margin_top = 88.0 -margin_right = 120.0 -margin_bottom = 106.0 +layout_mode = 2 [node name="Score" type="Label" parent="GridContainer/ScorePanel5"] -margin_left = 5.0 -margin_right = 21.0 -margin_bottom = 16.0 +layout_mode = 2 size_flags_horizontal = 6 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) text = "00" +vertical_alignment = 1 [node name="NamePanel6" type="PanelContainer" parent="GridContainer"] -margin_top = 110.0 -margin_right = 90.0 -margin_bottom = 128.0 -rect_min_size = Vector2( 90, 0 ) +custom_minimum_size = Vector2(90, 0) +layout_mode = 2 [node name="Name" type="Label" parent="GridContainer/NamePanel6"] -margin_left = 5.0 -margin_right = 85.0 -margin_bottom = 16.0 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +layout_mode = 2 text = "Name" +vertical_alignment = 1 [node name="ScorePanel6" type="PanelContainer" parent="GridContainer"] -margin_left = 94.0 -margin_top = 110.0 -margin_right = 120.0 -margin_bottom = 128.0 +layout_mode = 2 [node name="Score" type="Label" parent="GridContainer/ScorePanel6"] -margin_left = 5.0 -margin_right = 21.0 -margin_bottom = 16.0 +layout_mode = 2 size_flags_horizontal = 6 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) text = "00" +vertical_alignment = 1 [node name="NamePanel7" type="PanelContainer" parent="GridContainer"] -margin_top = 132.0 -margin_right = 90.0 -margin_bottom = 150.0 -rect_min_size = Vector2( 90, 0 ) +custom_minimum_size = Vector2(90, 0) +layout_mode = 2 [node name="Name" type="Label" parent="GridContainer/NamePanel7"] -margin_left = 5.0 -margin_right = 85.0 -margin_bottom = 16.0 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +layout_mode = 2 text = "Name" +vertical_alignment = 1 [node name="ScorePanel7" type="PanelContainer" parent="GridContainer"] -margin_left = 94.0 -margin_top = 132.0 -margin_right = 120.0 -margin_bottom = 150.0 +layout_mode = 2 [node name="Score" type="Label" parent="GridContainer/ScorePanel7"] -margin_left = 5.0 -margin_right = 21.0 -margin_bottom = 16.0 +layout_mode = 2 size_flags_horizontal = 6 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) text = "00" +vertical_alignment = 1 [node name="NamePanel8" type="PanelContainer" parent="GridContainer"] -margin_top = 154.0 -margin_right = 90.0 -margin_bottom = 172.0 -rect_min_size = Vector2( 90, 0 ) +custom_minimum_size = Vector2(90, 0) +layout_mode = 2 [node name="Name" type="Label" parent="GridContainer/NamePanel8"] -margin_left = 5.0 -margin_right = 85.0 -margin_bottom = 16.0 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +layout_mode = 2 text = "Name" +vertical_alignment = 1 [node name="ScorePanel8" type="PanelContainer" parent="GridContainer"] -margin_left = 94.0 -margin_top = 154.0 -margin_right = 120.0 -margin_bottom = 172.0 +layout_mode = 2 [node name="Score" type="Label" parent="GridContainer/ScorePanel8"] -margin_left = 5.0 -margin_right = 21.0 -margin_bottom = 16.0 +layout_mode = 2 size_flags_horizontal = 6 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) text = "00" +vertical_alignment = 1 [node name="NamePanel9" type="PanelContainer" parent="GridContainer"] -margin_top = 176.0 -margin_right = 90.0 -margin_bottom = 194.0 -rect_min_size = Vector2( 90, 0 ) +custom_minimum_size = Vector2(90, 0) +layout_mode = 2 [node name="Name" type="Label" parent="GridContainer/NamePanel9"] -margin_left = 5.0 -margin_right = 85.0 -margin_bottom = 16.0 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +layout_mode = 2 text = "Name" +vertical_alignment = 1 [node name="ScorePanel9" type="PanelContainer" parent="GridContainer"] -margin_left = 94.0 -margin_top = 176.0 -margin_right = 120.0 -margin_bottom = 194.0 +layout_mode = 2 [node name="Score" type="Label" parent="GridContainer/ScorePanel9"] -margin_left = 5.0 -margin_right = 21.0 -margin_bottom = 16.0 +layout_mode = 2 size_flags_horizontal = 6 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) text = "00" +vertical_alignment = 1 [node name="NamePanel10" type="PanelContainer" parent="GridContainer"] -margin_top = 198.0 -margin_right = 90.0 -margin_bottom = 216.0 -rect_min_size = Vector2( 90, 0 ) +custom_minimum_size = Vector2(90, 0) +layout_mode = 2 [node name="Name" type="Label" parent="GridContainer/NamePanel10"] -margin_left = 5.0 -margin_right = 85.0 -margin_bottom = 16.0 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) +layout_mode = 2 text = "Name" +vertical_alignment = 1 [node name="ScorePanel10" type="PanelContainer" parent="GridContainer"] -margin_left = 94.0 -margin_top = 198.0 -margin_right = 120.0 -margin_bottom = 216.0 +layout_mode = 2 [node name="Score" type="Label" parent="GridContainer/ScorePanel10"] -margin_left = 5.0 -margin_right = 21.0 -margin_bottom = 16.0 +layout_mode = 2 size_flags_horizontal = 6 -custom_colors/font_color_shadow = Color( 0, 0, 0, 0 ) text = "00" +vertical_alignment = 1 [node name="Control" type="Control" parent="."] +anchors_preset = 0 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -margin_left = -107.0 -margin_top = -60.0 -margin_right = 107.0 -margin_bottom = 60.0 +offset_left = -107.0 +offset_top = -60.0 +offset_right = 107.0 +offset_bottom = 60.0 [node name="Label" type="Label" parent="Control"] +layout_mode = 0 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -margin_left = -13.0 -margin_top = -54.0 -margin_right = 75.0 -margin_bottom = -19.0 +offset_left = -13.0 +offset_top = -54.0 +offset_right = 75.0 +offset_bottom = -19.0 text = "Your Score: 00" -align = 1 +horizontal_alignment = 1 [node name="HBoxContainer" type="HBoxContainer" parent="Control"] +layout_mode = 0 anchor_left = 1.0 anchor_top = 0.5 anchor_right = 1.0 anchor_bottom = 0.5 -margin_left = -40.0 -margin_top = 40.0 -margin_right = -4.0 -margin_bottom = 56.0 +offset_left = -40.0 +offset_top = 40.0 +offset_right = -4.0 +offset_bottom = 56.0 [node name="RestartButton" type="TextureButton" parent="Control/HBoxContainer"] -margin_right = 16.0 -margin_bottom = 16.0 -focus_mode = 0 +layout_mode = 2 size_flags_horizontal = 10 -enabled_focus_mode = 0 -texture_normal = ExtResource( 3 ) -texture_hover = ExtResource( 5 ) +focus_mode = 0 +texture_normal = ExtResource("3") +texture_hover = ExtResource("5") [node name="QuitButton" type="TextureButton" parent="Control/HBoxContainer"] -margin_left = 20.0 -margin_right = 36.0 -margin_bottom = 16.0 -focus_mode = 0 +layout_mode = 2 size_flags_horizontal = 10 -enabled_focus_mode = 0 -texture_normal = ExtResource( 6 ) -texture_hover = ExtResource( 4 ) +focus_mode = 0 +texture_normal = ExtResource("6") +texture_hover = ExtResource("4") [node name="LineEdit" type="LineEdit" parent="Control"] -margin_left = 100.0 -margin_top = 101.0 -margin_right = 185.0 -margin_bottom = 119.0 -rect_scale = Vector2( 0.8, 0.8 ) -align = 1 +layout_mode = 0 +offset_left = 100.0 +offset_top = 101.0 +offset_right = 185.0 +offset_bottom = 119.0 +scale = Vector2(0.8, 0.8) +placeholder_text = "ENTER NAME" +alignment = 1 max_length = 10 context_menu_enabled = false shortcut_keys_enabled = false middle_mouse_paste_enabled = false -placeholder_text = "ENTER NAME" [node name="Button" type="Button" parent="Control"] -margin_left = 170.0 -margin_top = 101.0 -margin_right = 220.0 -margin_bottom = 119.0 -rect_scale = Vector2( 0.8, 0.8 ) +layout_mode = 0 +offset_left = 170.0 +offset_top = 101.0 +offset_right = 220.0 +offset_bottom = 119.0 +scale = Vector2(0.8, 0.8) text = "Submit" [connection signal="pressed" from="Control/HBoxContainer/RestartButton" to="." method="_on_RestartButton_pressed"] diff --git a/scenes/level.tscn b/scenes/level.tscn index 43f5689..91f685f 100644 --- a/scenes/level.tscn +++ b/scenes/level.tscn @@ -1,88 +1,85 @@ -[gd_scene load_steps=11 format=2] +[gd_scene load_steps=11 format=3 uid="uid://cdtc5xcoq0iun"] -[ext_resource path="res://textures/court_lines.png" type="Texture" id=1] -[ext_resource path="res://scenes/hoop.tscn" type="PackedScene" id=2] -[ext_resource path="res://scenes/basketball.tscn" type="PackedScene" id=3] -[ext_resource path="res://scenes/interface.tscn" type="PackedScene" id=4] -[ext_resource path="res://textures/court_tile.png" type="Texture" id=5] -[ext_resource path="res://scripts/camera.gd" type="Script" id=6] -[ext_resource path="res://scenes/audio.tscn" type="PackedScene" id=7] +[ext_resource type="PackedScene" path="res://scenes/hoop.tscn" id="2"] +[ext_resource type="PackedScene" uid="uid://dnb0otlc0mnc5" path="res://scenes/basketball.tscn" id="3"] +[ext_resource type="Texture2D" uid="uid://cw2d7vif3odgj" path="res://textures/court_lines.png" id="3_y2ldl"] +[ext_resource type="PackedScene" uid="uid://cixqgc85i5wnn" path="res://scenes/interface.tscn" id="4"] +[ext_resource type="Texture2D" uid="uid://bnptqq0g60r6q" path="res://textures/court_tile.png" id="4_pw3tr"] +[ext_resource type="Script" path="res://scripts/camera.gd" id="6"] +[ext_resource type="PackedScene" uid="uid://ckf344kaw3ak6" path="res://scenes/audio.tscn" id="7"] -[sub_resource type="LineShape2D" id=1] -d = 10.0 +[sub_resource type="WorldBoundaryShape2D" id="1"] -[sub_resource type="LineShape2D" id=2] -normal = Vector2( -1, 0 ) +[sub_resource type="WorldBoundaryShape2D" id="2"] +normal = Vector2(-1, 0) -[sub_resource type="LineShape2D" id=3] -normal = Vector2( 1, 0 ) +[sub_resource type="WorldBoundaryShape2D" id="3"] +normal = Vector2(1, 0) [node name="Node2D" type="Node2D"] [node name="Camera2D" type="Camera2D" parent="."] -position = Vector2( 123, 55 ) -current = true +position = Vector2(123, 55) limit_left = -202 limit_top = -202 limit_right = 214 limit_bottom = 120 -smoothing_enabled = true -smoothing_speed = 7.0 -script = ExtResource( 6 ) +position_smoothing_speed = 7.0 +script = ExtResource("6") -[node name="Interface" parent="." instance=ExtResource( 4 )] +[node name="Interface" parent="." instance=ExtResource("4")] [node name="Background" type="StaticBody2D" parent="."] z_index = -1 -[node name="CourtLines" type="Sprite" parent="Background"] -position = Vector2( 134, 56 ) -texture = ExtResource( 1 ) +[node name="CourtLines" type="Sprite2D" parent="Background"] +position = Vector2(134, 56) +texture = ExtResource("3_y2ldl") [node name="FloorCollider" type="CollisionShape2D" parent="Background"] -position = Vector2( 93, 113 ) -shape = SubResource( 1 ) +position = Vector2(93, 113) +shape = SubResource("1") [node name="CourtTile" type="TextureRect" parent="Background"] -margin_left = -202.0 -margin_top = -8.0 -margin_right = 55.0 -margin_bottom = 120.0 +offset_left = -202.0 +offset_top = -8.0 +offset_right = 55.0 +offset_bottom = 120.0 mouse_filter = 2 -texture = ExtResource( 5 ) -stretch_mode = 2 +texture = ExtResource("4_pw3tr") +stretch_mode = 1 [node name="RightWallCollider" type="CollisionShape2D" parent="Background"] -position = Vector2( 194, 20 ) -shape = SubResource( 2 ) +position = Vector2(194, 20) +shape = SubResource("2") [node name="LeftWallCollider" type="CollisionShape2D" parent="Background"] -position = Vector2( -202, 20 ) -shape = SubResource( 3 ) +position = Vector2(-202, 20) +shape = SubResource("3") -[node name="WallCourtLines" type="Sprite" parent="Background"] -position = Vector2( 141, -161 ) -scale = Vector2( 1, 2.55 ) -texture = ExtResource( 1 ) +[node name="WallCourtLines" type="Sprite2D" parent="Background"] +position = Vector2(141, -161) +scale = Vector2(1, 2.55) +texture = ExtResource("3_y2ldl") centered = false region_enabled = true -region_rect = Rect2( 87, 0, 73, 60 ) +region_rect = Rect2(87, 0, 73, 60) -[node name="WallCourtTile" type="Sprite" parent="Background"] -position = Vector2( -202, -161 ) -scale = Vector2( 10.719, 2.55 ) -texture = ExtResource( 5 ) +[node name="WallCourtTile" type="Sprite2D" parent="Background"] +position = Vector2(-202, -161) +scale = Vector2(10.719, 2.55) +texture = ExtResource("4_pw3tr") centered = false region_enabled = true -region_rect = Rect2( 0, 0, 32, 60 ) +region_rect = Rect2(0, 0, 32, 60) -[node name="Hoop" parent="." instance=ExtResource( 2 )] -position = Vector2( 163, 37 ) +[node name="Hoop" parent="." instance=ExtResource("2")] +position = Vector2(163, 37) -[node name="Basketball" parent="." instance=ExtResource( 3 )] -position = Vector2( 123, 73 ) +[node name="Basketball" parent="." instance=ExtResource("3")] +position = Vector2(123, 73) -[node name="Audio" parent="." instance=ExtResource( 7 )] +[node name="Audio" parent="." instance=ExtResource("7")] [connection signal="score" from="Hoop" to="Interface" method="_on_Hoop_score"] [connection signal="score" from="Hoop" to="Basketball" method="_on_Hoop_score"] diff --git a/scenes/mainmenu.tscn b/scenes/mainmenu.tscn index 49fed43..ea0e47d 100644 --- a/scenes/mainmenu.tscn +++ b/scenes/mainmenu.tscn @@ -1,88 +1,85 @@ -[gd_scene load_steps=4 format=2] +[gd_scene load_steps=4 format=3 uid="uid://bdgohtw8nyk5g"] -[ext_resource path="res://scripts/mainmenu.gd" type="Script" id=1] -[ext_resource path="res://sound/announcer_mainmenu.ogg" type="AudioStream" id=2] -[ext_resource path="res://theme_data/interface_theme.tres" type="Theme" id=4] +[ext_resource type="Script" path="res://scripts/mainmenu.gd" id="1"] +[ext_resource type="AudioStream" uid="uid://dj4raafny50wq" path="res://sound/announcer_mainmenu.ogg" id="2"] +[ext_resource type="Theme" uid="uid://2jc1rrh032m0" path="res://theme_data/interface_theme.tres" id="4"] [node name="Menu" type="Control"] +layout_mode = 3 +anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 -theme = ExtResource( 4 ) -script = ExtResource( 1 ) +grow_horizontal = 2 +grow_vertical = 2 +theme = ExtResource("4") +script = ExtResource("1") [node name="ColorRect" type="ColorRect" parent="."] +layout_mode = 0 anchor_right = 1.0 anchor_bottom = 1.0 -color = Color( 0.0823529, 0.0745098, 0.117647, 1 ) +color = Color(0.0823529, 0.0745098, 0.117647, 1) [node name="Label" type="Label" parent="."] +layout_mode = 0 anchor_left = 0.5 anchor_right = 0.5 -margin_left = -48.0 -margin_right = 48.0 -margin_bottom = 16.0 +offset_left = -48.0 +offset_right = 48.0 +offset_bottom = 16.0 text = "BasketBALLAZ" [node name="Control" type="Control" parent="."] +anchors_preset = 0 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -margin_left = -107.0 -margin_top = -60.0 -margin_right = 321.0 -margin_bottom = 180.0 -rect_scale = Vector2( 0.5, 0.5 ) +offset_left = -107.0 +offset_top = -60.0 +offset_right = 321.0 +offset_bottom = 180.0 +scale = Vector2(0.5, 0.5) [node name="VBoxContainer" type="VBoxContainer" parent="Control"] +layout_mode = 0 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -margin_left = -50.0 -margin_top = -76.0 -margin_right = 50.0 -margin_bottom = 76.0 +offset_left = -50.0 +offset_top = -76.0 +offset_right = 50.0 +offset_bottom = 76.0 [node name="StartButton" type="Button" parent="Control/VBoxContainer"] -margin_right = 100.0 -margin_bottom = 18.0 +layout_mode = 2 text = "Start" [node name="LeaderboardButton" type="Button" parent="Control/VBoxContainer"] -margin_top = 22.0 -margin_right = 100.0 -margin_bottom = 40.0 +layout_mode = 2 text = "Leaderboard" [node name="HelpButton" type="Button" parent="Control/VBoxContainer"] -margin_top = 44.0 -margin_right = 100.0 -margin_bottom = 62.0 +layout_mode = 2 disabled = true text = "Help" [node name="OptionsButton" type="Button" parent="Control/VBoxContainer"] -margin_top = 66.0 -margin_right = 100.0 -margin_bottom = 84.0 +layout_mode = 2 text = "Options" [node name="CreditsButton" type="Button" parent="Control/VBoxContainer"] -margin_top = 88.0 -margin_right = 100.0 -margin_bottom = 106.0 +layout_mode = 2 disabled = true text = "Credits" [node name="QuitButton" type="Button" parent="Control/VBoxContainer"] -margin_top = 110.0 -margin_right = 100.0 -margin_bottom = 128.0 +layout_mode = 2 text = "Quit" [node name="AnnouncerAudio" type="AudioStreamPlayer" parent="."] -stream = ExtResource( 2 ) +stream = ExtResource("2") volume_db = -15.0 autoplay = true diff --git a/scenes/optionsmenu.tscn b/scenes/optionsmenu.tscn index c9970f6..187b7e1 100644 --- a/scenes/optionsmenu.tscn +++ b/scenes/optionsmenu.tscn @@ -22,107 +22,107 @@ anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -margin_left = -164.0 -margin_top = -49.0 -margin_right = 164.0 -margin_bottom = 49.0 -rect_scale = Vector2( 0.5, 0.5 ) -rect_pivot_offset = Vector2( 164, 49 ) +offset_left = -164.0 +offset_top = -49.0 +offset_right = 164.0 +offset_bottom = 49.0 +scale = Vector2( 0.5, 0.5 ) +pivot_offset = Vector2( 164, 49 ) [node name="GridContainer" type="GridContainer" parent="Control/VBoxContainer"] -margin_right = 328.0 -margin_bottom = 76.0 +offset_right = 328.0 +offset_bottom = 76.0 columns = 2 [node name="FullscreenLabel" type="Label" parent="Control/VBoxContainer/GridContainer"] -margin_right = 124.0 -margin_bottom = 16.0 +offset_right = 124.0 +offset_bottom = 16.0 text = "Fullscreen" [node name="FullscreenCheckButton" type="CheckButton" parent="Control/VBoxContainer/GridContainer"] -margin_left = 296.0 -margin_right = 328.0 -margin_bottom = 16.0 +offset_left = 296.0 +offset_right = 328.0 +offset_bottom = 16.0 size_flags_horizontal = 10 [node name="VolumeMasterLabel" type="Label" parent="Control/VBoxContainer/GridContainer"] -margin_top = 20.0 -margin_right = 104.0 -margin_bottom = 36.0 +offset_top = 20.0 +offset_right = 104.0 +offset_bottom = 36.0 size_flags_horizontal = 2 text = "Master Volume" [node name="VolumeMasterContainer" type="HBoxContainer" parent="Control/VBoxContainer/GridContainer"] -margin_left = 128.0 -margin_top = 20.0 -margin_right = 328.0 -margin_bottom = 36.0 -rect_min_size = Vector2( 200, 0 ) +offset_left = 128.0 +offset_top = 20.0 +offset_right = 328.0 +offset_bottom = 36.0 +custom_minimum_size = Vector2( 200, 0 ) [node name="VolumeMasterSlider" type="HSlider" parent="Control/VBoxContainer/GridContainer/VolumeMasterContainer"] -margin_right = 150.0 -margin_bottom = 16.0 -rect_min_size = Vector2( 150, 0 ) +offset_right = 150.0 +offset_bottom = 16.0 +custom_minimum_size = Vector2( 150, 0 ) [node name="VolumeMasterValue" type="Label" parent="Control/VBoxContainer/GridContainer/VolumeMasterContainer"] -margin_left = 176.0 -margin_right = 200.0 -margin_bottom = 16.0 +offset_left = 176.0 +offset_right = 200.0 +offset_bottom = 16.0 size_flags_horizontal = 10 text = "50%" [node name="VolumeMusicLabel" type="Label" parent="Control/VBoxContainer/GridContainer"] -margin_top = 40.0 -margin_right = 124.0 -margin_bottom = 56.0 +offset_top = 40.0 +offset_right = 124.0 +offset_bottom = 56.0 text = "Music Volume" [node name="VolumeMusicContainer" type="HBoxContainer" parent="Control/VBoxContainer/GridContainer"] -margin_left = 128.0 -margin_top = 40.0 -margin_right = 328.0 -margin_bottom = 56.0 +offset_left = 128.0 +offset_top = 40.0 +offset_right = 328.0 +offset_bottom = 56.0 [node name="VolumeMusicSlider" type="HSlider" parent="Control/VBoxContainer/GridContainer/VolumeMusicContainer"] -margin_right = 150.0 -margin_bottom = 16.0 -rect_min_size = Vector2( 150, 0 ) +offset_right = 150.0 +offset_bottom = 16.0 +custom_minimum_size = Vector2( 150, 0 ) [node name="VolumeMusicValue" type="Label" parent="Control/VBoxContainer/GridContainer/VolumeMusicContainer"] -margin_left = 176.0 -margin_right = 200.0 -margin_bottom = 16.0 +offset_left = 176.0 +offset_right = 200.0 +offset_bottom = 16.0 size_flags_horizontal = 10 text = "50%" [node name="VolumeSFXLabel" type="Label" parent="Control/VBoxContainer/GridContainer"] -margin_top = 60.0 -margin_right = 124.0 -margin_bottom = 76.0 +offset_top = 60.0 +offset_right = 124.0 +offset_bottom = 76.0 text = "SFX Volume" [node name="VolumeSFXContainer" type="HBoxContainer" parent="Control/VBoxContainer/GridContainer"] -margin_left = 128.0 -margin_top = 60.0 -margin_right = 328.0 -margin_bottom = 76.0 +offset_left = 128.0 +offset_top = 60.0 +offset_right = 328.0 +offset_bottom = 76.0 [node name="VolumeSFXSlider" type="HSlider" parent="Control/VBoxContainer/GridContainer/VolumeSFXContainer"] -margin_right = 150.0 -margin_bottom = 16.0 -rect_min_size = Vector2( 150, 0 ) +offset_right = 150.0 +offset_bottom = 16.0 +custom_minimum_size = Vector2( 150, 0 ) [node name="VolumeSFXValue" type="Label" parent="Control/VBoxContainer/GridContainer/VolumeSFXContainer"] -margin_left = 176.0 -margin_right = 200.0 -margin_bottom = 16.0 +offset_left = 176.0 +offset_right = 200.0 +offset_bottom = 16.0 size_flags_horizontal = 10 text = "50%" [node name="ReturnButton" type="Button" parent="Control/VBoxContainer"] -margin_top = 80.0 -margin_right = 328.0 -margin_bottom = 98.0 +offset_top = 80.0 +offset_right = 328.0 +offset_bottom = 98.0 text = "Return" [connection signal="toggled" from="Control/VBoxContainer/GridContainer/FullscreenCheckButton" to="." method="_on_FullscreenCheckButton_toggled"] diff --git a/scenes/pausemenu.tscn b/scenes/pausemenu.tscn index e23e95c..60fae1a 100644 --- a/scenes/pausemenu.tscn +++ b/scenes/pausemenu.tscn @@ -1,89 +1,90 @@ -[gd_scene load_steps=11 format=2] +[gd_scene load_steps=11 format=3 uid="uid://dgeurb05rmq88"] -[ext_resource path="res://scripts/pausemenu.gd" type="Script" id=1] -[ext_resource path="res://textures/options_hover.png" type="Texture" id=2] -[ext_resource path="res://textures/options.png" type="Texture" id=3] -[ext_resource path="res://textures/retry_hover.png" type="Texture" id=4] -[ext_resource path="res://textures/retry.png" type="Texture" id=5] -[ext_resource path="res://textures/quit_hover.png" type="Texture" id=6] -[ext_resource path="res://textures/quit.png" type="Texture" id=7] -[ext_resource path="res://textures/help.png" type="Texture" id=8] -[ext_resource path="res://textures/help_hover.png" type="Texture" id=9] -[ext_resource path="res://theme_data/interface_theme.tres" type="Theme" id=10] +[ext_resource type="Script" path="res://scripts/pausemenu.gd" id="1"] +[ext_resource type="Texture2D" uid="uid://b4ywdgjr33qbm" path="res://textures/options_hover.png" id="2"] +[ext_resource type="Texture2D" uid="uid://c1lg2y0602jok" path="res://textures/options.png" id="3"] +[ext_resource type="Texture2D" uid="uid://cyk45edx4rokj" path="res://textures/retry_hover.png" id="4"] +[ext_resource type="Texture2D" uid="uid://byumgtet2e552" path="res://textures/retry.png" id="5"] +[ext_resource type="Texture2D" uid="uid://c1fq67yw20je5" path="res://textures/quit_hover.png" id="6"] +[ext_resource type="Texture2D" uid="uid://cvwyjpoqfsdc4" path="res://textures/quit.png" id="7"] +[ext_resource type="Texture2D" uid="uid://bjun0ox7x2xmh" path="res://textures/help.png" id="8"] +[ext_resource type="Texture2D" uid="uid://dkb835ytdw7j7" path="res://textures/help_hover.png" id="9"] +[ext_resource type="Theme" uid="uid://2jc1rrh032m0" path="res://theme_data/interface_theme.tres" id="10"] [node name="PauseMenu" type="Control"] -margin_right = 214.0 -margin_bottom = 120.0 -theme = ExtResource( 10 ) -script = ExtResource( 1 ) +process_mode = 3 +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme = ExtResource("10") +script = ExtResource("1") [node name="ColorRect" type="ColorRect" parent="."] +layout_mode = 1 +anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 -color = Color( 0, 0, 0, 0.54902 ) -__meta__ = { -"_edit_use_anchors_": true -} +grow_horizontal = 2 +grow_vertical = 2 +color = Color(0, 0, 0, 0.54902) [node name="Panel" type="Panel" parent="."] +layout_mode = 0 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -margin_left = -43.0 -margin_top = -26.0 -margin_right = 43.0 -margin_bottom = 13.0 +offset_left = -43.0 +offset_top = -26.0 +offset_right = 43.0 +offset_bottom = 13.0 [node name="HoverLabel" type="Label" parent="."] +layout_mode = 0 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -margin_left = -38.0 -margin_top = -25.0 -margin_right = 38.0 -margin_bottom = -9.0 +offset_left = -38.0 +offset_top = -25.0 +offset_right = 38.0 +offset_bottom = -9.0 text = "PAUSED" -align = 1 -valign = 1 +horizontal_alignment = 1 [node name="HBoxContainer" type="HBoxContainer" parent="."] +layout_mode = 0 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -margin_left = -38.0 -margin_top = -8.0 -margin_right = 38.0 -margin_bottom = 8.0 +offset_left = -38.0 +offset_top = -8.0 +offset_right = 38.0 +offset_bottom = 8.0 [node name="RestartButton" type="TextureButton" parent="HBoxContainer"] -margin_right = 16.0 -margin_bottom = 16.0 -texture_normal = ExtResource( 5 ) -texture_hover = ExtResource( 4 ) +layout_mode = 2 +texture_normal = ExtResource("5") +texture_hover = ExtResource("4") [node name="OptionsButton" type="TextureButton" parent="HBoxContainer"] -margin_left = 20.0 -margin_right = 36.0 -margin_bottom = 16.0 -texture_normal = ExtResource( 3 ) -texture_hover = ExtResource( 2 ) +layout_mode = 2 +texture_normal = ExtResource("3") +texture_hover = ExtResource("2") [node name="HelpButton" type="TextureButton" parent="HBoxContainer"] -margin_left = 40.0 -margin_right = 56.0 -margin_bottom = 16.0 -texture_normal = ExtResource( 8 ) -texture_hover = ExtResource( 9 ) +layout_mode = 2 +texture_normal = ExtResource("8") +texture_hover = ExtResource("9") [node name="QuitButton" type="TextureButton" parent="HBoxContainer"] -margin_left = 60.0 -margin_right = 76.0 -margin_bottom = 16.0 -texture_normal = ExtResource( 7 ) -texture_hover = ExtResource( 6 ) +layout_mode = 2 +texture_normal = ExtResource("7") +texture_hover = ExtResource("6") [connection signal="mouse_entered" from="ColorRect" to="." method="_on_ColorRect_mouse_entered"] [connection signal="mouse_entered" from="Panel" to="." method="_on_Panel_mouse_entered"] diff --git a/scenes/splashscreen.tscn b/scenes/splashscreen.tscn index 44c82df..66d9b37 100644 --- a/scenes/splashscreen.tscn +++ b/scenes/splashscreen.tscn @@ -1,7 +1,7 @@ [gd_scene load_steps=6 format=2] [ext_resource path="res://sound/desksmashers.ogg" type="AudioStream" id=1] -[ext_resource path="res://desksmashers.svg" type="Texture" id=2] +[ext_resource path="res://desksmashers.svg" type="Texture2D" id=2] [ext_resource path="res://scripts/splashscreen.gd" type="Script" id=3] [sub_resource type="Animation" id=1] @@ -13,8 +13,8 @@ tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { -"times": PoolRealArray( 0 ), -"transitions": PoolRealArray( 1 ), +"times": PackedFloat32Array( 0 ), +"transitions": PackedFloat32Array( 1 ), "update": 0, "values": [ Color( 1, 1, 1, 0 ) ] } @@ -29,8 +29,8 @@ tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { -"times": PoolRealArray( 0, 0.5, 2, 3.5, 5, 5.5 ), -"transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ), +"times": PackedFloat32Array( 0, 0.5, 2, 3.5, 5, 5.5 ), +"transitions": PackedFloat32Array( 1, 1, 1, 1, 1, 1 ), "update": 0, "values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 0 ) ] } @@ -46,7 +46,7 @@ tracks/1/keys = { "start_offset": 0.0, "stream": ExtResource( 1 ) } ], -"times": PoolRealArray( 1.5 ) +"times": PackedFloat32Array( 1.5 ) } [node name="SplashScreen" type="Control"] @@ -73,13 +73,13 @@ anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 -margin_left = -48.0 -margin_top = 29.0 -margin_right = 48.0 -margin_bottom = 45.0 +offset_left = -48.0 +offset_top = 29.0 +offset_right = 48.0 +offset_bottom = 45.0 text = "desksmashers" -[node name="Sprite" type="Sprite" parent="Logo/Label"] +[node name="Sprite2D" type="Sprite2D" parent="Logo/Label"] position = Vector2( 48, -30 ) scale = Vector2( 0.05, 0.05 ) texture = ExtResource( 2 ) diff --git a/scripts/basketball.gd b/scripts/basketball.gd index 7a50f69..7616e14 100644 --- a/scripts/basketball.gd +++ b/scripts/basketball.gd @@ -2,14 +2,14 @@ extends RigidBody2D signal reset -export var spin_speed = -1 -export var move_speed = 60 -export var power_magnitude = 10 -export var drag_radius = 30 +@export var spin_speed = -1 +@export var move_speed = 60 +@export var power_magnitude = 10 +@export var drag_radius = 30 var start_position: Vector2 var start_minimum = drag_radius -onready var start_maximum = $"../Hoop".position.x - 40 +@onready var start_maximum = $"../Hoop".position.x - 40 var is_dragging = false var waiting_for_shoot = true var mouse_over_ball = false @@ -25,21 +25,21 @@ func toggle_mode(): if waiting_for_shoot: waiting_for_shoot = false - var shoot_power = -$Sprite.position * power_magnitude - apply_impulse(Vector2(2, 2), shoot_power) + var shoot_power = -$Sprite2D.position * power_magnitude + apply_impulse(shoot_power, Vector2(2, 2)) - var shootAngle = atan2($Sprite.position.y, $Sprite.position.x) + var shootAngle = atan2($Sprite2D.position.y, $Sprite2D.position.x) $ReleaseIndicator.visible = false - $ReleaseIndicator.position = $Sprite.position + $ReleaseIndicator.position = $Sprite2D.position $ReleaseIndicator.rotation = shootAngle - PI / 2 is_dragging = false $GhostSprite.visible = false - $Sprite.position = Vector2(0, 0) + $Sprite2D.position = Vector2(0, 0) else: # Adds offset of ball's rotation to sprite AFTER the entire object has rotated from physics. # Done to keep appearance of same rotation to add consistency when resetting the ball. - $Sprite.rotation += rotation + $Sprite2D.rotation += rotation # Hide the release indicator for the first throw in the next round if !$"../Hoop".has_scored: @@ -58,24 +58,24 @@ func _integrate_forces(state): func _process(delta): if waiting_for_shoot: - $Sprite.rotation += spin_speed * delta + $Sprite2D.rotation += spin_speed * delta $GhostSprite.rotation += spin_speed * delta func _input(event): if event.is_action_pressed("shoot") and mouse_over_ball and waiting_for_shoot: is_dragging = true - $Sprite.position = get_global_mouse_position() - start_position + $Sprite2D.position = get_global_mouse_position() - start_position $GhostSprite.visible = true - $GhostSprite.rotation = $Sprite.rotation + $GhostSprite.rotation = $Sprite2D.rotation if is_dragging and event is InputEventMouseMotion: - $Sprite.position = get_global_mouse_position() - start_position + $Sprite2D.position = get_global_mouse_position() - start_position # If the mouse pointer is beyond a certain radius, don't move the sprite any further from # the start position while still keeping it at the same angle as the mouse pointer. - var hypot = sqrt(pow($Sprite.position.x, 2) + pow($Sprite.position.y, 2)) + var hypot = sqrt(pow($Sprite2D.position.x, 2) + pow($Sprite2D.position.y, 2)) if hypot > drag_radius: - var angle = atan2($Sprite.position.y, $Sprite.position.x) - $Sprite.position = Vector2(cos(angle), sin(angle)) * drag_radius + var angle = atan2($Sprite2D.position.y, $Sprite2D.position.x) + $Sprite2D.position = Vector2(cos(angle), sin(angle)) * drag_radius if event.is_action_released("shoot"): if !waiting_for_shoot or is_dragging: toggle_mode() @@ -92,7 +92,7 @@ func position_changer(): start_position.x = clamp(start_position.x, start_minimum, start_maximum) # Random if phase == 2: - start_position.x = rand_range(start_minimum, start_maximum) + start_position.x = randf_range(start_minimum, start_maximum) func _on_Hoop_score(): if global_variables.score >= phase_increment[0] and global_variables.score < phase_increment[1]: diff --git a/scripts/camera.gd b/scripts/camera.gd index 773ff75..9204a08 100644 --- a/scripts/camera.gd +++ b/scripts/camera.gd @@ -1,7 +1,7 @@ extends Camera2D -onready var basketball = $"../Basketball" -onready var hoop = $"../Hoop" +@onready var basketball = $"../Basketball" +@onready var hoop = $"../Hoop" func _process(_delta): if !basketball.waiting_for_shoot: @@ -16,22 +16,22 @@ func adjust_zoom(): # Min and max widths of the court we want visible on screen at once var min_width = dist_to_hoop + basketball.drag_radius * 3 var max_width = limit_right - limit_left - + var zoom_level = Vector2(1, 1) # Zoom out the camera if we need to show more on screen if min_width > limit_right: - zoom_level = zoom_level * (min_width / limit_right) + zoom_level /= (min_width / limit_right) # Width of the view when the zoom is set to 1 var view_width = get_viewport().get_visible_rect().size.x # Fit the zoom level within the max width if needed # TODO: There should also be a vertical limit - var max_zoom = float(max_width) / float(view_width) - zoom_level.x = clamp(zoom_level.x, 1, max_zoom) - zoom_level.y = clamp(zoom_level.y, 1, max_zoom) - + var max_zoom = float(view_width) / float(max_width) + zoom_level.x = clamp(zoom_level.x, max_zoom, 1) + zoom_level.y = clamp(zoom_level.y, max_zoom, 1) + set_zoom(zoom_level) func _on_Basketball_reset(): diff --git a/scripts/leaderboard.gd b/scripts/leaderboard.gd index 0373e44..279d3c6 100644 --- a/scripts/leaderboard.gd +++ b/scripts/leaderboard.gd @@ -12,7 +12,7 @@ func _ready(): else: $Control/HBoxContainer.visible = false $Control/LineEdit.grab_focus() - if !global_variables.player_name.empty(): + if !global_variables.player_name.is_empty(): $Control/LineEdit.text = global_variables.player_name $Control/LineEdit.select_all() $Control/Label.text = "Your score:\n" + str(global_variables.score) @@ -26,7 +26,7 @@ func refresh_menu(): get_node(label_score).text = str(global_variables.leaderboard[i][1]) func _on_LineEdit_text_entered(new_text): - if !new_text.empty(): + if !new_text.is_empty(): $Control/LineEdit.release_focus() $Control/LineEdit.focus_mode = FOCUS_NONE $Control/LineEdit.editable = false @@ -52,7 +52,7 @@ func _on_QuitButton_pressed(): queue_free() else: # warning-ignore:return_value_discarded - get_tree().change_scene("res://scenes/mainmenu.tscn") + get_tree().change_scene_to_file("res://scenes/mainmenu.tscn") get_tree().paused = false global_variables.reset_variables() diff --git a/scripts/mainmenu.gd b/scripts/mainmenu.gd index c317d22..09d0504 100644 --- a/scripts/mainmenu.gd +++ b/scripts/mainmenu.gd @@ -8,16 +8,16 @@ func _ready(): func _on_StartButton_pressed(): # warning-ignore:return_value_discarded - get_tree().change_scene("res://scenes/level.tscn") + get_tree().change_scene_to_file("res://scenes/level.tscn") func _on_LeaderboardButton_pressed(): - add_child(load("res://scenes/leaderboard.tscn").instance()) + add_child(load("res://scenes/leaderboard.tscn").instantiate()) func _on_HelpButton_pressed(): pass func _on_OptionsButton_pressed(): - add_child(preload("res://scenes/optionsmenu.tscn").instance()) + add_child(preload("res://scenes/optionsmenu.tscn").instantiate()) func _on_CreditsButton_pressed(): pass diff --git a/scripts/optionsmenu.gd b/scripts/optionsmenu.gd index 5376e21..e8bccbd 100644 --- a/scripts/optionsmenu.gd +++ b/scripts/optionsmenu.gd @@ -3,19 +3,19 @@ extends Control const max_vol = 30 const min_vol = -30 -onready var MasterValue = $Control/VBoxContainer/GridContainer/VolumeMasterContainer/VolumeMasterValue -onready var MasterSlider = $Control/VBoxContainer/GridContainer/VolumeMasterContainer/VolumeMasterSlider -onready var MusicValue = $Control/VBoxContainer/GridContainer/VolumeMusicContainer/VolumeMusicValue -onready var MusicSlider = $Control/VBoxContainer/GridContainer/VolumeMusicContainer/VolumeMusicSlider -onready var SFXValue = $Control/VBoxContainer/GridContainer/VolumeSFXContainer/VolumeSFXValue -onready var SFXSlider = $Control/VBoxContainer/GridContainer/VolumeSFXContainer/VolumeSFXSlider +@onready var MasterValue = $Control/VBoxContainer/GridContainer/VolumeMasterContainer/VolumeMasterValue +@onready var MasterSlider = $Control/VBoxContainer/GridContainer/VolumeMasterContainer/VolumeMasterSlider +@onready var MusicValue = $Control/VBoxContainer/GridContainer/VolumeMusicContainer/VolumeMusicValue +@onready var MusicSlider = $Control/VBoxContainer/GridContainer/VolumeMusicContainer/VolumeMusicSlider +@onready var SFXValue = $Control/VBoxContainer/GridContainer/VolumeSFXContainer/VolumeSFXValue +@onready var SFXSlider = $Control/VBoxContainer/GridContainer/VolumeSFXContainer/VolumeSFXSlider func _ready(): # When scene is instanced, load the settings from singleton refresh_menu(global_variables.volume_master, MasterValue, MasterSlider) refresh_menu(global_variables.volume_music, MusicValue, MusicSlider) refresh_menu(global_variables.volume_sfx, SFXValue, SFXSlider) - $Control/VBoxContainer/GridContainer/FullscreenCheckButton.set_pressed_no_signal(OS.window_fullscreen) + $Control/VBoxContainer/GridContainer/FullscreenCheckButton.set_pressed_no_signal(((get_window().mode == 4) or (get_window().mode == 3))) func _input(event): if event.is_action_pressed("escape"): @@ -34,7 +34,7 @@ func _on_VolumeSFXSlider_value_changed(value): update_audio(value, 2, SFXSlider, "volume_sfx_enabled", "volume_sfx", SFXValue) func _on_FullscreenCheckButton_toggled(_button_pressed): - OS.window_fullscreen = !OS.window_fullscreen + get_window().mode = 4 if (!((get_window().mode == 4) or (get_window().mode == 3))) else 0 func update_audio(value, bus, slider, enabled_var, volume_var, valuelabel): # Converts percentage into a range value diff --git a/scripts/pausemenu.gd b/scripts/pausemenu.gd index bc0d577..92e43c8 100644 --- a/scripts/pausemenu.gd +++ b/scripts/pausemenu.gd @@ -14,7 +14,7 @@ func _on_RestartButton_pressed(): global_variables.reset_variables() func _on_OptionsButton_pressed(): - add_child(preload("res://scenes/optionsmenu.tscn").instance()) + add_child(preload("res://scenes/optionsmenu.tscn").instantiate()) rename_hover_panel("PAUSED") func _on_HelpButton_pressed(): @@ -22,10 +22,10 @@ func _on_HelpButton_pressed(): func _on_QuitButton_pressed(): if global_variables.score >= global_variables.leaderboard[9][1]: - add_child(preload("res://scenes/leaderboard.tscn").instance()) + add_child(preload("res://scenes/leaderboard.tscn").instantiate()) else: # warning-ignore:return_value_discarded - get_tree().change_scene("res://scenes/mainmenu.tscn") + get_tree().change_scene_to_file("res://scenes/mainmenu.tscn") get_tree().paused = false global_variables.reset_variables() diff --git a/scripts/splashscreen.gd b/scripts/splashscreen.gd index 22675a7..933528e 100644 --- a/scripts/splashscreen.gd +++ b/scripts/splashscreen.gd @@ -5,11 +5,12 @@ func _ready(): $AnimationPlayer.play("splashscreen") func _on_AnimationPlayer_animation_finished(_splashscreen): - change_scene() + change_scene_to_file() func _input(event): if event.is_action_pressed("escape"): - change_scene() + change_scene_to_file() -func change_scene(): - get_tree().change_scene("res://scenes/mainmenu.tscn") +func change_scene_to_file(): + # warning-ignore:return_value_discarded + get_tree().change_scene_to_file("res://scenes/mainmenu.tscn") diff --git a/sound/announcer_mainmenu.ogg.import b/sound/announcer_mainmenu.ogg.import index eaa034b..27cba8f 100644 --- a/sound/announcer_mainmenu.ogg.import +++ b/sound/announcer_mainmenu.ogg.import @@ -1,15 +1,19 @@ [remap] -importer="ogg_vorbis" -type="AudioStreamOGGVorbis" -path="res://.import/announcer_mainmenu.ogg-1d6288e957f848c57ecf38978cbe9dd8.oggstr" +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://dj4raafny50wq" +path="res://.godot/imported/announcer_mainmenu.ogg-1d6288e957f848c57ecf38978cbe9dd8.oggvorbisstr" [deps] source_file="res://sound/announcer_mainmenu.ogg" -dest_files=[ "res://.import/announcer_mainmenu.ogg-1d6288e957f848c57ecf38978cbe9dd8.oggstr" ] +dest_files=["res://.godot/imported/announcer_mainmenu.ogg-1d6288e957f848c57ecf38978cbe9dd8.oggvorbisstr"] [params] loop=false loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/sound/desksmashers.ogg.import b/sound/desksmashers.ogg.import index eb069c2..a660d7c 100644 --- a/sound/desksmashers.ogg.import +++ b/sound/desksmashers.ogg.import @@ -1,15 +1,19 @@ [remap] -importer="ogg_vorbis" -type="AudioStreamOGGVorbis" -path="res://.import/desksmashers.ogg-3acc7ae456bf8bbcc92eb1abe626eb91.oggstr" +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://cle1y6rvo7mqa" +path="res://.godot/imported/desksmashers.ogg-3acc7ae456bf8bbcc92eb1abe626eb91.oggvorbisstr" [deps] source_file="res://sound/desksmashers.ogg" -dest_files=[ "res://.import/desksmashers.ogg-3acc7ae456bf8bbcc92eb1abe626eb91.oggstr" ] +dest_files=["res://.godot/imported/desksmashers.ogg-3acc7ae456bf8bbcc92eb1abe626eb91.oggvorbisstr"] [params] loop=false loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/sound/unused_music.ogg.import b/sound/unused_music.ogg.import index 6c4fad4..8d826c3 100644 --- a/sound/unused_music.ogg.import +++ b/sound/unused_music.ogg.import @@ -1,15 +1,19 @@ [remap] -importer="ogg_vorbis" -type="AudioStreamOGGVorbis" -path="res://.import/unused_music.ogg-872b37fc70b3a11dc9e491985c9e8436.oggstr" +importer="oggvorbisstr" +type="AudioStreamOggVorbis" +uid="uid://cx0oukrbd2e4e" +path="res://.godot/imported/unused_music.ogg-872b37fc70b3a11dc9e491985c9e8436.oggvorbisstr" [deps] source_file="res://sound/unused_music.ogg" -dest_files=[ "res://.import/unused_music.ogg-872b37fc70b3a11dc9e491985c9e8436.oggstr" ] +dest_files=["res://.godot/imported/unused_music.ogg-872b37fc70b3a11dc9e491985c9e8436.oggvorbisstr"] [params] loop=true loop_offset=0 +bpm=0 +beat_count=0 +bar_beats=4 diff --git a/textures/basketball.png.import b/textures/basketball.png.import index 9b42cdb..0d3fbdd 100644 --- a/textures/basketball.png.import +++ b/textures/basketball.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/basketball.png-e91ab41cfdc1c0211edda122bf946726.stex" +type="CompressedTexture2D" +uid="uid://cxj2d4xkponp3" +path="res://.godot/imported/basketball.png-e91ab41cfdc1c0211edda122bf946726.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/basketball.png" -dest_files=[ "res://.import/basketball.png-e91ab41cfdc1c0211edda122bf946726.stex" ] +dest_files=["res://.godot/imported/basketball.png-e91ab41cfdc1c0211edda122bf946726.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/check_button_off.png.import b/textures/check_button_off.png.import index d115385..45069d9 100644 --- a/textures/check_button_off.png.import +++ b/textures/check_button_off.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/check_button_off.png-ab90c2ffb39799a4e841d6e4a76e78c3.stex" +type="CompressedTexture2D" +uid="uid://bfdxy0g57g1qw" +path="res://.godot/imported/check_button_off.png-ab90c2ffb39799a4e841d6e4a76e78c3.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/check_button_off.png" -dest_files=[ "res://.import/check_button_off.png-ab90c2ffb39799a4e841d6e4a76e78c3.stex" ] +dest_files=["res://.godot/imported/check_button_off.png-ab90c2ffb39799a4e841d6e4a76e78c3.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/check_button_on.png.import b/textures/check_button_on.png.import index c81dcc9..f1ad16e 100644 --- a/textures/check_button_on.png.import +++ b/textures/check_button_on.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/check_button_on.png-4b6e9fead6938785e8ab7a6adad181ec.stex" +type="CompressedTexture2D" +uid="uid://c6moponbwbsqa" +path="res://.godot/imported/check_button_on.png-4b6e9fead6938785e8ab7a6adad181ec.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/check_button_on.png" -dest_files=[ "res://.import/check_button_on.png-4b6e9fead6938785e8ab7a6adad181ec.stex" ] +dest_files=["res://.godot/imported/check_button_on.png-4b6e9fead6938785e8ab7a6adad181ec.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/court_lines.png.import b/textures/court_lines.png.import index 6c1cb85..62b3726 100644 --- a/textures/court_lines.png.import +++ b/textures/court_lines.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/court_lines.png-92f98f04291e84f62ad00334a0ec4c0f.stex" +type="CompressedTexture2D" +uid="uid://cw2d7vif3odgj" +path="res://.godot/imported/court_lines.png-92f98f04291e84f62ad00334a0ec4c0f.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/court_lines.png" -dest_files=[ "res://.import/court_lines.png-92f98f04291e84f62ad00334a0ec4c0f.stex" ] +dest_files=["res://.godot/imported/court_lines.png-92f98f04291e84f62ad00334a0ec4c0f.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/court_tile.png.import b/textures/court_tile.png.import index b1f47e7..59c7623 100644 --- a/textures/court_tile.png.import +++ b/textures/court_tile.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/court_tile.png-220b287bd426c3317e102f3d7a225ca2.stex" +type="CompressedTexture2D" +uid="uid://bnptqq0g60r6q" +path="res://.godot/imported/court_tile.png-220b287bd426c3317e102f3d7a225ca2.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/court_tile.png" -dest_files=[ "res://.import/court_tile.png-220b287bd426c3317e102f3d7a225ca2.stex" ] +dest_files=["res://.godot/imported/court_tile.png-220b287bd426c3317e102f3d7a225ca2.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/help.png.import b/textures/help.png.import index 457e1b7..4605a08 100644 --- a/textures/help.png.import +++ b/textures/help.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/help.png-fd7ae7c3578f15bbdea2bc49b7ab3b2d.stex" +type="CompressedTexture2D" +uid="uid://bjun0ox7x2xmh" +path="res://.godot/imported/help.png-fd7ae7c3578f15bbdea2bc49b7ab3b2d.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/help.png" -dest_files=[ "res://.import/help.png-fd7ae7c3578f15bbdea2bc49b7ab3b2d.stex" ] +dest_files=["res://.godot/imported/help.png-fd7ae7c3578f15bbdea2bc49b7ab3b2d.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/help_hover.png.import b/textures/help_hover.png.import index fb6a92a..01788f4 100644 --- a/textures/help_hover.png.import +++ b/textures/help_hover.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/help_hover.png-c38aeb86f9755b8a195bbf86b5394885.stex" +type="CompressedTexture2D" +uid="uid://dkb835ytdw7j7" +path="res://.godot/imported/help_hover.png-c38aeb86f9755b8a195bbf86b5394885.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/help_hover.png" -dest_files=[ "res://.import/help_hover.png-c38aeb86f9755b8a195bbf86b5394885.stex" ] +dest_files=["res://.godot/imported/help_hover.png-c38aeb86f9755b8a195bbf86b5394885.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/hoop_back.png.import b/textures/hoop_back.png.import index 5feda3b..5e4f79e 100644 --- a/textures/hoop_back.png.import +++ b/textures/hoop_back.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/hoop_back.png-a682eb8c46340d708eb2003b6a7bd071.stex" +type="CompressedTexture2D" +uid="uid://buvj1niafrqgw" +path="res://.godot/imported/hoop_back.png-a682eb8c46340d708eb2003b6a7bd071.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/hoop_back.png" -dest_files=[ "res://.import/hoop_back.png-a682eb8c46340d708eb2003b6a7bd071.stex" ] +dest_files=["res://.godot/imported/hoop_back.png-a682eb8c46340d708eb2003b6a7bd071.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/hoop_fore.png.import b/textures/hoop_fore.png.import index 40cab8c..fed73a7 100644 --- a/textures/hoop_fore.png.import +++ b/textures/hoop_fore.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/hoop_fore.png-735987c0139e90c50f0f163134f2370f.stex" +type="CompressedTexture2D" +uid="uid://djxcqmro8usq" +path="res://.godot/imported/hoop_fore.png-735987c0139e90c50f0f163134f2370f.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/hoop_fore.png" -dest_files=[ "res://.import/hoop_fore.png-735987c0139e90c50f0f163134f2370f.stex" ] +dest_files=["res://.godot/imported/hoop_fore.png-735987c0139e90c50f0f163134f2370f.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/hourglass.png.import b/textures/hourglass.png.import index 6b8800c..3764d68 100644 --- a/textures/hourglass.png.import +++ b/textures/hourglass.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/hourglass.png-8b3568b0681d1046cf12c255ff646583.stex" +type="CompressedTexture2D" +uid="uid://c5w410bewcnh5" +path="res://.godot/imported/hourglass.png-8b3568b0681d1046cf12c255ff646583.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/hourglass.png" -dest_files=[ "res://.import/hourglass.png-8b3568b0681d1046cf12c255ff646583.stex" ] +dest_files=["res://.godot/imported/hourglass.png-8b3568b0681d1046cf12c255ff646583.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/options.png.import b/textures/options.png.import index de3085c..67f0f0f 100644 --- a/textures/options.png.import +++ b/textures/options.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/options.png-8f9b1e2df6b6253dd1719277a73b5d61.stex" +type="CompressedTexture2D" +uid="uid://c1lg2y0602jok" +path="res://.godot/imported/options.png-8f9b1e2df6b6253dd1719277a73b5d61.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/options.png" -dest_files=[ "res://.import/options.png-8f9b1e2df6b6253dd1719277a73b5d61.stex" ] +dest_files=["res://.godot/imported/options.png-8f9b1e2df6b6253dd1719277a73b5d61.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/options_hover.png.import b/textures/options_hover.png.import index 441c83a..578e288 100644 --- a/textures/options_hover.png.import +++ b/textures/options_hover.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/options_hover.png-3fb90d6071d72909c23f3570c142f155.stex" +type="CompressedTexture2D" +uid="uid://b4ywdgjr33qbm" +path="res://.godot/imported/options_hover.png-3fb90d6071d72909c23f3570c142f155.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/options_hover.png" -dest_files=[ "res://.import/options_hover.png-3fb90d6071d72909c23f3570c142f155.stex" ] +dest_files=["res://.godot/imported/options_hover.png-3fb90d6071d72909c23f3570c142f155.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/quit.png.import b/textures/quit.png.import index c5e6506..8c835db 100644 --- a/textures/quit.png.import +++ b/textures/quit.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/quit.png-45899401d5b959d99c6ae166d5338906.stex" +type="CompressedTexture2D" +uid="uid://cvwyjpoqfsdc4" +path="res://.godot/imported/quit.png-45899401d5b959d99c6ae166d5338906.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/quit.png" -dest_files=[ "res://.import/quit.png-45899401d5b959d99c6ae166d5338906.stex" ] +dest_files=["res://.godot/imported/quit.png-45899401d5b959d99c6ae166d5338906.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/quit_hover.png.import b/textures/quit_hover.png.import index 5f2846b..fe53cdc 100644 --- a/textures/quit_hover.png.import +++ b/textures/quit_hover.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/quit_hover.png-30af14a3f4ecea3ab7a319e00948afc2.stex" +type="CompressedTexture2D" +uid="uid://c1fq67yw20je5" +path="res://.godot/imported/quit_hover.png-30af14a3f4ecea3ab7a319e00948afc2.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/quit_hover.png" -dest_files=[ "res://.import/quit_hover.png-30af14a3f4ecea3ab7a319e00948afc2.stex" ] +dest_files=["res://.godot/imported/quit_hover.png-30af14a3f4ecea3ab7a319e00948afc2.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/release_indicator.png.import b/textures/release_indicator.png.import index e36f822..870387c 100644 --- a/textures/release_indicator.png.import +++ b/textures/release_indicator.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/release_indicator.png-d6a350a4a291ddea8c967f467eb2d21a.stex" +type="CompressedTexture2D" +uid="uid://bvt8l7s2qeplp" +path="res://.godot/imported/release_indicator.png-d6a350a4a291ddea8c967f467eb2d21a.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/release_indicator.png" -dest_files=[ "res://.import/release_indicator.png-d6a350a4a291ddea8c967f467eb2d21a.stex" ] +dest_files=["res://.godot/imported/release_indicator.png-d6a350a4a291ddea8c967f467eb2d21a.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/retry.png.import b/textures/retry.png.import index 3d5bd01..08f2791 100644 --- a/textures/retry.png.import +++ b/textures/retry.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/retry.png-a4cfea1571320d9c0a68eb6765c52c5d.stex" +type="CompressedTexture2D" +uid="uid://byumgtet2e552" +path="res://.godot/imported/retry.png-a4cfea1571320d9c0a68eb6765c52c5d.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/retry.png" -dest_files=[ "res://.import/retry.png-a4cfea1571320d9c0a68eb6765c52c5d.stex" ] +dest_files=["res://.godot/imported/retry.png-a4cfea1571320d9c0a68eb6765c52c5d.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/textures/retry_hover.png.import b/textures/retry_hover.png.import index a58ed6c..263909c 100644 --- a/textures/retry_hover.png.import +++ b/textures/retry_hover.png.import @@ -1,8 +1,9 @@ [remap] importer="texture" -type="StreamTexture" -path="res://.import/retry_hover.png-9d3c3b685d837702ca1fd63bf868b801.stex" +type="CompressedTexture2D" +uid="uid://cyk45edx4rokj" +path="res://.godot/imported/retry_hover.png-9d3c3b685d837702ca1fd63bf868b801.ctex" metadata={ "vram_texture": false } @@ -10,26 +11,24 @@ metadata={ [deps] source_file="res://textures/retry_hover.png" -dest_files=[ "res://.import/retry_hover.png-9d3c3b685d837702ca1fd63bf868b801.stex" ] +dest_files=["res://.godot/imported/retry_hover.png-9d3c3b685d837702ca1fd63bf868b801.ctex"] [params] compress/mode=0 +compress/high_quality=false compress/lossy_quality=0.7 -compress/hdr_mode=0 -compress/bptc_ldr=0 +compress/hdr_compression=1 compress/normal_map=0 -flags/repeat=0 -flags/filter=false -flags/mipmaps=false -flags/anisotropic=false -flags/srgb=2 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" process/fix_alpha_border=true process/premult_alpha=false -process/HDR_as_SRGB=false -process/invert_color=false process/normal_map_invert_y=false -stream=false -size_limit=0 -detect_3d=false -svg/scale=1.0 +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/theme_data/FSEX302.ttf.import b/theme_data/FSEX302.ttf.import new file mode 100644 index 0000000..d7cccc1 --- /dev/null +++ b/theme_data/FSEX302.ttf.import @@ -0,0 +1,33 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://dv2mg5h6hojap" +path="res://.godot/imported/FSEX302.ttf-d6c5de88d99f4f4cb730ce6669f1a98e.fontdata" + +[deps] + +source_file="res://theme_data/FSEX302.ttf" +dest_files=["res://.godot/imported/FSEX302.ttf-d6c5de88d99f4f4cb730ce6669f1a98e.fontdata"] + +[params] + +Rendering=null +antialiasing=1 +generate_mipmaps=false +multichannel_signed_distance_field=false +msdf_pixel_range=8 +msdf_size=48 +allow_system_fallback=true +force_autohinter=false +hinting=1 +subpixel_positioning=1 +oversampling=0.0 +Fallbacks=null +fallbacks=[] +Compress=null +compress=true +preload=[] +language_support={} +script_support={} +opentype_features={} diff --git a/theme_data/font.tres b/theme_data/font.tres index d7a2d55..0f74117 100644 --- a/theme_data/font.tres +++ b/theme_data/font.tres @@ -1,6 +1,6 @@ -[gd_resource type="DynamicFont" load_steps=2 format=2] +[gd_resource type="FontFile" load_steps=2 format=2] -[ext_resource path="res://theme_data/FSEX302.ttf" type="DynamicFontData" id=1] +[ext_resource path="res://theme_data/FSEX302.ttf" type="FontFile" id=1] [resource] font_data = ExtResource( 1 ) diff --git a/theme_data/interface_theme.tres b/theme_data/interface_theme.tres index 234d95b..66ba97b 100644 --- a/theme_data/interface_theme.tres +++ b/theme_data/interface_theme.tres @@ -1,146 +1,144 @@ -[gd_resource type="Theme" load_steps=17 format=2] +[gd_resource type="Theme" load_steps=17 format=3 uid="uid://2jc1rrh032m0"] -[ext_resource path="res://textures/check_button_off.png" type="Texture" id=1] -[ext_resource path="res://textures/check_button_on.png" type="Texture" id=2] -[ext_resource path="res://textures/release_indicator.png" type="Texture" id=3] -[ext_resource path="res://theme_data/font.tres" type="DynamicFont" id=4] +[ext_resource type="Texture2D" uid="uid://bfdxy0g57g1qw" path="res://textures/check_button_off.png" id="1"] +[ext_resource type="Texture2D" uid="uid://c6moponbwbsqa" path="res://textures/check_button_on.png" id="2"] +[ext_resource type="Texture2D" uid="uid://bvt8l7s2qeplp" path="res://textures/release_indicator.png" id="3"] +[ext_resource type="FontFile" path="res://theme_data/font.tres" id="4"] -[sub_resource type="StyleBoxFlat" id=4] -bg_color = Color( 0.109804, 0.101961, 0.160784, 1 ) +[sub_resource type="StyleBoxFlat" id="4"] +bg_color = Color(0.109804, 0.101961, 0.160784, 1) border_width_left = 1 border_width_top = 1 border_width_right = 1 border_width_bottom = 1 -border_color = Color( 0.168627, 0.156863, 0.247059, 1 ) +border_color = Color(0.168627, 0.156863, 0.247059, 1) -[sub_resource type="StyleBoxFlat" id=5] -bg_color = Color( 0.109804, 0.101961, 0.160784, 1 ) +[sub_resource type="StyleBoxFlat" id="5"] +bg_color = Color(0.109804, 0.101961, 0.160784, 1) draw_center = false border_width_left = 1 border_width_top = 1 border_width_right = 1 border_width_bottom = 1 -border_color = Color( 0.392157, 0.466667, 0.615686, 1 ) +border_color = Color(0.392157, 0.466667, 0.615686, 1) -[sub_resource type="StyleBoxFlat" id=3] -bg_color = Color( 0.270588, 0.294118, 0.443137, 1 ) +[sub_resource type="StyleBoxFlat" id="3"] +bg_color = Color(0.270588, 0.294118, 0.443137, 1) border_width_left = 1 border_width_top = 1 border_width_right = 1 border_width_bottom = 1 -border_color = Color( 0.462745, 0.623529, 0.72549, 1 ) +border_color = Color(0.462745, 0.623529, 0.72549, 1) -[sub_resource type="StyleBoxFlat" id=6] -bg_color = Color( 0.109804, 0.101961, 0.160784, 1 ) +[sub_resource type="StyleBoxFlat" id="6"] +bg_color = Color(0.109804, 0.101961, 0.160784, 1) border_width_left = 1 border_width_top = 1 border_width_right = 1 border_width_bottom = 1 -border_color = Color( 0.168627, 0.156863, 0.247059, 1 ) +border_color = Color(0.168627, 0.156863, 0.247059, 1) -[sub_resource type="StyleBoxFlat" id=8] -bg_color = Color( 0.392157, 0.466667, 0.615686, 1 ) +[sub_resource type="StyleBoxFlat" id="8"] +bg_color = Color(0.392157, 0.466667, 0.615686, 1) border_width_left = 1 border_width_top = 1 border_width_right = 1 border_width_bottom = 1 -border_color = Color( 0.462745, 0.623529, 0.72549, 1 ) +border_color = Color(0.462745, 0.623529, 0.72549, 1) -[sub_resource type="StyleBoxEmpty" id=7] +[sub_resource type="StyleBoxEmpty" id="7"] -[sub_resource type="StyleBoxFlat" id=9] -bg_color = Color( 0.270588, 0.294118, 0.443137, 1 ) +[sub_resource type="StyleBoxFlat" id="9"] +bg_color = Color(0.270588, 0.294118, 0.443137, 1) -[sub_resource type="StyleBoxFlat" id=11] +[sub_resource type="StyleBoxFlat" id="11"] content_margin_top = 5.0 content_margin_bottom = 5.0 -bg_color = Color( 0.109804, 0.101961, 0.160784, 1 ) +bg_color = Color(0.109804, 0.101961, 0.160784, 1) border_width_left = 1 border_width_top = 1 border_width_right = 1 border_width_bottom = 1 -border_color = Color( 0.392157, 0.466667, 0.615686, 1 ) +border_color = Color(0.392157, 0.466667, 0.615686, 1) expand_margin_left = 1.0 -expand_margin_right = 1.0 expand_margin_top = 1.0 +expand_margin_right = 1.0 expand_margin_bottom = 1.0 -[sub_resource type="StyleBoxFlat" id=13] -bg_color = Color( 0.392157, 0.466667, 0.615686, 1 ) +[sub_resource type="StyleBoxFlat" id="13"] +bg_color = Color(0.392157, 0.466667, 0.615686, 1) border_width_left = 1 border_width_top = 1 border_width_right = 1 border_width_bottom = 1 -border_color = Color( 0.462745, 0.623529, 0.72549, 1 ) +border_color = Color(0.462745, 0.623529, 0.72549, 1) -[sub_resource type="StyleBoxFlat" id=14] -bg_color = Color( 0.109804, 0.101961, 0.160784, 1 ) +[sub_resource type="StyleBoxFlat" id="14"] +bg_color = Color(0.109804, 0.101961, 0.160784, 1) border_width_left = 1 border_width_top = 1 border_width_right = 1 border_width_bottom = 1 -border_color = Color( 0.168627, 0.156863, 0.247059, 1 ) +border_color = Color(0.168627, 0.156863, 0.247059, 1) -[sub_resource type="StyleBoxFlat" id=1] -bg_color = Color( 0.0823529, 0.0745098, 0.117647, 1 ) +[sub_resource type="StyleBoxFlat" id="1"] +bg_color = Color(0.0823529, 0.0745098, 0.117647, 1) border_width_left = 2 border_width_top = 2 border_width_right = 2 border_width_bottom = 2 -border_color = Color( 0.203922, 0.227451, 0.384314, 1 ) +border_color = Color(0.203922, 0.227451, 0.384314, 1) -[sub_resource type="StyleBoxFlat" id=12] +[sub_resource type="StyleBoxFlat" id="12"] content_margin_left = 5.0 -content_margin_right = 5.0 content_margin_top = 0.0 -content_margin_bottom = 2.0 -bg_color = Color( 0.270588, 0.294118, 0.443137, 1 ) +content_margin_right = 5.0 +content_margin_bottom = 0.0 +bg_color = Color(0.270588, 0.294118, 0.443137, 1) border_width_left = 1 border_width_top = 1 border_width_right = 1 border_width_bottom = 1 -border_color = Color( 0.392157, 0.466667, 0.615686, 1 ) +border_color = Color(0.392157, 0.466667, 0.615686, 1) [resource] -Button/colors/font_color = Color( 0.270588, 0.294118, 0.443137, 1 ) -Button/colors/font_color_disabled = Color( 0.168627, 0.156863, 0.247059, 1 ) -Button/colors/font_color_focus = Color( 0.270588, 0.294118, 0.443137, 1 ) -Button/colors/font_color_hover = Color( 0.733333, 0.835294, 0.898039, 1 ) -Button/colors/font_color_pressed = Color( 0.796078, 0.894118, 0.952941, 1 ) +Button/colors/font_color = Color(0.270588, 0.294118, 0.443137, 1) +Button/colors/font_color_disabled = Color(0.168627, 0.156863, 0.247059, 1) +Button/colors/font_color_focus = Color(0.270588, 0.294118, 0.443137, 1) +Button/colors/font_color_hover = Color(0.733333, 0.835294, 0.898039, 1) +Button/colors/font_color_pressed = Color(0.796078, 0.894118, 0.952941, 1) Button/constants/hseparation = 0 -Button/styles/disabled = SubResource( 4 ) -Button/styles/focus = SubResource( 5 ) -Button/styles/hover = SubResource( 3 ) -Button/styles/normal = SubResource( 6 ) -Button/styles/pressed = SubResource( 8 ) +Button/styles/disabled = SubResource("4") +Button/styles/focus = SubResource("5") +Button/styles/hover = SubResource("3") +Button/styles/normal = SubResource("6") +Button/styles/pressed = SubResource("8") CheckButton/constants/hseparation = 0 -CheckButton/icons/off = ExtResource( 1 ) -CheckButton/icons/off_disabled = null -CheckButton/icons/on = ExtResource( 2 ) -CheckButton/icons/on_disabled = null -CheckButton/styles/disabled = SubResource( 7 ) -CheckButton/styles/focus = SubResource( 7 ) -CheckButton/styles/hover = SubResource( 7 ) -CheckButton/styles/hover_pressed = SubResource( 7 ) -CheckButton/styles/normal = SubResource( 7 ) -CheckButton/styles/pressed = SubResource( 7 ) -HSlider/icons/grabber = ExtResource( 3 ) -HSlider/icons/grabber_disabled = ExtResource( 3 ) -HSlider/icons/grabber_highlight = ExtResource( 3 ) -HSlider/icons/tick = ExtResource( 3 ) -HSlider/styles/grabber_area = SubResource( 9 ) -HSlider/styles/grabber_area_highlight = SubResource( 9 ) -HSlider/styles/slider = SubResource( 11 ) -Label/colors/font_color_shadow = Color( 0.270588, 0.294118, 0.443137, 1 ) -Label/fonts/font = ExtResource( 4 ) -LineEdit/colors/cursor_color = Color( 1, 1, 1, 0 ) -LineEdit/colors/font_color = Color( 0.733333, 0.835294, 0.898039, 1 ) -LineEdit/colors/font_color_selected = Color( 0.270588, 0.294118, 0.443137, 1 ) -LineEdit/colors/font_color_uneditable = Color( 0.270588, 0.294118, 0.443137, 1 ) -LineEdit/colors/selection_color = Color( 1, 1, 1, 0 ) +CheckButton/icons/checked = ExtResource("2") +CheckButton/icons/unchecked = ExtResource("1") +CheckButton/styles/disabled = SubResource("7") +CheckButton/styles/focus = SubResource("7") +CheckButton/styles/hover = SubResource("7") +CheckButton/styles/hover_pressed = SubResource("7") +CheckButton/styles/normal = SubResource("7") +CheckButton/styles/pressed = SubResource("7") +HSlider/icons/grabber = ExtResource("3") +HSlider/icons/grabber_disabled = ExtResource("3") +HSlider/icons/grabber_highlight = ExtResource("3") +HSlider/icons/tick = ExtResource("3") +HSlider/styles/grabber_area = SubResource("9") +HSlider/styles/grabber_area_highlight = SubResource("9") +HSlider/styles/slider = SubResource("11") +Label/colors/font_color_shadow = Color(0.270588, 0.294118, 0.443137, 1) +Label/fonts/font = ExtResource("4") +LineEdit/colors/cursor_color = Color(1, 1, 1, 0) +LineEdit/colors/font_color = Color(0.733333, 0.835294, 0.898039, 1) +LineEdit/colors/font_color_selected = Color(0.270588, 0.294118, 0.443137, 1) +LineEdit/colors/font_color_uneditable = Color(0.270588, 0.294118, 0.443137, 1) +LineEdit/colors/selection_color = Color(1, 1, 1, 0) LineEdit/constants/minimum_spaces = 0 -LineEdit/styles/focus = SubResource( 13 ) -LineEdit/styles/normal = SubResource( 14 ) -LineEdit/styles/read_only = SubResource( 14 ) -Panel/styles/panel = SubResource( 1 ) -PanelContainer/styles/panel = SubResource( 12 ) +LineEdit/styles/focus = SubResource("13") +LineEdit/styles/normal = SubResource("14") +LineEdit/styles/read_only = SubResource("14") +Panel/styles/panel = SubResource("1") +PanelContainer/styles/panel = SubResource("12") |