Joining the two logics together slowly.
This commit is contained in:
@ -36,7 +36,9 @@
|
||||
|
||||
// Game Logic
|
||||
#include "game/game.h"
|
||||
|
||||
#include "game/poker/pokergame.h"
|
||||
#include "game/poker/pokergameassets.h"
|
||||
|
||||
// Player Input
|
||||
#include "input/input.h"
|
||||
@ -58,4 +60,5 @@
|
||||
// Visual Novel Objects
|
||||
#include "vn/vncharacter.h"
|
||||
#include "vn/vnconversation.h"
|
||||
#include "vn/vnscene.h"
|
||||
#include "vn/vntextbox.h"
|
@ -7,7 +7,10 @@
|
||||
|
||||
#pragma once
|
||||
#include "../../libs.h"
|
||||
#include "pokergameassets.h"
|
||||
#include "../../poker/poker.h"
|
||||
#include "../../vn/vnconversation.h"
|
||||
#include "../../vn/vnscene.h"
|
||||
|
||||
/** Name of the Poker Game */
|
||||
#define POKER_GAME_NAME "Dawn Poker Game"
|
||||
@ -15,4 +18,10 @@
|
||||
typedef struct {
|
||||
/** Poker Game State */
|
||||
poker_t poker;
|
||||
|
||||
/** Visual Novel Engine */
|
||||
vnscene_t scene;
|
||||
|
||||
/** Assets for the game. */
|
||||
pokergameassets_t assets;
|
||||
} pokergame_t;
|
15
include/dawn/game/poker/pokergameassets.h
Normal file
15
include/dawn/game/poker/pokergameassets.h
Normal file
@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Copyright (c) 2021 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "../../display/gui/font.h"
|
||||
#include "../../display/shader.h"
|
||||
|
||||
typedef struct {
|
||||
font_t font;
|
||||
shader_t shader;
|
||||
} pokergameassets_t;
|
@ -5,6 +5,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// Settings
|
||||
#include "settings.h"
|
||||
|
||||
// Static Libs
|
||||
#include <cglm/cglm.h>
|
||||
#include <glad/glad.h>
|
||||
|
10
include/dawn/settings.h
Normal file
10
include/dawn/settings.h
Normal file
@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Copyright (c) 2021 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define SETTING_GAME "poker"
|
@ -8,6 +8,7 @@
|
||||
#pragma once
|
||||
#include "../libs.h"
|
||||
#include "../display/animation/queue.h"
|
||||
#include "vncharacter.h"
|
||||
#include "vntextbox.h"
|
||||
|
||||
typedef struct _vnconversation_t vnconversation_t;
|
||||
|
27
include/dawn/vn/vnscene.h
Normal file
27
include/dawn/vn/vnscene.h
Normal file
@ -0,0 +1,27 @@
|
||||
/**
|
||||
* Copyright (c) 2021 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "../libs.h"
|
||||
#include "vncharacter.h"
|
||||
#include "vnconversation.h"
|
||||
#include "vntextbox.h"
|
||||
|
||||
/** Maximum number of Visual Novel Characters the scene can support */
|
||||
#define VN_SCENE_CHARACTERS_MAX 6
|
||||
|
||||
typedef struct {
|
||||
/** Camera used for rendering, updated frequently */
|
||||
camera_t camera;
|
||||
|
||||
/** Internal conversation element */
|
||||
vnconversation_t conversation;
|
||||
|
||||
/** Character array */
|
||||
vncharacter_t characters[VN_SCENE_CHARACTERS_MAX];
|
||||
uint8_t characterCount;
|
||||
} vnscene_t;
|
Reference in New Issue
Block a user