Working on some visual novel elements

This commit is contained in:
2021-07-22 10:24:34 -07:00
parent 1b5390ec9e
commit 75ed7acdbf
15 changed files with 288 additions and 112 deletions

38
src/vn/vncharacter.c Normal file
View File

@ -0,0 +1,38 @@
/**
* Copyright (c) 2021 Dominic Masters
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
*/
#include "vncharacter.h"
void vnCharacterInit(vncharacter_t *character,
texture_t *textureEyes,
texture_t *textureBody,
texture_t *textureMouth,
texture_t *textureFace
) {
character->x = 0;
character->y = 0;
character->z = 0;
character->yaw = 0;
character->pitch = 0;
character->roll = 0;
// Setup Textures
character->textureEyes = textureEyes;
character->textureBody = textureBody;
character->textureMouth = textureMouth;
character->textureFace = textureFace;
character->emotion = VNCHARACTER_EMOTION_NEUTRAL;
character->talking = false;
character->t = 0;
}
void vnCharacterRender(vncharacter_t *character, shader_t *shader) {
}