Add fixedsys exelscior (public domain) font for computer console. Add color coding where appropriate (red for failures/errors, green for success, blue for messages directed towards player)

This commit is contained in:
yagigreg committed 2026-10-18 14:44:49 -05:00
1 parent baeb8c78ca
commit bc8aa9c9e8
4 files changed
+55 -9

No files matched your search

+8 -5
View File
@@ -6,6 +6,7 @@
[ext_resource type="Shader" uid="uid://mmf86jusrkrr" path="res://shaders/warp_shader.gdshader" id="3_jwgiw"] [ext_resource type="Shader" uid="uid://mmf86jusrkrr" path="res://shaders/warp_shader.gdshader" id="3_jwgiw"]
[ext_resource type="Script" uid="uid://3bqq3mfbby2c" path="res://warp_shader.gd" id="4_eta3k"] [ext_resource type="Script" uid="uid://3bqq3mfbby2c" path="res://warp_shader.gd" id="4_eta3k"]
[ext_resource type="Texture2D" uid="uid://biv3f67rqumak" path="res://art/level_start.png" id="5_vc1vx"] [ext_resource type="Texture2D" uid="uid://biv3f67rqumak" path="res://art/level_start.png" id="5_vc1vx"]
[ext_resource type="FontFile" uid="uid://d4i0vcc3vhv6f" path="res://fonts/FSEX302-alt.ttf" id="7_vc1vx"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2wyuv"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2wyuv"]
bg_color = Color(0.28627452, 0.25490198, 0.22745098, 1) bg_color = Color(0.28627452, 0.25490198, 0.22745098, 1)
@@ -93,11 +94,13 @@ grow_horizontal = 2
grow_vertical = 2 grow_vertical = 2
rotation = -0.008004447 rotation = -0.008004447
scale = Vector2(1.0710422, 1.0710422) scale = Vector2(1.0710422, 1.0710422)
theme_override_fonts/normal_font = ExtResource("7_vc1vx")
theme_override_fonts/mono_font = ExtResource("7_vc1vx")
bbcode_enabled = true bbcode_enabled = true
text = "[center]>> Pharaoh OS 2000 Boot Sequence text = "[center]>> PharaOS 2000 Boot Sequence
>> WARN: Detected anomalies! >> [color=red]WARN[/color]: Detected anomalies!
>> WARN: Memory integrity at %d%%! >> [color=red]WARN[/color]: Memory integrity at [color=red]%d%%[/color]!
>> User: Please load backup data disk (1 of 4) >> [color=green]User[/color]: Please load backup data disk ([color=green]1 of 4[/color])
>> Player: Press interact [E] or jump [Space] to exit." >> [color=#4278ff]Player[/color]: Press [color=#4278ff]interact [E][/color] or [color=#4278ff]jump [Space][/color] to exit."
fit_content = true fit_content = true
vertical_alignment = 1 vertical_alignment = 1
Binary file not shown.
+36
View File
@@ -0,0 +1,36 @@
[remap]
importer="font_data_dynamic"
type="FontFile"
uid="uid://d4i0vcc3vhv6f"
path="res://.godot/imported/FSEX302-alt.ttf-915e7af5222350725c2a3bd3c1fe3b5a.fontdata"
[deps]
source_file="res://fonts/FSEX302-alt.ttf"
dest_files=["res://.godot/imported/FSEX302-alt.ttf-915e7af5222350725c2a3bd3c1fe3b5a.fontdata"]
[params]
Rendering=null
antialiasing=1
generate_mipmaps=false
disable_embedded_bitmaps=true
multichannel_signed_distance_field=false
msdf_pixel_range=8
msdf_size=48
allow_system_fallback=true
force_autohinter=false
modulate_color_glyphs=false
hinting=3
subpixel_positioning=4
keep_rounding_remainders=true
oversampling=0.0
Fallbacks=null
fallbacks=[]
Compress=null
compress=true
preload=[]
language_support={}
script_support={}
opentype_features={}
+11 -4
View File
@@ -17,17 +17,24 @@ func load_disk(disk_num: int) -> bool:
disks_wanted.remove_at(disks_wanted.find(disk_num)) disks_wanted.remove_at(disks_wanted.find(disk_num))
print("Loaded up disk ", disk_num) print("Loaded up disk ", disk_num)
var memory_integrity = get_memory_integrity()
var percent_color = "red"
if memory_integrity > 90:
percent_color = "green"
elif memory_integrity > 35:
percent_color = "orange"
printline( printline(
">> Loaded data disk %d (of %d). Memory integrity now at %d%%" % ">> Loaded data disk %d (of [color=green]%d[/color]). Memory integrity now at [color=%s]%d%%[/color]" %
[disk_num, len(disks_wanted) + len(disks_loaded), get_memory_integrity()] [disk_num, len(disks_wanted) + len(disks_loaded), percent_color, memory_integrity]
) )
if has_finished_initialization(): if has_finished_initialization():
printline( printline(
">> System initialization complete. Beginning reactivation sequence." ">> [color=green]System initialization complete[/color]. Beginning reactivation sequence."
) )
printline( printline(
">> Player: Press [E] or [Space] to return to the outside world." ">> [color=#4278ff]Player[/color]: Press [color=#4278ff][E][/color] or [color=#4278ff][Space][/color] to return to the outside world."
) )
return true return true