Added game sources: Skully Escape

This game was developed for King GameJam 2015
This commit is contained in:
raysan5
2016-02-07 11:09:12 +01:00
parent 4fae37bb88
commit 4a3509f06d
48 changed files with 4549 additions and 0 deletions

View File

@ -0,0 +1,51 @@
#ifndef PLAYER_H
#define PLAYER_H
//----------------------------------------------------------------------------------
// Types and Structures Definition
//----------------------------------------------------------------------------------
typedef enum { NONE, WALK_RIGHT, WALK_LEFT, SCARE_RIGHT, SCARE_LEFT, SEARCH, FIND_KEY } PlayerSequence;
typedef struct Player {
Vector2 position;
Rectangle bounds;
Texture2D texture;
Color color;
// Animation variables
Rectangle frameRec;
int currentFrame;
int currentSeq;
bool key;
int numLifes;
bool dead;
} Player;
//----------------------------------------------------------------------------------
// Global Variables Definition
//----------------------------------------------------------------------------------
Player player;
#ifdef __cplusplus
extern "C" { // Prevents name mangling of functions
#endif
//----------------------------------------------------------------------------------
// Logo Screen Functions Declaration
//----------------------------------------------------------------------------------
void InitPlayer(void);
void UpdatePlayer(void);
void DrawPlayer(void);
void UnloadPlayer(void);
void ResetPlayer(void);
void ScarePlayer(void);
void SearchKeyPlayer(void);
void FindKeyPlayer(void);
#ifdef __cplusplus
}
#endif
#endif // SCREENS_H