Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI update #95

Merged
merged 48 commits into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
0dc3cc0
Remove unused method
DarkStoorM Apr 1, 2024
ef2db3a
Retrieve the node once, extract and refactor animation switch
DarkStoorM Apr 1, 2024
02bf0a1
Migrate sprite rotation from new codebase
DarkStoorM Apr 1, 2024
608cff1
Extract and reorder methods
DarkStoorM Apr 2, 2024
03c5865
Extract physics methods, change sprite flipping logic
DarkStoorM Apr 2, 2024
9d92dd2
Extract physics methods, change sprite flipping logic
DarkStoorM Apr 2, 2024
908f63d
Merge branch 'main' of https://github.com/DarkStoorM/JumpRoyale
DarkStoorM Apr 2, 2024
aa1782f
Merge branch 'main' of https://github.com/DarkStoorM/JumpRoyale
DarkStoorM Apr 13, 2024
5b898fd
Update UI elements
DarkStoorM Aug 19, 2024
d20c5be
Update font settings
DarkStoorM Aug 19, 2024
52de9dc
Add extra image with examples
DarkStoorM Aug 21, 2024
5e8c585
Add game banner
DarkStoorM Aug 21, 2024
e701ec8
Fix letter color, sprinkle some pixels on border
DarkStoorM Aug 21, 2024
5cbc956
Update LobbyOverlay
DarkStoorM Aug 21, 2024
89de836
Refactor + change Modulation
DarkStoorM Aug 24, 2024
b2731fc
Extract component lookup
DarkStoorM Aug 24, 2024
e787805
Replace `char` choices table with image
DarkStoorM Aug 24, 2024
d15d9be
Adjust for conflict fix
DarkStoorM Aug 24, 2024
70d407e
Prevent revival before match ends (#25)
DarkStoorM Aug 24, 2024
d52d583
Gfx update (#26)
DarkStoorM Aug 24, 2024
2a03aed
Merge branch 'dev' of https://github.com/DarkStoorM/JumpRoyale into u…
DarkStoorM Aug 24, 2024
0ad66eb
Merge branch 'main' into ui-update
DarkStoorM Aug 27, 2024
644d4da
Make the UI more simple
DarkStoorM Aug 27, 2024
cb252c7
Update wording on lobby overlay
DarkStoorM Aug 28, 2024
d539a90
Add instruction bots that automatically jump
DarkStoorM Aug 28, 2024
2a04300
Resolve conflict from `gfx-update`
DarkStoorM Aug 28, 2024
9d84230
Resolve `Arena.cs` conflict from `gfx-update`
DarkStoorM Aug 28, 2024
d691e00
Resolve resource conflicts from `gfx-update`
DarkStoorM Aug 28, 2024
7a92ead
Merge branch 'AdamLearns:main' into main
DarkStoorM Aug 28, 2024
270ff1b
Update UI elements
DarkStoorM Aug 19, 2024
d952618
Update font settings
DarkStoorM Aug 19, 2024
bf939cd
Add extra image with examples
DarkStoorM Aug 21, 2024
0b91f41
Add game banner
DarkStoorM Aug 21, 2024
43b3a15
Fix letter color, sprinkle some pixels on border
DarkStoorM Aug 21, 2024
c5f7633
Update LobbyOverlay
DarkStoorM Aug 21, 2024
8dc7603
Extract component lookup
DarkStoorM Aug 24, 2024
a72ca9b
Replace `char` choices table with image
DarkStoorM Aug 24, 2024
dfd7a86
Gfx update (#26)
DarkStoorM Aug 24, 2024
5277bd9
Make the UI more simple
DarkStoorM Aug 27, 2024
01bbbca
Update wording on lobby overlay
DarkStoorM Aug 28, 2024
a746b96
Add instruction bots that automatically jump
DarkStoorM Aug 28, 2024
dca184a
Resolve conflict from `gfx-update`
DarkStoorM Aug 28, 2024
fa3f45c
Resolve resource conflicts from `gfx-update`
DarkStoorM Aug 28, 2024
c3a67f4
Merge branch 'ui-update' of https://github.com/DarkStoorM/JumpRoyale …
DarkStoorM Aug 28, 2024
95edc93
Apply formatting
DarkStoorM Aug 28, 2024
1e52251
Hide the game overlay on start
DarkStoorM Aug 28, 2024
fba4b44
Prevent accessing deleted bots
AdamLearns Sep 2, 2024
19e9c22
Make instructions clearer
AdamLearns Sep 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ RichTextLabel/constants/shadow_outline_size = 0
RichTextLabel/constants/table_h_separation = 0
RichTextLabel/constants/table_v_separation = 0
RichTextLabel/constants/text_highlight_h_padding = 0
RichTextLabel/constants/text_highlight_v_padding = 0
RichTextLabel/constants/text_highlight_v_padding = 0
7 changes: 7 additions & 0 deletions JumpRoyale/Resources/LobbyLabelSettings.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[gd_resource type="LabelSettings" format=3 uid="uid://b4hkbiiau0wu3"]

[resource]
font_size = 25
shadow_size = 2
shadow_color = Color(0, 0, 0, 0.196078)
shadow_offset = Vector2(2, 2)
8 changes: 8 additions & 0 deletions JumpRoyale/Resources/RichTextLabelTheme.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[gd_resource type="Theme" format=3 uid="uid://keary5vfopmg"]

[resource]
RichTextLabel/colors/font_shadow_color = Color(0, 0, 0, 0.196078)
RichTextLabel/constants/shadow_offset_x = 2
RichTextLabel/constants/shadow_offset_y = 2
RichTextLabel/constants/shadow_outline_size = 2
RichTextLabel/font_sizes/normal_font_size = 25
File renamed without changes.
12 changes: 12 additions & 0 deletions JumpRoyale/Resources/UIBackground.tres
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[gd_resource type="StyleBoxTexture" load_steps=2 format=3 uid="uid://ccjbiokdyflra"]

[ext_resource type="Texture2D" uid="uid://bsvr8kau48we" path="res://assets/sprites/UI.png" id="1_2j1mw"]

[resource]
texture = ExtResource("1_2j1mw")
texture_margin_left = 16.0
texture_margin_top = 16.0
texture_margin_right = 16.0
texture_margin_bottom = 16.0
region_rect = Rect2(16, 0, 48, 48)
modulate_color = Color(1, 1, 1, 0.784314)
34 changes: 34 additions & 0 deletions JumpRoyale/assets/sprites/Instructions.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://bhpc2dtu8rgmh"
path="res://.godot/imported/Instructions.png-a29b034a2e229ddd8df04c6edee61df5.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/sprites/Instructions.png"
dest_files=["res://.godot/imported/Instructions.png-a29b034a2e229ddd8df04c6edee61df5.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
Binary file added JumpRoyale/assets/sprites/UI.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions JumpRoyale/assets/sprites/UI.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://bsvr8kau48we"
path="res://.godot/imported/UI.png-e2d90aaeb743ee71811c0e6b068775de.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/sprites/UI.png"
dest_files=["res://.godot/imported/UI.png-e2d90aaeb743ee71811c0e6b068775de.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
5 changes: 5 additions & 0 deletions JumpRoyale/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ project/assembly_name="Jump Royale"

enabled=PackedStringArray()

[gui]

theme/default_font_hinting=0
theme/default_font_multichannel_signed_distance_field=true

[input]

ui_left={
Expand Down
28 changes: 17 additions & 11 deletions JumpRoyale/scenes/Arena.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[ext_resource type="Script" path="res://src/Arena.cs" id="1_5vcv2"]
[ext_resource type="PackedScene" uid="uid://bhke5myraos1m" path="res://scenes/Jumper.tscn" id="2_6nvro"]
[ext_resource type="TileSet" uid="uid://dxyjk1rm2jjjv" path="res://scenes/TileSet.tres" id="3_cg3j3"]
[ext_resource type="TileSet" uid="uid://dxyjk1rm2jjjv" path="res://Resources/TileSet.tres" id="3_cg3j3"]
[ext_resource type="PackedScene" uid="uid://bvl6vnp0t3iy6" path="res://scenes/LobbyOverlay.tscn" id="4_2j1ab"]
[ext_resource type="PackedScene" uid="uid://c5b384kxo0vyl" path="res://scenes/GameOverlay.tscn" id="5_5yfyu"]
[ext_resource type="PackedScene" uid="uid://cibfccggfqmwh" path="res://scenes/EndScreenOverlay.tscn" id="6_eibxd"]
Expand All @@ -23,14 +23,20 @@ position_smoothing_speed = 0.02

[node name="LobbyOverlay" parent="CanvasLayer" instance=ExtResource("4_2j1ab")]
z_index = 1
anchors_preset = 0
anchor_right = 0.0
offset_left = 549.0
offset_right = 1464.0
grow_horizontal = 1
size_flags_horizontal = 8
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -253.0
offset_top = -390.0
offset_right = 253.0
offset_bottom = -130.0
grow_horizontal = 2
grow_vertical = 2

[node name="GameOverlay" parent="CanvasLayer" instance=ExtResource("5_5yfyu")]
visible = false
z_index = 1
offset_left = -447.0
offset_top = 15.0
Expand All @@ -39,10 +45,10 @@ offset_bottom = 515.0

[node name="EndScreenOverlay" parent="CanvasLayer" instance=ExtResource("6_eibxd")]
visible = false
offset_left = -1877.0
offset_top = 29.0
offset_right = -70.0
offset_bottom = 432.0
offset_left = 48.0
offset_top = 48.0
offset_right = 191.0
offset_bottom = 103.0

[node name="TimerOverlay" parent="CanvasLayer" instance=ExtResource("7_f58o7")]
anchors_preset = 0
Expand Down
26 changes: 17 additions & 9 deletions JumpRoyale/scenes/EndScreenOverlay.tscn
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
[gd_scene format=3 uid="uid://cibfccggfqmwh"]
[gd_scene load_steps=3 format=3 uid="uid://cibfccggfqmwh"]

[node name="EndScreenOverlay" type="VFlowContainer"]
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -249.0
offset_bottom = 440.0
grow_horizontal = 0
[ext_resource type="StyleBox" uid="uid://ccjbiokdyflra" path="res://Resources/UIBackground.tres" id="1_fpa8u"]

[node name="Output" type="Label" parent="."]
[sub_resource type="LabelSettings" id="LabelSettings_ifyhp"]
shadow_color = Color(0, 0, 0, 0.392157)

[node name="EndScreenOverlay" type="PanelContainer"]
offset_right = 111.0
offset_bottom = 23.0
theme_override_styles/panel = ExtResource("1_fpa8u")

[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 2

[node name="EndScreenOutput" type="Label" parent="VBoxContainer"]
unique_name_in_owner = true
texture_filter = 2
layout_mode = 2
text = "Scroll speed: 5"
label_settings = SubResource("LabelSettings_ifyhp")
4 changes: 4 additions & 0 deletions JumpRoyale/scenes/GameOverlay.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,24 @@ grow_horizontal = 0
script = ExtResource("1_612sj")

[node name="NumPlayers" type="Label" parent="."]
texture_filter = 2
layout_mode = 2
text = "Number of players goes here
"

[node name="JumpInstructions" type="Label" parent="."]
texture_filter = 2
layout_mode = 2
text = "Jump with \"j <angle>\""

[node name="HeightOutput" type="Label" parent="."]
texture_filter = 2
layout_mode = 2
text = "Height output
"
autowrap_mode = 2

[node name="CameraScrollSpeed" type="Label" parent="."]
texture_filter = 2
layout_mode = 2
text = "Scroll speed: 5"
2 changes: 1 addition & 1 deletion JumpRoyale/scenes/Jumper.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
[ext_resource type="Texture2D" uid="uid://dn80vo65nle0y" path="res://assets/sprites/characters/Male/Character 1/Clothes 1/Character1M_1_jump_1.png" id="10_ac3fu"]
[ext_resource type="Texture2D" uid="uid://cr7baxkpawx43" path="res://assets/sprites/characters/Male/Character 1/Clothes 1/Character1M_1_land_0.png" id="11_3fxgy"]
[ext_resource type="Texture2D" uid="uid://de5vceaa85fe0" path="res://assets/sprites/characters/Male/Character 1/Clothes 1/Character1M_1_land_1.png" id="12_bwbvy"]
[ext_resource type="Theme" uid="uid://cqnuj3pidkvob" path="res://scenes/Jumper.tres" id="16_fsbtc"]
[ext_resource type="Theme" uid="uid://cqnuj3pidkvob" path="res://Resources/Jumper.tres" id="16_fsbtc"]

[sub_resource type="Curve" id="Curve_43alo"]
_data = [Vector2(0, 0.010989), 0.0, 0.0, 0, 0, Vector2(0.0708661, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
Expand Down
68 changes: 30 additions & 38 deletions JumpRoyale/scenes/LobbyOverlay.tscn
Original file line number Diff line number Diff line change
@@ -1,50 +1,42 @@
[gd_scene load_steps=6 format=3 uid="uid://bvl6vnp0t3iy6"]
[gd_scene load_steps=5 format=3 uid="uid://bvl6vnp0t3iy6"]

[ext_resource type="Script" path="res://src/LobbyOverlay.cs" id="1_15rvs"]

[sub_resource type="LabelSettings" id="LabelSettings_n02u3"]
font_size = 40

[sub_resource type="LabelSettings" id="LabelSettings_aso2h"]
font_size = 40

[sub_resource type="LabelSettings" id="LabelSettings_k2448"]
font_size = 40

[sub_resource type="LabelSettings" id="LabelSettings_wud63"]
font_size = 40

[node name="LobbyOverlay" type="VFlowContainer"]
anchors_preset = 10
anchor_right = 1.0
offset_left = 20.0
offset_top = 109.0
offset_right = -20.0
offset_bottom = 809.89
grow_horizontal = 2
theme_override_constants/v_separation = 26
[ext_resource type="StyleBox" uid="uid://ccjbiokdyflra" path="res://Resources/UIBackground.tres" id="1_banke"]
[ext_resource type="Theme" uid="uid://keary5vfopmg" path="res://Resources/RichTextLabelTheme.tres" id="3_8c3v8"]
[ext_resource type="LabelSettings" uid="uid://b4hkbiiau0wu3" path="res://Resources/LobbyLabelSettings.tres" id="3_wrh45"]

[node name="LobbyOverlay" type="PanelContainer"]
offset_right = 406.0
offset_bottom = 184.0
theme_override_styles/panel = ExtResource("1_banke")
script = ExtResource("1_15rvs")

[node name="JoinInstructions" type="Label" parent="."]
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 2
text = "Type \"join\" to play!"
label_settings = SubResource("LabelSettings_n02u3")

[node name="JumpInstructions" type="Label" parent="."]
[node name="Instructions" type="RichTextLabel" parent="VBoxContainer"]
texture_filter = 2
layout_mode = 2
text = "Jumping:
- j ANGLE: jump at a specific angle (-90 is left, 90 is right)
- j 15: jump slightly right
- L 15: jump slightly left
- u: jump straight up"
label_settings = SubResource("LabelSettings_aso2h")

[node name="LobbyTimer" type="Label" parent="."]
theme = ExtResource("3_8c3v8")
bbcode_enabled = true
text = "Type [color=cyan]join[/color] to play!
Jump with [color=cyan]j[/color] [[color=yellow]-90[/color] to [color=yellow]90[/color]]
([color=gray]see example jumpers below[/color])

Type [color=cyan]!jr[/color] for more instructions
"
fit_content = true

[node name="LobbyTimer" type="Label" parent="VBoxContainer"]
unique_name_in_owner = true
texture_filter = 2
layout_mode = 2
text = "Game will start soon!"
label_settings = SubResource("LabelSettings_k2448")
label_settings = ExtResource("3_wrh45")

[node name="NumPlayers" type="Label" parent="."]
[node name="NumPlayers" type="Label" parent="VBoxContainer"]
unique_name_in_owner = true
texture_filter = 2
layout_mode = 2
text = "Players: 0"
label_settings = SubResource("LabelSettings_wud63")
label_settings = ExtResource("3_wrh45")
Loading
Loading