diff --git a/OldComputer.tscn b/OldComputer.tscn index c62ba84..3f5d4e0 100644 --- a/OldComputer.tscn +++ b/OldComputer.tscn @@ -6,6 +6,7 @@ [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="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"] bg_color = Color(0.28627452, 0.25490198, 0.22745098, 1) @@ -93,11 +94,13 @@ grow_horizontal = 2 grow_vertical = 2 rotation = -0.008004447 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 -text = "[center]>> Pharaoh OS 2000 Boot Sequence ->> WARN: Detected anomalies! ->> WARN: Memory integrity at %d%%! ->> User: Please load backup data disk (1 of 4) ->> Player: Press interact [E] or jump [Space] to exit." +text = "[center]>> PharaOS 2000 Boot Sequence +>> [color=red]WARN[/color]: Detected anomalies! +>> [color=red]WARN[/color]: Memory integrity at [color=red]%d%%[/color]! +>> [color=green]User[/color]: Please load backup data disk ([color=green]1 of 4[/color]) +>> [color=#4278ff]Player[/color]: Press [color=#4278ff]interact [E][/color] or [color=#4278ff]jump [Space][/color] to exit." fit_content = true vertical_alignment = 1 diff --git a/fonts/FSEX302-alt.ttf b/fonts/FSEX302-alt.ttf new file mode 100644 index 0000000..cb06d40 Binary files /dev/null and b/fonts/FSEX302-alt.ttf differ diff --git a/fonts/FSEX302-alt.ttf.import b/fonts/FSEX302-alt.ttf.import new file mode 100644 index 0000000..e8d1d6c --- /dev/null +++ b/fonts/FSEX302-alt.ttf.import @@ -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={} diff --git a/old_computer.gd b/old_computer.gd index 1ab87e4..7ba3acf 100644 --- a/old_computer.gd +++ b/old_computer.gd @@ -17,17 +17,24 @@ func load_disk(disk_num: int) -> bool: disks_wanted.remove_at(disks_wanted.find(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( - ">> Loaded data disk %d (of %d). Memory integrity now at %d%%" % - [disk_num, len(disks_wanted) + len(disks_loaded), get_memory_integrity()] + ">> 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), percent_color, memory_integrity] ) if has_finished_initialization(): printline( - ">> System initialization complete. Beginning reactivation sequence." + ">> [color=green]System initialization complete[/color]. Beginning reactivation sequence." ) 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