Added font sizing, needs full testing
This commit is contained in:
20
src/game/dawn/dawngame.c
Normal file
20
src/game/dawn/dawngame.c
Normal 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) {
|
||||
|
||||
}
|
@ -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) {
|
||||
|
@ -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
12
src/game/poker/pokerui.c
Normal 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
12
src/game/poker/pokerui.h
Normal 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);
|
Reference in New Issue
Block a user