RESULTS SCREEN

This commit is contained in:
pennyrigate 2023-10-08 19:25:57 -04:00
parent 435855cd5b
commit 81bcfdc34c
15 changed files with 343 additions and 48 deletions

View file

@ -27,6 +27,8 @@ func _set_material(value: Material) -> void:
yield(self, "ready")
text_mesh.mesh.material = text_material
func final_score():
_set_text("%05d" % Game.final_score)
func play_confirm_sound():
pass # Replace with function body.

View file

@ -1,20 +1,22 @@
[gd_scene load_steps=21 format=2]
[gd_scene load_steps=23 format=2]
[ext_resource path="res://ui/PressStart2P-Regular.ttf" type="DynamicFontData" id=1]
[ext_resource path="res://objects/hud/3d_text.gd" type="Script" id=2]
[ext_resource path="res://ui/Kozuka Mincho Std H.otf" type="DynamicFontData" id=3]
[ext_resource path="res://ui/Boba Date.otf" type="DynamicFontData" id=4]
[ext_resource path="res://ui/HooskaiChamferedSquare.ttf" type="DynamicFontData" id=5]
[sub_resource type="SpatialMaterial" id=9]
albedo_color = Color( 0.901961, 0.133333, 0.133333, 1 )
[sub_resource type="SpatialMaterial" id=11]
albedo_color = Color( 0.309804, 0.690196, 0.380392, 1 )
metallic = 0.35
metallic_specular = 0.11
[sub_resource type="DynamicFont" id=19]
font_data = ExtResource( 1 )
[sub_resource type="TextMesh" id=2]
resource_local_to_scene = true
material = SubResource( 9 )
material = SubResource( 11 )
text = "TEXT"
font = SubResource( 19 )
pixel_size = 0.05
@ -183,6 +185,99 @@ tracks/4/keys = {
"values": [ ExtResource( 4 ) ]
}
[sub_resource type="Animation" id=20]
resource_name = "final score"
tracks/0/type = "value"
tracks/0/path = NodePath("TextMesh:rotation_degrees")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5, 1 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 0, 0 ), Vector3( 180, 0, 216 ), Vector3( 360, 0, 360 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("TextMesh:scale")
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 ),
"update": 0,
"values": [ Vector3( 1, 1, 1 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("..:text_material")
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 ),
"update": 1,
"values": [ SubResource( 11 ) ]
}
tracks/3/type = "value"
tracks/3/path = NodePath("..:text")
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 ),
"update": 1,
"values": [ "00000" ]
}
tracks/4/type = "value"
tracks/4/path = NodePath("TextMesh:mesh:font:font_data")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ ExtResource( 5 ) ]
}
tracks/5/type = "value"
tracks/5/path = NodePath("TextMesh:translation")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/keys = {
"times": PoolRealArray( 0, 1 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( -8, 1.8, 0 ), Vector3( 0, 0, 0 ) ]
}
tracks/6/type = "method"
tracks/6/path = NodePath("..")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"values": [ {
"args": [ ],
"method": "final_score"
} ]
}
[sub_resource type="SpatialMaterial" id=9]
albedo_color = Color( 0.901961, 0.133333, 0.133333, 1 )
metallic = 0.35
[sub_resource type="Animation" id=18]
resource_name = "fucker"
length = 2.0
@ -337,11 +432,6 @@ tracks/5/keys = {
"values": [ ExtResource( 1 ) ]
}
[sub_resource type="SpatialMaterial" id=11]
albedo_color = Color( 0.309804, 0.690196, 0.380392, 1 )
metallic = 0.35
metallic_specular = 0.11
[sub_resource type="Animation" id=7]
resource_name = "level complete"
tracks/0/type = "value"
@ -568,7 +658,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
script = ExtResource( 2 )
text = "TEXT"
text_material = SubResource( 9 )
text_material = SubResource( 11 )
[node name="Viewport" type="Viewport" parent="."]
size = Vector2( 256, 192 )
@ -596,6 +686,7 @@ unique_name_in_owner = true
anims/RESET = SubResource( 5 )
"anims/Zoom Entrance" = SubResource( 6 )
"anims/bug world" = SubResource( 17 )
"anims/final score" = SubResource( 20 )
anims/fucker = SubResource( 18 )
"anims/game over" = SubResource( 10 )
"anims/level complete" = SubResource( 7 )