Proper layer rendering

This commit is contained in:
2023-11-08 08:37:09 +01:00
parent 120cb7503b
commit ca1cd4b1f9
8 changed files with 218 additions and 89 deletions

View File

@@ -1,6 +1,8 @@
#ifndef BREEZE_TILESET_H
#define BREEZE_TILESET_H
#include "../defines.h"
#include <raylib.h>
typedef struct BzTilesetDesc {
@@ -10,13 +12,13 @@ typedef struct BzTilesetDesc {
typedef struct BzTileset {
Texture2D tiles;
int startID;
int tileWidth;
int tileHeight;
int width;
int height;
int offsetX;
int offsetY;
i32 startID;
i32 tileWidth;
i32 tileHeight;
i32 width;
i32 height;
i32 offsetX;
i32 offsetY;
bool isValid;
} BzTileset;