33 lines
618 B
C
33 lines
618 B
C
/**
|
|
* Copyright (c) 2025 Dominic Masters
|
|
*
|
|
* This software is released under the MIT License.
|
|
* https://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#include "game/game.h"
|
|
#include "game/minesweeper/ui/ui.h"
|
|
#include "game/minesweeper/scene/scenesweep.h"
|
|
#include "scene/scenemanager.h"
|
|
#include "console/console.h"
|
|
#include "display/screen.h"
|
|
|
|
errorret_t gameInit(void) {
|
|
// Setup screen
|
|
SCREEN.mode = SCREEN_MODE_FIXED_HEIGHT;
|
|
SCREEN.fixedHeight.height = 270;
|
|
|
|
errorChain(uiInit());
|
|
|
|
sceneManagerRegisterScene(&SCENE_SWEEP);
|
|
|
|
errorOk();
|
|
}
|
|
|
|
void gameUpdate(void) {
|
|
|
|
}
|
|
|
|
void gameDispose(void) {
|
|
uiDispose();
|
|
} |