2018-07-05 19:24:47 +00:00
|
|
|
#ifndef _LMDAVE_H
|
|
|
|
#define _LMDAVE_H
|
|
|
|
|
|
|
|
#include <SDL.h>
|
|
|
|
|
2018-07-06 00:05:32 +00:00
|
|
|
// for dealing with resources in EXE
|
|
|
|
#include "util/util.h"
|
2018-07-05 19:24:47 +00:00
|
|
|
|
|
|
|
// global game state
|
|
|
|
typedef struct {
|
|
|
|
uint8_t quit;
|
|
|
|
uint8_t current_level;
|
|
|
|
uint8_t view_x, view_y;
|
|
|
|
|
2018-07-06 00:05:32 +00:00
|
|
|
level_t* levels; // grabbed from util
|
2018-07-05 19:24:47 +00:00
|
|
|
} game_state_t;
|
|
|
|
|
|
|
|
// game assets
|
|
|
|
typedef struct {
|
2018-07-06 00:05:32 +00:00
|
|
|
// tiles as textures converted from util's tile surfaces
|
|
|
|
SDL_Texture* tile_tx[NUM_EXE_TILES];
|
2018-07-05 19:24:47 +00:00
|
|
|
} game_assets_t;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|