44 lines
723 B
C
44 lines
723 B
C
#ifndef STATE_TEST_H
|
|
#define STATE_TEST_H
|
|
#include <SDL2/SDL.h>
|
|
|
|
#include "sprite.h"
|
|
#include "AnimData.h"
|
|
#include "Resource.h"
|
|
#include "Entity.h"
|
|
|
|
int openTestState();
|
|
void closeTestState();
|
|
void handleTestState(SDL_Event event);
|
|
void processTestState();
|
|
void renderTestState();
|
|
|
|
int player_id;
|
|
int player_sprite;
|
|
int player_animation;
|
|
|
|
struct Resource *current_anim;
|
|
struct Resource *current_set;
|
|
struct FaceData *current_face;
|
|
struct FrameData *current_frame;
|
|
|
|
int frame;
|
|
|
|
struct Resource *test_resource;
|
|
|
|
#define NORTHEAST 9
|
|
#define NORTH 8
|
|
#define NORTHWEST 7
|
|
#define EAST 6
|
|
#define CENTER 5
|
|
#define WEST 4
|
|
#define SOUTHEAST 3
|
|
#define SOUTH 2
|
|
#define SOUTHWEST 1
|
|
#define KEY_COUNT 9
|
|
char keys[9];
|
|
|
|
int x, y;
|
|
|
|
#endif
|