feat: initialize main scene, character portraits, and UI/lobby management systems
This commit is contained in:
+21
-24
@@ -24,12 +24,13 @@
|
||||
[ext_resource type="Texture2D" uid="uid://djbin5556lwsx" path="res://assets/graphics/gui/gauge/Segment2_empty.png" id="17_fv21b"]
|
||||
[ext_resource type="Theme" uid="uid://0dhxl4ohyxh8" path="res://assets/graphics/game_setting/setting_theme.tres" id="18_pm3ni"]
|
||||
[ext_resource type="Texture2D" uid="uid://cxp0k2spgs080" path="res://assets/graphics/gui/gauge/gauge_ready.png" id="22_kmb1v"]
|
||||
[ext_resource type="Texture2D" uid="uid://cya6gvac4fqkg" path="res://assets/graphics/characters_potrait/sc_pip.png" id="25_c6pm6"]
|
||||
[ext_resource type="Texture2D" uid="uid://ba80xnybpixw2" path="res://assets/graphics/touch_control/take_tile.png" id="25_qkpxi"]
|
||||
[ext_resource type="Texture2D" uid="uid://bsgqrjx2ity4c" path="res://assets/graphics/touch_control/speed.png" id="26_2f3dj"]
|
||||
[ext_resource type="Texture2D" uid="uid://pwxo4lb87yi" path="res://assets/graphics/touch_control/put_tile.png" id="26_5q0nq"]
|
||||
[ext_resource type="Texture2D" uid="uid://cp0nlmkii1ewp" path="res://assets/graphics/gui/rankings/1st.png" id="26_j8jky"]
|
||||
[ext_resource type="Texture2D" uid="uid://umw3e8nfe3vr" path="res://assets/graphics/touch_control/attack_mode.png" id="27_dgi5k"]
|
||||
[ext_resource type="Texture2D" uid="uid://cfpxknbdsk4u" path="res://assets/graphics/character_selection/sc_characters/sc_unknown.png" id="27_j8jky"]
|
||||
[ext_resource type="Texture2D" uid="uid://kj2qnaps6lsv" path="res://assets/graphics/characters_potrait/sc_gatot.png" id="28_5he1u"]
|
||||
[ext_resource type="Texture2D" uid="uid://ikek8mcpeob5" path="res://assets/graphics/gui/rankings/2nd.png" id="28_fuf3a"]
|
||||
[ext_resource type="Texture2D" uid="uid://bowng12514p53" path="res://assets/graphics/gui/rankings/3rd.png" id="29_pibwh"]
|
||||
[ext_resource type="Texture2D" uid="uid://biun2yvglxgij" path="res://assets/graphics/touch_control/grab_tekton.png" id="36_pibwh"]
|
||||
@@ -1286,9 +1287,9 @@ layout_mode = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxTexture_5he1u")
|
||||
|
||||
[node name="HBox" type="HBoxContainer" parent="LeaderboardPanel/MarginContainer/VBox/Entry1" unique_id=617135879]
|
||||
custom_minimum_size = Vector2(0, 100)
|
||||
custom_minimum_size = Vector2(0, 132)
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 2
|
||||
theme_override_constants/separation = 5
|
||||
|
||||
[node name="RankLabel" type="Label" parent="LeaderboardPanel/MarginContainer/VBox/Entry1/HBox" unique_id=828754165]
|
||||
custom_minimum_size = Vector2(70, 0)
|
||||
@@ -1303,10 +1304,9 @@ horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="PortraitRect" type="TextureRect" parent="LeaderboardPanel/MarginContainer/VBox/Entry1/HBox" unique_id=1512406425]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
custom_minimum_size = Vector2(100, 132)
|
||||
layout_mode = 2
|
||||
texture = ExtResource("27_j8jky")
|
||||
expand_mode = 5
|
||||
texture = ExtResource("25_c6pm6")
|
||||
stretch_mode = 6
|
||||
|
||||
[node name="SplitterContainer" type="VBoxContainer" parent="LeaderboardPanel/MarginContainer/VBox/Entry1/HBox" unique_id=1068203836]
|
||||
@@ -1370,7 +1370,7 @@ theme_override_styles/panel = SubResource("StyleBoxTexture_5poiv")
|
||||
|
||||
[node name="HBox" type="HBoxContainer" parent="LeaderboardPanel/MarginContainer/VBox/Entry2" unique_id=1942870621]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 0
|
||||
theme_override_constants/separation = 5
|
||||
|
||||
[node name="RankLabel" type="Label" parent="LeaderboardPanel/MarginContainer/VBox/Entry2/HBox" unique_id=1946714047]
|
||||
custom_minimum_size = Vector2(70, 0)
|
||||
@@ -1385,15 +1385,14 @@ horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="PortraitRect" type="TextureRect" parent="LeaderboardPanel/MarginContainer/VBox/Entry2/HBox" unique_id=46217188]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
custom_minimum_size = Vector2(100, 132)
|
||||
layout_mode = 2
|
||||
texture = ExtResource("27_j8jky")
|
||||
expand_mode = 1
|
||||
texture = ExtResource("25_c6pm6")
|
||||
stretch_mode = 6
|
||||
|
||||
[node name="SplitterContainer" type="VBoxContainer" parent="LeaderboardPanel/MarginContainer/VBox/Entry2/HBox" unique_id=2134048836]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
theme_override_constants/separation = 18
|
||||
alignment = 1
|
||||
|
||||
[node name="SectionA" type="HBoxContainer" parent="LeaderboardPanel/MarginContainer/VBox/Entry2/HBox/SplitterContainer" unique_id=1404467822]
|
||||
@@ -1422,7 +1421,7 @@ layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="ScoreLabel" type="Label" parent="LeaderboardPanel/MarginContainer/VBox/Entry2/HBox/SplitterContainer/SectionB" unique_id=1606855267]
|
||||
custom_minimum_size = Vector2(120, 0)
|
||||
custom_minimum_size = Vector2(110, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_fonts/font = ExtResource("13_j8jky")
|
||||
@@ -1453,7 +1452,7 @@ theme_override_styles/panel = SubResource("StyleBoxTexture_2cjbq")
|
||||
|
||||
[node name="HBox" type="HBoxContainer" parent="LeaderboardPanel/MarginContainer/VBox/Entry3" unique_id=1214564201]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 2
|
||||
theme_override_constants/separation = 5
|
||||
|
||||
[node name="RankLabel" type="Label" parent="LeaderboardPanel/MarginContainer/VBox/Entry3/HBox" unique_id=377846102]
|
||||
custom_minimum_size = Vector2(70, 0)
|
||||
@@ -1468,15 +1467,14 @@ horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="PortraitRect" type="TextureRect" parent="LeaderboardPanel/MarginContainer/VBox/Entry3/HBox" unique_id=383855502]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
custom_minimum_size = Vector2(100, 132)
|
||||
layout_mode = 2
|
||||
texture = ExtResource("27_j8jky")
|
||||
expand_mode = 1
|
||||
texture = ExtResource("28_5he1u")
|
||||
stretch_mode = 6
|
||||
|
||||
[node name="SplitterContainer" type="VBoxContainer" parent="LeaderboardPanel/MarginContainer/VBox/Entry3/HBox" unique_id=1969616094]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
theme_override_constants/separation = 18
|
||||
alignment = 1
|
||||
|
||||
[node name="SectionA" type="HBoxContainer" parent="LeaderboardPanel/MarginContainer/VBox/Entry3/HBox/SplitterContainer" unique_id=1627755679]
|
||||
@@ -1505,7 +1503,7 @@ layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="ScoreLabel" type="Label" parent="LeaderboardPanel/MarginContainer/VBox/Entry3/HBox/SplitterContainer/SectionB" unique_id=246464797]
|
||||
custom_minimum_size = Vector2(120, 0)
|
||||
custom_minimum_size = Vector2(110, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_fonts/font = ExtResource("13_j8jky")
|
||||
@@ -1536,7 +1534,7 @@ theme_override_styles/panel = SubResource("StyleBoxTexture_cjqg0")
|
||||
|
||||
[node name="HBox" type="HBoxContainer" parent="LeaderboardPanel/MarginContainer/VBox/Entry4" unique_id=1110779657]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 2
|
||||
theme_override_constants/separation = 5
|
||||
|
||||
[node name="RankLabel" type="Label" parent="LeaderboardPanel/MarginContainer/VBox/Entry4/HBox" unique_id=171801451]
|
||||
custom_minimum_size = Vector2(70, 0)
|
||||
@@ -1551,15 +1549,14 @@ horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="PortraitRect" type="TextureRect" parent="LeaderboardPanel/MarginContainer/VBox/Entry4/HBox" unique_id=1346078271]
|
||||
custom_minimum_size = Vector2(100, 100)
|
||||
custom_minimum_size = Vector2(100, 132)
|
||||
layout_mode = 2
|
||||
texture = ExtResource("27_j8jky")
|
||||
expand_mode = 1
|
||||
texture = ExtResource("28_5he1u")
|
||||
stretch_mode = 6
|
||||
|
||||
[node name="SplitterContainer" type="VBoxContainer" parent="LeaderboardPanel/MarginContainer/VBox/Entry4/HBox" unique_id=249320303]
|
||||
layout_mode = 2
|
||||
theme_override_constants/separation = 8
|
||||
theme_override_constants/separation = 18
|
||||
alignment = 1
|
||||
|
||||
[node name="SectionA" type="HBoxContainer" parent="LeaderboardPanel/MarginContainer/VBox/Entry4/HBox/SplitterContainer" unique_id=404059862]
|
||||
@@ -1588,7 +1585,7 @@ layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="ScoreLabel" type="Label" parent="LeaderboardPanel/MarginContainer/VBox/Entry4/HBox/SplitterContainer/SectionB" unique_id=1975407740]
|
||||
custom_minimum_size = Vector2(120, 0)
|
||||
custom_minimum_size = Vector2(110, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
theme_override_fonts/font = ExtResource("13_j8jky")
|
||||
|
||||
+11
-4
@@ -353,14 +353,21 @@ func _ready():
|
||||
@onready var floor_spawn_bot: AnimatedSprite3D = $floor_spawn_bot
|
||||
@onready var floor_spawn_top: AnimatedSprite3D = $floor_spawn_top
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("grab_item"):
|
||||
floor_spawn_bot.play("floor_spawn_bot")
|
||||
floor_spawn_top.play("floor_spawn_top")
|
||||
#func _input(event: InputEvent) -> void:
|
||||
#if event.is_action_pressed("grab_item"):
|
||||
#play_floor_spawn()
|
||||
|
||||
func play_floor_spawn():
|
||||
floor_spawn_bot.visible = true
|
||||
floor_spawn_top.visible = true
|
||||
floor_spawn_bot.play("floor_spawn_bot")
|
||||
floor_spawn_top.play("floor_spawn_top")
|
||||
|
||||
# Wait for animation to finish then hide.
|
||||
# We assume both animations have roughly similar lengths.
|
||||
await floor_spawn_bot.animation_finished
|
||||
floor_spawn_bot.visible = false
|
||||
floor_spawn_top.visible = false
|
||||
|
||||
func _init_managers():
|
||||
movement_manager = load("res://scripts/managers/player_movement_manager.gd").new()
|
||||
|
||||
Reference in New Issue
Block a user