generated from ECE-Lyon/Base-Projet-Avec-Marp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
guitarhero.h
47 lines (40 loc) · 1.33 KB
/
guitarhero.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// Created by Scotch on 25/04/2023.
//
#ifndef MARIO_PARTEAM_V1_GUITARHERO_H
#define MARIO_PARTEAM_V1_GUITARHERO_H
#include "generalfunctions.h"
#define ANIMATION 2
#define ECARTPARFAIT 20
#define ECARTMOYEN 50
#define MAXX 100
#define XSTAGE 0
#define YSTAGE 30000
typedef struct boutons{
BITMAP *vert[ANIMATION]; //0 a
BITMAP *rouge[ANIMATION]; //1 z
BITMAP *jaune[ANIMATION]; //2 e
BITMAP *bleu[ANIMATION]; //3 r
BITMAP *orange[ANIMATION]; //4 t
char clavier[5];
int xboutons[5];
int yboutons[5];
int color[5];
int txb, tyb;
}t_boutons;
typedef struct score{
long int score;
int xscore, yscore;
//tab de score ?
int combo;
int xcombo,ycombo;
int color;
}t_score;
void initBoutons(t_boutons *boutons);
void initScore(t_score *score);
void animationBoutons(t_boutons *boutons, BITMAP *page);
void detectScore(t_score *score, t_boutons *boutons,BITMAP *page, bool touchePress[5], int toucheIsPress[5]); // appeler animationBoutons dans cette fonction
void guitareHero(t_score *score, t_boutons *boutons, BITMAP *stage, BITMAP *page,int ystage, bool touchePress[5]); //fonction du jeu
int Menu(BITMAP *page,BITMAP *fond,int *x1, int *x2, int *y1, int *y2);
void Gh();
#endif //MARIO_PARTEAM_V1_GUITARHERO_H