add recmeta structure
This commit is contained in:
parent
e48aa7feed
commit
a7e865b201
36
src/duet.h
36
src/duet.h
|
@ -17,6 +17,42 @@ typedef struct {
|
|||
float vr; /* rad/s */
|
||||
} rect_t;
|
||||
|
||||
|
||||
//---
|
||||
// Level strucutres
|
||||
//---
|
||||
|
||||
typedef enum {
|
||||
Shape_Square = 0,
|
||||
Shape_LongBar = 1,
|
||||
Shape_NormalBar = 2,
|
||||
Shape_BorderBar = 2,
|
||||
} shape_t;
|
||||
|
||||
typedef enum {
|
||||
Action_RotateLeft = 0,
|
||||
Action_RotateRight = 1,
|
||||
Action_Speed = 2,
|
||||
Action_FadeOut = 3,
|
||||
} action_t;
|
||||
|
||||
typedef enum {
|
||||
Position_Left = 0,
|
||||
Position_Right = 1,
|
||||
Position_Middle = 2
|
||||
} position_t;
|
||||
|
||||
typedef struct {
|
||||
int time;
|
||||
shape_t shape;
|
||||
position_t position;
|
||||
action_t action;
|
||||
} rectmeta_t;
|
||||
|
||||
//typedef struct {
|
||||
// rectmeta_t ;
|
||||
//} level_t;
|
||||
|
||||
//---
|
||||
// Rendering
|
||||
//---
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
#include <gint/display.h>
|
||||
#include <gint/keyboard.h>
|
||||
|
||||
//rectmeta_t level1[] = {
|
||||
// {.time = 0, .shape = Shape_LongBar, .position = Position_Left}
|
||||
//};
|
||||
|
||||
|
||||
int main(void)
|
||||
{
|
||||
dclear(C_WHITE);
|
||||
|
|
Loading…
Reference in New Issue