added new screens and getting ready for networking, looking at SDL_net for cross platfrom networking so i dont have to touch windows
This commit is contained in:
@@ -6,27 +6,20 @@
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
|
||||
#define DEF_WINDOW_WIDTH 1920
|
||||
#define DEF_WINDOW_HEIGHT 1080
|
||||
|
||||
|
||||
extern int running;
|
||||
extern int state;
|
||||
|
||||
#define TITLE 0
|
||||
#define BATTLE 1
|
||||
#define START 1
|
||||
#define HOST 2
|
||||
#define JOIN 3
|
||||
#define OPTIONS 4
|
||||
#define BATTLE 5
|
||||
#define OVERWORLD 6
|
||||
extern int state;
|
||||
|
||||
#define START_GAME 0
|
||||
#define EXIT_GAME 1
|
||||
#define MAIN_SELECTIONS 2
|
||||
extern int selected_index;
|
||||
|
||||
void start_battle();
|
||||
|
||||
extern SDL_Window* window;
|
||||
extern SDL_Renderer* renderer;
|
||||
extern SDL_Event event;
|
||||
void start_game();
|
||||
void show_options();
|
||||
void host_game();
|
||||
void join_game();
|
||||
|
||||
#define GRAB_NEW 2
|
||||
#define GRAB_OLD 1
|
||||
@@ -34,4 +27,9 @@ extern SDL_Event event;
|
||||
#define NOT_DRAG 0
|
||||
extern int dragging;
|
||||
|
||||
|
||||
#define MAX_NAMESZ 64
|
||||
#define MAX_PLAYERS 4
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user