-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathplayer.h
More file actions
29 lines (22 loc) · 679 Bytes
/
Copy pathplayer.h
File metadata and controls
29 lines (22 loc) · 679 Bytes
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
#ifndef PLAYER
#define PLAYER
#include "raylib.h"
#include "car.h"
typedef struct{
int posX;
int posY;
int frameCounter;
int life;
Rectangle playerCollision;
Rectangle playerLife;
int speed;
int heading; //left or right
bool isMoving;
bool isReadytoHitCar; // começa sempre verdadeiro
bool isReadytoHitSpikes; // começa sempre verdadeiro
float invencibilityTime;
} Player;
void movePlayer(Player *player, Rectangle walls_player[]);
void startPlayerAnim(int frames, Texture2D walkingLeft[], Texture2D walkingRight[], Player *player);
void UnloadPlayerAnimation(Texture2D walkingLeft[], Texture2D walkingRight[]);
#endif