Implement itoa

This commit is contained in:
2023-12-05 20:46:15 -05:00
parent 7904da6875
commit f762536e33
3 changed files with 47 additions and 3 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, "Miau: %i", JabyEngine::GPU::Color24::Red(), &wiggle, 12345);
new_font_writer.write(state, "Mi%iau:", JabyEngine::GPU::Color24::Yellow(), &wiggle, 12345);
if(timer.is_expired_for(50_ms)) {
timer.reset();