Say hello in japanese for the object_text_render example

This commit is contained in:
Gwilym Inzani 2024-03-27 09:44:40 +00:00
parent a7b017e7e7
commit 232e5670d4

View file

@ -15,7 +15,8 @@ extern crate alloc;
use core::fmt::Write; 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] #[agb::entry]
fn entry(gba: agb::Gba) -> ! { fn entry(gba: agb::Gba) -> ! {
main(gba); main(gba);
@ -42,7 +43,7 @@ fn main(mut gba: agb::Gba) -> ! {
let player_name = "You"; let player_name = "You";
let _ = writeln!( let _ = writeln!(
wr, 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), change2 = ChangeColour::new(2),
change1 = ChangeColour::new(1), change1 = ChangeColour::new(1),
); );