MacLO/src/GameEndScene.c
Jon Thysell eab519a40d Importing image assets from ArduLO
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". :)
2021-11-04 19:54:28 -07:00

35 lines
753 B
C

// Copyright (c) Jon Thysell <http://jonthysell.com>
// Licensed under the MIT License.
#include "GameEndScene.h"
void GameEndScene_Init(GameWindow *pGameWindow)
{
}
void GameEndScene_Draw(const GameWindow *pGameWindow, bool fullRefresh)
{
Str255 scoreStr;
// TODO: Proper level end
if (fullRefresh)
{
}
MoveTo(100, 100);
DrawString("\pGame complete! Click to continue.");
MoveTo(100, 125);
DrawString("\pScore: ");
NumToString((int32_t)(pGameWindow->Engine.Score), &scoreStr);
DrawString(scoreStr);
DrawString("\p/300");
}
void GameEndScene_Click(GameWindow *pGameWindow, const Point *pPosition)
{
// TODO: Proper click handling
GameWindow_SetScene(pGameWindow, Title);
}