Add keyboard enumeration function. Make image layers work.

This commit is contained in:
2026-05-13 08:02:59 -04:00
parent 36dfd47a06
commit b8dee456ca
5 changed files with 85 additions and 19 deletions

View File

@@ -19,6 +19,7 @@
#define AKGL_TILEMAP_LAYER_TYPE_TILES 1
#define AKGL_TILEMAP_LAYER_TYPE_OBJECTS 2
#define AKGL_TILEMAP_LAYER_TYPE_IMAGE 3
typedef struct {
float x;
@@ -43,6 +44,7 @@ typedef struct {
int x;
int y;
int id;
SDL_Texture *texture;
int data[AKGL_TILEMAP_MAX_WIDTH * AKGL_TILEMAP_MAX_HEIGHT];
akgl_TilemapObject objects[AKGL_TILEMAP_MAX_OBJECTS_PER_LAYER];
} akgl_TilemapLayer;