From 65bf9e0c8637561ddd3a39adc237f5c2b73d3688 Mon Sep 17 00:00:00 2001 From: Exobyt Date: Tue, 20 Aug 2024 16:59:16 +0200 Subject: [PATCH] Graphical Overhaul --- Theme/labelSmall.tres | 6 ++ assets/Examples/Expand.pxo | Bin 0 -> 1976 bytes assets/Examples/ExpandExample.png | Bin 0 -> 1470 bytes assets/Examples/ExpandExample.png.import | 34 +++++++ assets/background.png | Bin 0 -> 284 bytes assets/background.png.import | 34 +++++++ assets/background.pxo | Bin 0 -> 661 bytes scenes/Globals/global.gd | 4 +- scenes/Grid/grid.tscn | 23 +++-- scenes/Main/main.gd | 33 +++++-- scenes/Main/main.tscn | 73 ++++++++++++++- scenes/Menu/start_menu.gd | 15 +++ scenes/Menu/start_menu.tscn | 114 +++++++++++++++++++++++ scenes/ScoreOverview/score_overview.gd | 10 +- scenes/ScoreOverview/score_overview.tscn | 15 ++- 15 files changed, 338 insertions(+), 23 deletions(-) create mode 100644 Theme/labelSmall.tres create mode 100644 assets/Examples/Expand.pxo create mode 100644 assets/Examples/ExpandExample.png create mode 100644 assets/Examples/ExpandExample.png.import create mode 100644 assets/background.png create mode 100644 assets/background.png.import create mode 100644 assets/background.pxo create mode 100644 scenes/Menu/start_menu.gd create mode 100644 scenes/Menu/start_menu.tscn diff --git a/Theme/labelSmall.tres b/Theme/labelSmall.tres new file mode 100644 index 0000000..ab122d1 --- /dev/null +++ b/Theme/labelSmall.tres @@ -0,0 +1,6 @@ +[gd_resource type="LabelSettings" format=3 uid="uid://4dxhnwmd773s"] + +[resource] +font_size = 32 +outline_size = 10 +outline_color = Color(0, 0, 0, 1) diff --git a/assets/Examples/Expand.pxo b/assets/Examples/Expand.pxo new file mode 100644 index 0000000000000000000000000000000000000000..37f1826a8077c108674771920deb458b35d2b9b1 GIT binary patch literal 1976 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 literal 0 HcmV?d00001 diff --git a/assets/Examples/ExpandExample.png.import b/assets/Examples/ExpandExample.png.import new file mode 100644 index 0000000..0ae5aab --- /dev/null +++ b/assets/Examples/ExpandExample.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://moh5papp3x0c" +path="res://.godot/imported/ExpandExample.png-e4688e4e3f66e7f36c13c14009a169fe.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/Examples/ExpandExample.png" +dest_files=["res://.godot/imported/ExpandExample.png-e4688e4e3f66e7f36c13c14009a169fe.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +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/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/assets/background.png b/assets/background.png new file mode 100644 index 0000000000000000000000000000000000000000..4452d1080ed7a0b7484a534cac32c1e43f398152 GIT binary patch literal 284 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=jKx9jP7LeL$-D$|u6epRhE&XX zd)rW`$v}i5u+)No`O}mb59wrYspkvdgo$XHd8auY+@F8@+aBKy?|+}!ba}(N*H?BO zpKj}S-bk+QEw6mxmidKFdi6|P3s_B9FEGtw%3wVEDgXO_o#gw|?HQpWzKmNMmN7&* z1T*L^&}BwVm&RqQ`nV0qgS<}xmeDc20|8JE$U4A@y4@37y@twY{ SH7H?P@%r!_wH zlj+(ntHOhS=OwLDa^~rknxw(mv*p$9^MAg&-xi(5f81_yr1yK$lLzg?sKAZ{W)o z6`oSb7QV1&$wc!zm0RD~x}~1g**i;Z+3zxgejPo4R4)KI(cO~;LO_bm24FR?Z3;%er)yXP>SeaTBZ}|51M!^FH94rU(R(8}a6)RBqd*fb0ai7Gl>aPx=drvKS*;#V_ z<-ad`UjAM3{Nnof{dIqT<$qiL9Ar2YJo{J0{^nmaNapM7|M%)Q{C^*Loh`td5g66D q697mvFg-v4JUO6iL-z?tJw#g`kiz4y0B=?{kYXkvYyi^#!MXtJ_5+3h literal 0 HcmV?d00001 diff --git a/scenes/Globals/global.gd b/scenes/Globals/global.gd index e2d306e..aba9705 100644 --- a/scenes/Globals/global.gd +++ b/scenes/Globals/global.gd @@ -28,7 +28,7 @@ var lastUID = 1 var currentUID = lastUID -var time = 120 +var time = 60 var lost = false @@ -42,7 +42,7 @@ func resetGame(): points = 0 lastUID = 0 currentUID = lastUID - time = 120 + time = 60 lost = false func _ready() -> void: diff --git a/scenes/Grid/grid.tscn b/scenes/Grid/grid.tscn index 0f5ea6e..269513a 100644 --- a/scenes/Grid/grid.tscn +++ b/scenes/Grid/grid.tscn @@ -1,6 +1,7 @@ -[gd_scene load_steps=19 format=3 uid="uid://dwl4lotl1d3ij"] +[gd_scene load_steps=20 format=3 uid="uid://dwl4lotl1d3ij"] [ext_resource type="Script" path="res://scenes/Grid/grid.gd" id="1_vie5m"] +[ext_resource type="Texture2D" uid="uid://cj6fsj1ac11a1" path="res://assets/background.png" id="2_vakrw"] [ext_resource type="PackedScene" uid="uid://bm7rshwf6pjb" path="res://scenes/Grid/border.tscn" id="4_3j08q"] [ext_resource type="PackedScene" uid="uid://duubii5uu3lgq" path="res://scenes/Grid/row_test.tscn" id="4_si3v6"] [ext_resource type="PackedScene" uid="uid://dvrotjxom4u6d" path="res://scenes/Grid/bottom.tscn" id="5_14njh"] @@ -29,16 +30,18 @@ size = Vector2(640, 256) [node name="Grid" type="Node2D"] script = ExtResource("1_vie5m") -[node name="Sprite2D" type="Sprite2D" parent="."] -position = Vector2(7.62939e-06, 7.62939e-06) -scale = Vector2(108.422, 96.375) - [node name="MeshInstance2D" type="MeshInstance2D" parent="."] modulate = Color(0.359096, 0.426588, 0.599397, 1) position = Vector2(320, 640) scale = Vector2(640, 1280) mesh = SubResource("QuadMesh_qfjsc") +[node name="TextureRect" type="TextureRect" parent="."] +offset_right = 640.0 +offset_bottom = 1280.0 +texture = ExtResource("2_vakrw") +stretch_mode = 1 + [node name="Blocks" type="Node2D" parent="."] [node name="Spawnpoint" type="Marker2D" parent="."] @@ -154,7 +157,11 @@ script = ExtResource("6_mbeib") [node name="Control" type="Control" parent="Camera2D/CanvasLayer"] layout_mode = 3 -anchors_preset = 0 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 theme = ExtResource("7_38u5s") script = ExtResource("8_4bfjb") @@ -275,6 +282,10 @@ action_mode = 0 icon = ExtResource("14_i1yud") icon_alignment = 1 +[node name="Background" type="Sprite2D" parent="."] +position = Vector2(320, 640) +scale = Vector2(10, 20) + [connection signal="timeout" from="Ticker" to="." method="_on_ticker_timeout"] [connection signal="timeout" from="TurnTick" to="." method="_on_turn_tick_timeout"] [connection signal="timeout" from="GameTimer" to="." method="_on_game_timer_timeout"] diff --git a/scenes/Main/main.gd b/scenes/Main/main.gd index 5c78dbe..38342f6 100644 --- a/scenes/Main/main.gd +++ b/scenes/Main/main.gd @@ -1,21 +1,34 @@ extends Node +@onready var scenes = $scenes + # Called when the node enters the scene tree for the first time. func _ready() -> void: - loadGrid() + loadStartMenu() func _physics_process(delta: float) -> void: - if get_children() != []: - if GLOBAL.lost and get_child(0).name == "Grid": + if scenes.get_children() != []: + if GLOBAL.lost and scenes.get_child(0).name == "Grid": scoreOverview() func loadGrid(): - if $ScoreOverview != null: - $ScoreOverview.queue_free() - add_child(load("res://scenes/Grid/grid.tscn").instantiate()) - $Grid.toggleButton() + if $scenes/ScoreOverview != null: + $scenes/ScoreOverview.queue_free() + if $scenes/StartMenu != null: + $scenes/StartMenu.queue_free() + scenes.add_child(load("res://scenes/Grid/grid.tscn").instantiate()) + $scenes/Grid.toggleButton() func scoreOverview(): - if $Grid != null: - $Grid.queue_free() - add_child(load("res://scenes/ScoreOverview/score_overview.tscn").instantiate()) + if $scenes/Grid != null: + $scenes/Grid.queue_free() + if $scenes/StartMenu != null: + $scenes/StartMenu.queue_free() + scenes.add_child(load("res://scenes/ScoreOverview/score_overview.tscn").instantiate()) + +func loadStartMenu(): + if $scenes/ScoreOverview != null: + $scenes/ScoreOverview.queue_free() + if $scenes/Grid != null: + $scenes/Grid.queue_free() + scenes.add_child(load("res://scenes/Menu/start_menu.tscn").instantiate()) diff --git a/scenes/Main/main.tscn b/scenes/Main/main.tscn index 57d4f99..269ea11 100644 --- a/scenes/Main/main.tscn +++ b/scenes/Main/main.tscn @@ -1,6 +1,77 @@ -[gd_scene load_steps=2 format=3 uid="uid://bq5hrqgv0f6hp"] +[gd_scene load_steps=3 format=3 uid="uid://bq5hrqgv0f6hp"] [ext_resource type="Script" path="res://scenes/Main/main.gd" id="1_dtde6"] +[ext_resource type="Texture2D" uid="uid://cbuxv7iwn0qm7" path="res://assets/Blocks/Block.png" id="2_5ae6b"] [node name="main" type="Node"] script = ExtResource("1_dtde6") + +[node name="ColorRect" type="ColorRect" parent="."] +show_behind_parent = true +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = -832.0 +offset_top = -1008.0 +offset_right = 674.0 +offset_bottom = -1991.0 +grow_horizontal = 2 +grow_vertical = 2 +scale = Vector2(0.996259, 9.13391) +color = Color(0.000693898, 0.000693898, 0.000693898, 1) + +[node name="CPUParticles2D" type="CPUParticles2D" parent="ColorRect"] +modulate = Color(1, 1, 1, 0.478431) +position = Vector2(1300.87, 37.6618) +scale = Vector2(0.501878, 0.054741) +amount = 20 +lifetime = 5.0 +preprocess = 5.0 +speed_scale = 0.5 +local_coords = true +texture = ExtResource("2_5ae6b") +emission_shape = 3 +emission_rect_extents = Vector2(2000, 0) +spread = 0.0 +tangential_accel_max = 100.0 +damping_max = 100.0 +scale_amount_max = 2.0 +color = Color(1, 0, 0, 1) + +[node name="CPUParticles2D2" type="CPUParticles2D" parent="ColorRect"] +modulate = Color(1, 1, 1, 0.478431) +position = Vector2(1300.87, 37.6618) +scale = Vector2(0.501878, 0.054741) +amount = 20 +lifetime = 5.0 +preprocess = 5.0 +speed_scale = 0.5 +local_coords = true +texture = ExtResource("2_5ae6b") +emission_shape = 3 +emission_rect_extents = Vector2(2000, 0) +spread = 0.0 +tangential_accel_max = 100.0 +damping_max = 100.0 +scale_amount_max = 2.0 +color = Color(0, 0.0499997, 1, 1) + +[node name="CPUParticles2D3" type="CPUParticles2D" parent="ColorRect"] +modulate = Color(1, 1, 1, 0.478431) +position = Vector2(1300.87, 37.6618) +scale = Vector2(0.501878, 0.054741) +amount = 20 +lifetime = 5.0 +preprocess = 5.0 +speed_scale = 0.5 +local_coords = true +texture = ExtResource("2_5ae6b") +emission_shape = 3 +emission_rect_extents = Vector2(2000, 0) +spread = 0.0 +tangential_accel_max = 100.0 +damping_max = 100.0 +scale_amount_max = 2.0 +color = Color(0.966667, 1, 0, 1) + +[node name="scenes" type="Node" parent="."] diff --git a/scenes/Menu/start_menu.gd b/scenes/Menu/start_menu.gd new file mode 100644 index 0000000..719c1de --- /dev/null +++ b/scenes/Menu/start_menu.gd @@ -0,0 +1,15 @@ +extends Control + + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass + + +func _on_start_button_pressed() -> void: + get_parent().get_parent().loadGrid() diff --git a/scenes/Menu/start_menu.tscn b/scenes/Menu/start_menu.tscn new file mode 100644 index 0000000..8c5b908 --- /dev/null +++ b/scenes/Menu/start_menu.tscn @@ -0,0 +1,114 @@ +[gd_scene load_steps=9 format=3 uid="uid://b8cyvtgn8kxnr"] + +[ext_resource type="Theme" uid="uid://1nebbd65iyce" path="res://Theme/main.tres" id="1_t0oee"] +[ext_resource type="Script" path="res://scenes/Menu/start_menu.gd" id="2_1x51p"] +[ext_resource type="LabelSettings" uid="uid://cd783ubpcytc8" path="res://Theme/label.tres" id="3_wtvc4"] +[ext_resource type="Texture2D" uid="uid://cbuxv7iwn0qm7" path="res://assets/Blocks/Block.png" id="4_kxydi"] +[ext_resource type="LabelSettings" uid="uid://4dxhnwmd773s" path="res://Theme/labelSmall.tres" id="5_mn7xi"] +[ext_resource type="Texture2D" uid="uid://dni2qahrw2p0k" path="res://assets/Blocks/SpecialBlock.png" id="6_rda4c"] +[ext_resource type="Texture2D" uid="uid://moh5papp3x0c" path="res://assets/Examples/ExpandExample.png" id="7_mn4r0"] +[ext_resource type="Texture2D" uid="uid://jmobplsqdy6o" path="res://assets/Blocks/ExpandBlock.png" id="7_tut8s"] + +[node name="StartMenu" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme = ExtResource("1_t0oee") +script = ExtResource("2_1x51p") + +[node name="StartButton" type="Button" parent="."] +layout_mode = 1 +anchors_preset = 7 +anchor_left = 0.5 +anchor_top = 1.0 +anchor_right = 0.5 +anchor_bottom = 1.0 +offset_left = -156.0 +offset_top = -320.0 +offset_right = 4.0 +offset_bottom = -224.0 +grow_horizontal = 2 +grow_vertical = 0 +scale = Vector2(2, 2) +text = "Start" + +[node name="Label" type="Label" parent="."] +layout_mode = 1 +anchors_preset = 5 +anchor_left = 0.5 +anchor_right = 0.5 +offset_left = -156.0 +offset_top = 64.0 +offset_right = 164.0 +offset_bottom = 192.0 +grow_horizontal = 2 +text = "Texpand" +label_settings = ExtResource("3_wtvc4") +horizontal_alignment = 1 +vertical_alignment = 1 + +[node name="VBoxContainer" type="VBoxContainer" parent="."] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -245.0 +offset_top = -90.0 +offset_right = 245.0 +offset_bottom = 90.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"] +layout_mode = 2 +alignment = 1 + +[node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer"] +layout_mode = 2 +texture = ExtResource("4_kxydi") + +[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"] +layout_mode = 2 +text = " Gives 1 Point " +label_settings = ExtResource("5_mn7xi") + +[node name="HBoxContainer2" type="HBoxContainer" parent="VBoxContainer"] +layout_mode = 2 +alignment = 1 + +[node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer2"] +layout_mode = 2 +texture = ExtResource("6_rda4c") + +[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer2"] +layout_mode = 2 +text = " Gives 3 Points " +label_settings = ExtResource("5_mn7xi") + +[node name="HBoxContainer4" type="HBoxContainer" parent="VBoxContainer"] +layout_mode = 2 +alignment = 1 + +[node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer4"] +layout_mode = 2 +texture = ExtResource("7_tut8s") + +[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer4"] +layout_mode = 2 +text = " Gives x2 Points" +label_settings = ExtResource("5_mn7xi") + +[node name="HBoxContainer3" type="HBoxContainer" parent="VBoxContainer"] +layout_mode = 2 +alignment = 1 + +[node name="TextureRect" type="TextureRect" parent="VBoxContainer/HBoxContainer3"] +layout_mode = 2 +texture = ExtResource("7_mn4r0") + +[connection signal="pressed" from="StartButton" to="." method="_on_start_button_pressed"] diff --git a/scenes/ScoreOverview/score_overview.gd b/scenes/ScoreOverview/score_overview.gd index b707949..df56329 100644 --- a/scenes/ScoreOverview/score_overview.gd +++ b/scenes/ScoreOverview/score_overview.gd @@ -15,5 +15,11 @@ func _process(delta: float) -> void: pass -func _on_left_button_pressed() -> void: - get_parent().loadGrid() + + +func _on_play_again_button_pressed() -> void: + get_parent().get_parent().laodGrid() + + +func _on_home_pressed() -> void: + get_parent().get_parent().loadStartMenu() diff --git a/scenes/ScoreOverview/score_overview.tscn b/scenes/ScoreOverview/score_overview.tscn index 95fd4ad..59c7512 100644 --- a/scenes/ScoreOverview/score_overview.tscn +++ b/scenes/ScoreOverview/score_overview.tscn @@ -62,11 +62,22 @@ layout_mode = 2 label_settings = ExtResource("4_dfemu") horizontal_alignment = 1 -[node name="left_Button" type="Button" parent="VBoxContainer3"] +[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer3"] +layout_mode = 2 +alignment = 1 + +[node name="playAgainButton" type="Button" parent="VBoxContainer3/HBoxContainer"] layout_mode = 2 action_mode = 0 text = "Play Again" icon = ExtResource("5_xkigm") expand_icon = true -[connection signal="pressed" from="VBoxContainer3/left_Button" to="." method="_on_left_button_pressed"] +[node name="Home" type="Button" parent="VBoxContainer3/HBoxContainer"] +layout_mode = 2 +action_mode = 0 +text = " Home " +expand_icon = true + +[connection signal="pressed" from="VBoxContainer3/HBoxContainer/playAgainButton" to="." method="_on_play_again_button_pressed"] +[connection signal="pressed" from="VBoxContainer3/HBoxContainer/Home" to="." method="_on_home_pressed"]