From 232e5670d458351d7c78e0274075df16ce1c0fe6 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Wed, 27 Mar 2024 09:44:40 +0000 Subject: [PATCH] Say hello in japanese for the object_text_render example --- agb/examples/object_text_render.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/agb/examples/object_text_render.rs b/agb/examples/object_text_render.rs index 22bb20a9..fda39a89 100644 --- a/agb/examples/object_text_render.rs +++ b/agb/examples/object_text_render.rs @@ -15,7 +15,8 @@ extern crate alloc; use core::fmt::Write; -const FONT: Font = include_font!("examples/font/yoster.ttf", 12); +static FONT: Font = include_font!("examples/font/ark-pixel-10px-proportional-ja.ttf", 10); + #[agb::entry] fn entry(gba: agb::Gba) -> ! { main(gba); @@ -42,7 +43,7 @@ fn main(mut gba: agb::Gba) -> ! { let player_name = "You"; let _ = writeln!( wr, - "Woah!{change2} {player_name}! {change1}Hey there! I have a bunch of text I want to show you. However, you will find that the amount of text I can display is limited. Who'd have thought! Good thing that my text system supports scrolling! It only took around 20 jank versions to get here!", + "Woah!{change2} {player_name}! {change1}こんにちは! I have a bunch of text I want to show you. However, you will find that the amount of text I can display is limited. Who'd have thought! Good thing that my text system supports scrolling! It only took around 20 jank versions to get here!", change2 = ChangeColour::new(2), change1 = ChangeColour::new(1), );