fix(examples): changed functions for atlas initialization

This commit is contained in:
lisk77 2025-11-02 02:15:03 +01:00
parent 5a9b771967
commit 32d06c5164
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
use comet::prelude::*;
fn setup(app: &mut App, renderer: &mut Renderer2D) {
renderer.init_atlas();
// Loading the font from the res/fonts directory with a rendered size of 77px
renderer.load_font("./res/fonts/PressStart2P-Regular.ttf", 77.0);