Playing around with talking and input

This commit is contained in:
2021-05-26 08:10:37 -07:00
parent b81c4ca604
commit 62928b7c69
9 changed files with 61 additions and 23 deletions

View File

@ -15,13 +15,7 @@ bool gameInit(game_t *game) {
engineInit(&game->engine, game);
// Hand off to the poker logic.
pokerInit(&game->poker, &game->engine.render);
// char *text = "Ayy\nNice meme";
// fonttextinfo_t info = fontGetTextInfo(&font, text);
// fontmeasure_t *measure = fontTextMeasure(&font, text, &info);
// fontTextInitFromMeasure(&font, &quad, text, &info, measure);
// fontTextMeasureDispose(measure);
pokerInit(&game->poker, &game->engine);
return true;
}
@ -31,7 +25,7 @@ bool gameUpdate(game_t *game, float platformDelta) {
engineUpdateStart(&game->engine, game, platformDelta);
// Hand off to the poker logic
pokerUpdate(&game->poker, &game->engine.render);
pokerUpdate(&game->poker, &game->engine);
// Hand back to the engine.
return engineUpdateEnd(&game->engine, game);