You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
537 B
23 lines
537 B
#ifndef GAME_H_
|
|
#define GAME_H_
|
|
|
|
#include "raylib.h"
|
|
|
|
typedef struct Game{
|
|
Texture2D worker[8];
|
|
struct TextureAtlas *textures;
|
|
struct Sprite *cursorSprite;
|
|
struct List *sprites;
|
|
struct InputHandler *inputHandler;
|
|
struct Camera2D *camera;
|
|
struct IsometricMap **layers;
|
|
|
|
// Head of the sorted buckets. Used to draw sprites/tiles correctly on the screen.
|
|
// Head is the bucket with the highest depth
|
|
struct Bucket *head;
|
|
} Game;
|
|
|
|
// returns pointer to new Game instance
|
|
Game * GameInit();
|
|
|
|
#endif |