Skip to content

Commit 7b6f7e5

Browse files
committed
Реализовал ConstructMenuScene
1 parent 1fa7e3e commit 7b6f7e5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

user.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,12 @@ void DrawMainScreen(Context &ctx) {}
463463
//
464464
// Возможное решение может занимать примерно N строк.
465465
//
466-
void ConstructMenuScene(Context &ctx, Scene &game_scene) {}
466+
void ConstructMenuScene(Context &ctx, Scene &game_scene) {
467+
Object bg;
468+
bg.render = std::make_shared<Render>("Assets/menu_background.png");
469+
bg.render->size = ctx.screen_size;
470+
game_scene.push_back(bg);
471+
}
467472

468473
// Задание DrawStatus.
469474
//

0 commit comments

Comments
 (0)