Cleanup / refractor

This commit is contained in:
2026-05-05 21:37:54 +01:00
parent 306a053276
commit 7e9a5a7c4f
3 changed files with 2 additions and 23 deletions
+1 -12
View File
@@ -353,18 +353,7 @@ static mrb_value app_run(mrb_state *mrb, mrb_value) {
char *title = nullptr;
mrb_get_args(mrb, "iiz", &width, &height, &title);
int loading_image = window.load_image("assets/images/menu_bg.png", 1.0f, true);
Animation loading_animation = {
.frames = {loading_image},
.frame_rate = 1.0f,
.loop = false
};
int loading_animation_id = animation_pool.acquire(new Animation(loading_animation));
animation_pool.use(loading_animation_id);
app_ = new app::App({(float)width, (float)height}, title, loading_animation_id);
app_ = new app::App({(float)width, (float)height}, title);
return mrb_nil_value();
}