in-game UI, plus refine boost logic

This commit is contained in:
D L 2023-01-30 00:02:47 -08:00
parent ed6def77f5
commit b5da1cf566
14 changed files with 3214 additions and 18 deletions

View file

@ -181,7 +181,6 @@ anims/InitialFade = SubResource( 1 )
anims/RESET = SubResource( 2 )
[node name="ColorRect" type="ColorRect" parent="."]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0, 0, 0, 1 )

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=15 format=2]
[gd_scene load_steps=18 format=2]
[ext_resource path="res://Tile Sets/SnowySlopes.tres" type="TileSet" id=1]
[ext_resource path="res://Units/DownhillAutoscrollerPlayer.tscn" type="PackedScene" id=2]
@ -11,6 +11,9 @@
[ext_resource path="res://Sounds/sfx_jump_07-80241.mp3" type="AudioStream" id=9]
[ext_resource path="res://Sounds/land2-43790.mp3" type="AudioStream" id=10]
[ext_resource path="res://Sounds/ski-67717.wav" type="AudioStream" id=11]
[ext_resource path="res://Fonts/squares/squares.tres" type="DynamicFont" id=12]
[ext_resource path="res://Scripts/InGameUI.gd" type="Script" id=13]
[ext_resource path="res://Fonts/squares/squares_big.tres" type="DynamicFont" id=14]
[sub_resource type="Animation" id=3]
resource_name = "InitialFade"
@ -80,7 +83,6 @@ __meta__ = {
"_edit_vertical_guides_": [ 2134.0, 3833.0 ]
}
tile_set_name = "SnowySlopes"
camera_h_offset = 2.5
spawning = {
Vector2( 45, -6 ): "CIRNO",
Vector2( 80, -7 ): "SANAE",
@ -113,6 +115,7 @@ position = Vector2( 91, -197 )
[node name="Camera2D" type="Camera2D" parent="Player"]
offset = Vector2( 0, -15 )
smoothing_speed = 7.0
[node name="SpectatorCam" type="Camera2D" parent="."]
offset = Vector2( 0, -15 )
@ -121,12 +124,45 @@ offset = Vector2( 0, -15 )
position = Vector2( 91, -197 )
[node name="CanvasLayer" type="CanvasLayer" parent="."]
script = ExtResource( 13 )
[node name="Speedometer" type="RichTextLabel" parent="CanvasLayer"]
margin_left = 20.0
margin_top = 20.0
margin_right = 170.0
margin_bottom = 80.0
custom_colors/default_color = Color( 0.560784, 0.972549, 0.886275, 1 )
custom_fonts/normal_font = ExtResource( 14 )
text = "+00 MPH"
fit_content_height = true
scroll_active = false
[node name="Timer" type="RichTextLabel" parent="CanvasLayer"]
margin_left = 870.0
margin_top = 20.0
margin_right = 1020.0
margin_bottom = 80.0
custom_colors/default_color = Color( 0.560784, 0.972549, 0.886275, 1 )
custom_fonts/normal_font = ExtResource( 14 )
text = "+00 MPH"
fit_content_height = true
scroll_active = false
[node name="BoostLabel" type="RichTextLabel" parent="CanvasLayer"]
margin_left = 150.0
margin_top = 150.0
margin_right = 300.0
margin_bottom = 180.0
custom_fonts/normal_font = ExtResource( 12 )
text = "+00 MPH"
fit_content_height = true
scroll_active = false
[node name="ColorRect" type="ColorRect" parent="CanvasLayer"]
modulate = Color( 1, 1, 1, 0 )
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0.12549, 0.231373, 0.2, 1 )
color = Color( 0, 0, 0, 1 )
[node name="PitTransitionPlayer" type="AnimationPlayer" parent="CanvasLayer/ColorRect"]
anims/InitialFade = SubResource( 3 )

View file

@ -13,9 +13,6 @@
anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextureRect" type="TextureRect" parent="."]
margin_right = 1024.0

View file

@ -36,16 +36,11 @@ margin_right = 177.0
margin_bottom = 745.0
custom_fonts/font = ExtResource( 2 )
text = "Back"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CenterContainer" type="CenterContainer" parent="."]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
margin_left = 512.0