mirror of
https://github.com/jonthysell/MacLO.git
synced 2024-06-17 19:29:29 +00:00
eab519a40d
I've imported some of the "character" images from ArduLO, converted to GIFs because they're easier to work with. They've been imported into a new Bitmaps structure so they only need to be loaded once at app start. I've also cleaned up some of the drawing code, and created a series of helpers for dividing Rects into a 3x3 grid, to make it easier to define the layout. I've also stubbed out "theme-support". :)
35 lines
907 B
C
35 lines
907 B
C
// Copyright (c) Jon Thysell <http://jonthysell.com>
|
|
// Licensed under the MIT License.
|
|
|
|
#ifndef GAMEWINDOW_H
|
|
#define GAMEWINDOW_H
|
|
|
|
#include "MacCommon.h"
|
|
#include "GameEngine.h"
|
|
#include "Bitmaps.h"
|
|
#include "Scenes.h"
|
|
|
|
#define WindowPattern black
|
|
|
|
typedef struct sGameWindow
|
|
{
|
|
WindowPtr Window;
|
|
GameEngine Engine;
|
|
Bitmaps Bitmaps;
|
|
SceneId CurrentSceneId;
|
|
bool SceneIsInitialized[NumScenes];
|
|
TitleScene TitleScene;
|
|
PlayScene PlayScene;
|
|
LevelEndScene LevelEndScene;
|
|
GameEndScene GameEndScene;
|
|
} GameWindow;
|
|
|
|
void GameWindow_Init(GameWindow *pGameWindow);
|
|
void GameWindow_Draw(const GameWindow *pGameWindow, bool fullRefresh);
|
|
void GameWindow_Click(GameWindow *pGameWindow, const Point *pPosition);
|
|
|
|
void GameWindow_SetScene(GameWindow *pGameWindow, const SceneId sceneId);
|
|
void GameWindow_Show(const GameWindow *pGameWindow);
|
|
|
|
#endif
|