This repository has been archived on 2021-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
raylib-test/include/rogue.h
Tobias Berger 95f105fd96 egg
2021-11-29 16:43:21 +01:00

33 lines
No EOL
536 B
C

#include "raylib.h"
typedef struct Vector2i
{
int x;
int y;
} Vector2i;
typedef struct Entity
{
Vector2i position;
Color color;
} Entity;
typedef struct Tile
{
bool walkable;
Color color;
} Tile;
Entity *createPlayer(Vector2i start_position);
Tile **createMapTiles();
void freeMapTiles(Tile **map_tiles);
void renderEverything(RenderTexture2D target);
void initGame();
void mainLoop();
void endGame();
extern unsigned int const MAP_HEIGHT;
extern unsigned int const MAP_WIDTH;
extern Entity *player;
extern Tile **map;