Trying to put it all together.
This commit is contained in:
@ -9,6 +9,17 @@
|
||||
#include "../../libs.h"
|
||||
#include "../../display/primitive.h"
|
||||
|
||||
#define POKER_WORLD_SEAT_DISTANCE -1
|
||||
#define POKER_WORLD_SEAT_ROTATION(n) ((8 - n) * 0.785398)
|
||||
|
||||
#define POKER_WORLD_SEAT_POSITION_X(n) ( \
|
||||
POKER_WORLD_SEAT_DISTANCE * (float)sin(POKER_WORLD_SEAT_ROTATION(n)) \
|
||||
)
|
||||
#define POKER_WORLD_SEAT_POSITION_Y -0.2f
|
||||
#define POKER_WORLD_SEAT_POSITION_Z(n) ( \
|
||||
POKER_WORLD_SEAT_DISTANCE * (float)cos(POKER_WORLD_SEAT_ROTATION(n)) \
|
||||
)
|
||||
|
||||
typedef struct {
|
||||
primitive_t skywall;
|
||||
} pokerworld_t;
|
Reference in New Issue
Block a user