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

@ -2,7 +2,7 @@ use comet::prelude::*;
fn setup(app: &mut App, renderer: &mut Renderer2D) {
// Creating a texture atlas from the provided textures in the vector
renderer.set_texture_atlas_by_paths(vec!["./res/textures/comet_icon.png".to_string()]);
renderer.init_atlas_by_paths(vec!["./res/textures/comet_icon.png".to_string()]);
// Creating a camera entity
let cam = app.new_entity();