Moving some code around

This commit is contained in:
2021-08-23 09:41:36 -07:00
parent 0cd19e7b7c
commit d9f11c764e
5 changed files with 11 additions and 16 deletions

View File

@ -22,20 +22,15 @@ bool pokerGameInit(game_t *game) {
// Initialize the world
pokerWorldInit(pokerGame);
vnCharacterInit(pokerGame->scene.characters, &pokerGame->assets.pennyTexture,
vncharacter_t *character = pokerGame->scene.characters + 0;
vnCharacterInit(character, &pokerGame->assets.pennyTexture,
1000, 1920,
367,256, 280,280
);
vnCharacterInit(pokerGame->scene.characters + 1, &pokerGame->assets.pennyTexture,
1000, 1920,
367,256, 280,280
);
(pokerGame->scene.characters + 0)->x -= 0.3f;
(pokerGame->scene.characters + 1)->x += 0.3f;
(pokerGame->scene.characters + 1)->talking = true;
character->y = -1.7f;
character->z = -0.3f;
pokerGame->scene.characterCount = 2;
pokerGame->scene.characterCount++;
// Initialize the UI.

View File

@ -17,7 +17,7 @@ void pokerWorldRender(
) {
// Render the wall
shaderUseTexture(&assets->shader, &assets->roomTexture);
shaderUsePosition(&assets->shader, 0, 0, 0, 0,0,0);
shaderUsePosition(&assets->shader, 0,2,0, 0,0,0);
primitiveDraw(&world->skywall, 0, -1);
}