Added JS engine.

This commit is contained in:
2021-09-18 00:39:00 -07:00
parent 9dd9ce7cbd
commit ef9137fabb
52 changed files with 547 additions and 35712 deletions

View File

@ -12,6 +12,7 @@
#include "pokerworld.h"
#include "pokergameaction.h"
#include "ui/pokerui.h"
#include "../../engine/engine.h"
#include "../../poker/poker.h"
#include "../../poker/player.h"
#include "../../poker/dealer.h"
@ -58,4 +59,7 @@ typedef struct {
/** Data for the actions */
pokergameactiondata_t actionData[ANIMATION_QUEUE_ITEM_MAX];
/** Pointer back to the game engine */
engine_t *engine;
} pokergame_t;

View File

@ -17,6 +17,7 @@ typedef struct {
texture_t testTexture;
texture_t roomTexture;
texture_t cardTexture;
texture_t pennyTexture;
} pokergameassets_t;

View File

@ -17,6 +17,9 @@
#include "../../../ui/align.h"
#define POKER_PLAYER_UI_IMAGE_SIZE 64
#define POKER_PLAYER_UI_WIDTH 300
#define POKER_PLAYER_UI_HEIGHT POKER_PLAYER_UI_IMAGE_SIZE
#define POKER_PLAYER_UI_IMAGE_RESOLUTION POKER_PLAYER_UI_IMAGE_SIZE * 2
#define POKER_PLAYER_UI_IMAGE_DIST 0.8f
#define POKER_PLAYER_UI_IMAGE_Y 0.1f

View File

@ -9,7 +9,9 @@
#include "../../../libs.h"
#include "../../../poker/player.h"
#include "pokerplayerui.h"
#include "../../../ui/image.h"
typedef struct {
pokerplayerui_t player[POKER_PLAYER_COUNT];
image_t card;
} pokerui_t;