render: use tileset atlas for all entity and tile rendering; anims

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Idb42cff72368e26d8d44db79ba9c413a6a6a6964
This commit is contained in:
raf 2026-04-28 15:32:56 +03:00
commit 5b640dcefd
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF
7 changed files with 556 additions and 90 deletions

View file

@ -2,6 +2,7 @@
#define GAME_STATE_H
#include "common.h"
#include "tileset/tileset.h"
#include <raylib.h>
// Floating damage text
@ -65,6 +66,12 @@ typedef struct {
int final_score;
// Seed for this run
unsigned int run_seed;
// Tileset atlas for rendering
Tileset tileset;
// Slash effect timer for attack animations
int slash_timer; // frames remaining for slash effect
int slash_x, slash_y; // position of slash effect
DamageClass slash_dmg_class; // damage type for slash visual
} GameState;
#endif // GAME_STATE_H