🍱 Add font

This commit is contained in:
LittleSheep 2024-08-09 15:58:38 +08:00
parent dd27528fed
commit 482bfb04a0
8 changed files with 56 additions and 4 deletions

6
AceTheme.tres Normal file
View File

@ -0,0 +1,6 @@
[gd_resource type="Theme" load_steps=2 format=3 uid="uid://b4dcn26i0p6ym"]
[ext_resource type="FontFile" uid="uid://dtvh6e1i057a6" path="res://Fonts/Comfortaa-Regular.ttf" id="1_6bbem"]
[resource]
default_font = ExtResource("1_6bbem")

BIN
Fonts/Comfortaa-Regular.ttf Normal file

Binary file not shown.

View File

@ -0,0 +1,33 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://dtvh6e1i057a6"
path="res://.godot/imported/Comfortaa-Regular.ttf-b5da63c599bb6327af0a826061919753.fontdata"
[deps]
source_file="res://Fonts/Comfortaa-Regular.ttf"
dest_files=["res://.godot/imported/Comfortaa-Regular.ttf-b5da63c599bb6327af0a826061919753.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
hinting=1
subpixel_positioning=1
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}

View File

@ -1,10 +1,11 @@
[gd_scene load_steps=11 format=3 uid="uid://b3gx0bl43lku3"]
[gd_scene load_steps=12 format=3 uid="uid://b3gx0bl43lku3"]
[ext_resource type="Script" path="res://Scripts/Player.cs" id="1_0btyt"]
[ext_resource type="Texture2D" uid="uid://c4als6t3k4myc" path="res://Sprites/Player.png" id="1_cqpqa"]
[ext_resource type="PackedScene" uid="uid://ds40mib6ur8yf" path="res://Scenes/Bullet.tscn" id="2_nmop0"]
[ext_resource type="PackedScene" uid="uid://nu34biv4xo5k" path="res://Scenes/Brick.tscn" id="3_6sbto"]
[ext_resource type="Script" path="res://Scripts/Logic/PlayerInput.cs" id="3_tvoua"]
[ext_resource type="Theme" uid="uid://b4dcn26i0p6ym" path="res://AceTheme.tres" id="4_64t2j"]
[ext_resource type="Script" path="res://Scripts/Effects/CameraShake.cs" id="4_fwngj"]
[sub_resource type="CircleShape2D" id="CircleShape2D_68yf8"]
@ -62,6 +63,7 @@ offset_left = -90.0
offset_top = -86.0
offset_right = 90.0
offset_bottom = -26.0
theme = ExtResource("4_64t2j")
theme_override_constants/separation = 4
alignment = 1

View File

@ -1,9 +1,10 @@
[gd_scene load_steps=12 format=3 uid="uid://bjhmjrldq4lkt"]
[gd_scene load_steps=13 format=3 uid="uid://bjhmjrldq4lkt"]
[ext_resource type="PackedScene" uid="uid://b3gx0bl43lku3" path="res://Scenes/Player.tscn" id="1_vby0g"]
[ext_resource type="PackedScene" uid="uid://dk8x2aeq1eevf" path="res://Scenes/UI/BootScreen.tscn" id="2_7aede"]
[ext_resource type="PackedScene" uid="uid://bvll23f5ibd4v" path="res://Scenes/UI/LaunchScreen.tscn" id="2_7o53i"]
[ext_resource type="Script" path="res://Scripts/Launcher.cs" id="2_u5cms"]
[ext_resource type="Theme" uid="uid://b4dcn26i0p6ym" path="res://AceTheme.tres" id="2_w3ynu"]
[ext_resource type="Script" path="res://Scripts/Logic/Scoreboard.cs" id="3_as2wg"]
[ext_resource type="Script" path="res://Scripts/Logic/World.cs" id="3_xwguj"]
[ext_resource type="PackedScene" uid="uid://cnf80yioktsvj" path="res://Scenes/UI/GameOverScreen.tscn" id="5_441wx"]
@ -25,10 +26,12 @@ properties/2/replication_mode = 1
[node name="Node" type="Node"]
[node name="LaunchScreen" parent="." node_paths=PackedStringArray("Launcher") instance=ExtResource("2_7o53i")]
theme = ExtResource("2_w3ynu")
Launcher = NodePath("../LauncherNode")
[node name="BootScreen" parent="." node_paths=PackedStringArray("World") instance=ExtResource("2_7aede")]
visible = false
theme = ExtResource("2_w3ynu")
World = NodePath("../World")
[node name="LauncherNode" type="Node" parent="." node_paths=PackedStringArray("World", "BootMenu", "Overlay")]
@ -44,19 +47,23 @@ script = ExtResource("3_as2wg")
[node name="PlayerDiedScreen" parent="OverlayLayer" instance=ExtResource("5_pimes")]
visible = false
theme = ExtResource("2_w3ynu")
[node name="GameOverScreen" parent="OverlayLayer" node_paths=PackedStringArray("Scoreboard") instance=ExtResource("5_441wx")]
process_mode = 3
visible = false
theme = ExtResource("2_w3ynu")
Scoreboard = NodePath("../../ScoreboardNode")
[node name="Leaderboard" parent="OverlayLayer" node_paths=PackedStringArray("Scoreboard") instance=ExtResource("7_j24m7")]
process_mode = 3
visible = false
theme = ExtResource("2_w3ynu")
Scoreboard = NodePath("../../ScoreboardNode")
[node name="Hud" parent="OverlayLayer" node_paths=PackedStringArray("World") instance=ExtResource("5_qvun1")]
visible = false
theme = ExtResource("2_w3ynu")
World = NodePath("../../World")
[node name="World" type="Node2D" parent="." node_paths=PackedStringArray("Scoreboard")]

View File

@ -27,7 +27,7 @@ layout_mode = 2
[node name="MainTitle" type="Label" parent="CenterContainer/VBoxContainer"]
layout_mode = 2
text = "AceField
Prototype · Closed test"
Prototype v0.0.0"
horizontal_alignment = 1
[node name="Spacer" type="BoxContainer" parent="CenterContainer/VBoxContainer"]

View File

@ -1,6 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://b8s2m7gujfmp6"]
[gd_scene load_steps=3 format=3 uid="uid://b8s2m7gujfmp6"]
[ext_resource type="Script" path="res://Scripts/UI/LeaderboardRecord.cs" id="1_jc2uj"]
[ext_resource type="Theme" uid="uid://b4dcn26i0p6ym" path="res://AceTheme.tres" id="1_mb1ty"]
[node name="LeaderboardRecord" type="Control"]
layout_mode = 3
@ -14,6 +15,7 @@ offset_right = 0.12793
offset_bottom = 0.0959988
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_mb1ty")
script = ExtResource("1_jc2uj")
[node name="Panel" type="Panel" parent="."]

View File

@ -75,3 +75,5 @@ ui_leaderboard={
renderer/rendering_method="mobile"
textures/vram_compression/import_etc2_astc=true
anti_aliasing/quality/msaa_2d=2
anti_aliasing/quality/screen_space_aa=1