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.
22 lines
536 B
22 lines
536 B
#ifndef ISOMETRICMAP_H_
|
|
#define ISOMETRICMAP_H_
|
|
#include "raylib.h"
|
|
#include "tile.c"
|
|
|
|
typedef struct IsometricMap{
|
|
Texture2D tileTextures[10];
|
|
Tile **tiles;
|
|
int sizeX;
|
|
int sizeY;
|
|
} IsometricMap;
|
|
|
|
// TODO:
|
|
void IsometricMapAddTile(IsometricMap isometricMap);
|
|
Tile IsometricMapGetTileFromArrayPosition(int x, int y);
|
|
Tile IsometricMapGetTileFromWorldCoordinates(float x, float y);
|
|
Vector2 * IsometricMapCalcOffsetForTileAt(int x, int y, int textureSize);
|
|
|
|
// Working
|
|
IsometricMap * IsometricMapInit(int x, int y);
|
|
|
|
#endif |