Support %i

This commit is contained in:
2023-12-05 21:04:45 -05:00
parent f762536e33
commit c4892d51ab
4 changed files with 5 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ void font_writer_setup() {
void font_writer_update() {
auto state = JabyEngine::State::create(JabyEngine::Make::PositionI16(8, 8), wiggle_count);
new_font_writer.write(state, "012345 ABCDEFGHIJKL\nabcedfghijkl\n", JabyEngine::GPU::Color24::Blue(), &wiggle);
new_font_writer.write(state, "Mi%iau:", JabyEngine::GPU::Color24::Yellow(), &wiggle, 12345);
new_font_writer.write(state, "Wiggle Count: %i", JabyEngine::GPU::Color24::Green(), &wiggle, wiggle_count);
if(timer.is_expired_for(50_ms)) {
timer.reset();