Bug with types

This commit is contained in:
OrPas 2021-01-05 14:13:28 +01:00
parent f49997e470
commit 0a5476d6d0
1 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,8 @@
#include <gint/display.h>
#include <gint/keyboard.h>
#include <gint/clock.h>
#define bloc 1
#define other 2
extern bopti_image_t img_personnage;
extern bopti_image_t img_personnagemarche;
@ -8,6 +10,14 @@ extern bopti_image_t img_personnagemarcheleft;
extern bopti_image_t img_personnageleft;
extern bopti_image_t img_personnage2;
extern bopti_image_t img_personnage2left;
typedef int type;
struct object {
bopti_image_t *img;
int x;
int y;
type typeObj = bloc;
struct object *next;
};
struct anim {
bopti_image_t *img;
int duration;