Added font sizing, needs full testing

This commit is contained in:
2021-08-03 10:19:31 -07:00
parent c451538def
commit 23f1cb3d7e
17 changed files with 202 additions and 15 deletions

20
src/game/dawn/dawngame.c Normal file
View File

@ -0,0 +1,20 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include "dawngame.h"
bool dawnGameInit(game_t *game) {
return true;
}
void dawnGameUpdate(game_t *game) {
}
void dawnGameDispose(game_t *game) {
}

View File

@ -7,6 +7,8 @@
#include "pokergame.h"
label_t label;
bool pokerGameInit(game_t *game) {
pokergame_t *pokerGame = &game->pokerGame;
@ -20,6 +22,11 @@ bool pokerGameInit(game_t *game) {
vnSceneInit(&pokerGame->scene, &pokerGame->assets.font);
pokerGameActionStartAdd(pokerGame);
labelInit(&label);
label.y = 32;
label.fontSize = 8.0;
labelSetText(&label, &pokerGame->assets.font, "Hello World");
// pokerActionMatchAdd(&pokerGame->scene.conversation.actionQueue, &pokerGame->poker);
// pokerActionMatchAdd(&pokerGame->scene.conversation.actionQueue, &pokerGame->poker);
// pokerActionRoundAdd(&pokerGame->scene.conversation.actionQueue, &pokerGame->poker);
@ -48,6 +55,7 @@ void pokerGameUpdate(game_t *game) {
// Render the visual novel scene
vnSceneRenderWorld(&pokerGame->scene, &game->engine, &pokerGame->assets.shader);
vnSceneRenderGui(&pokerGame->scene, &game->engine, &pokerGame->assets.shader);
labelRender(&label, &pokerGame->assets.shader);
}
void pokerGameDispose(game_t *game) {

View File

@ -13,6 +13,8 @@
#include "../../vn/vnscene.h"
#include "actions/start.h"
#include "../../ui/label.h"
/**
* Initializes the game state for the poker game.
*

12
src/game/poker/pokerui.c Normal file
View File

@ -0,0 +1,12 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include "pokerui.h"
void pokerUiInit(pokerui_t *ui) {
}

12
src/game/poker/pokerui.h Normal file
View File

@ -0,0 +1,12 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#pragma once
#include <dawn/dawn.h>
#include "../../ui/label.h"
void pokerUiInit(pokerui_t *ui);