Character is rendering in-game
This commit is contained in:
@ -42,7 +42,7 @@
|
||||
#include "game/poker/pokergame.h"
|
||||
#include "game/poker/pokerdiscussion.h"
|
||||
#include "game/poker/pokergameassets.h"
|
||||
#include "game/poker/pokerrender.h"
|
||||
#include "game/poker/pokerworld.h"
|
||||
#include "game/poker/pokerui.h"
|
||||
|
||||
// Player Input
|
||||
@ -63,6 +63,7 @@
|
||||
#include "poker/turn.h"
|
||||
#include "poker/winner.h"
|
||||
|
||||
|
||||
// User Interface Objects
|
||||
#include "ui/frame.h"
|
||||
#include "ui/label.h"
|
||||
|
@ -8,7 +8,7 @@
|
||||
#pragma once
|
||||
#include "../../libs.h"
|
||||
#include "pokergameassets.h"
|
||||
#include "pokerrender.h"
|
||||
#include "pokerworld.h"
|
||||
#include "pokerui.h"
|
||||
#include "../../poker/poker.h"
|
||||
#include "../../vn/vnconversation.h"
|
||||
@ -24,8 +24,8 @@ typedef struct {
|
||||
/** Assets (Files) for the game. */
|
||||
pokergameassets_t assets;
|
||||
|
||||
/** Rendering Engine for the game. */
|
||||
pokerrender_t render;
|
||||
/** Poker Game World. */
|
||||
pokerworld_t world;
|
||||
|
||||
/** UI For the Game */
|
||||
pokerui_t ui;
|
||||
|
@ -14,7 +14,9 @@ typedef struct {
|
||||
font_t font;
|
||||
shader_t shader;
|
||||
language_t language;
|
||||
texture_t testTexture;
|
||||
|
||||
texture_t testTexture;
|
||||
texture_t roomTexture;
|
||||
|
||||
texture_t pennyTexture;
|
||||
} pokergameassets_t;
|
@ -11,4 +11,4 @@
|
||||
|
||||
typedef struct {
|
||||
primitive_t skywall;
|
||||
} pokerrender_t;
|
||||
} pokerworld_t;
|
@ -17,16 +17,23 @@
|
||||
/** How many quads the VN Character has. Base, Eyes, Mouth and Eyebrows */
|
||||
#define VN_CHARACTER_QUAD_COUNT 4
|
||||
|
||||
#define VN_CHARACTER_QUAD_BASE 0
|
||||
#define VN_CHARACTER_QUAD_EYEBROWS 1
|
||||
#define VN_CHARACTER_QUAD_EYES 2
|
||||
#define VN_CHARACTER_QUAD_MOUTH 3
|
||||
|
||||
typedef struct {
|
||||
float x, y, z;
|
||||
float yaw, pitch, roll;
|
||||
float scaleX, scaleY;
|
||||
|
||||
bool talking;
|
||||
float blinkStart;
|
||||
|
||||
primitive_t primitive;
|
||||
texture_t *texture;
|
||||
|
||||
int32_t baseWidth, baseHeight;
|
||||
int32_t faceX, faceY;
|
||||
int32_t faceWidth, faceHeight;
|
||||
} vncharacter_t;
|
Reference in New Issue
Block a user