forked from NotAShelf/rogged
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:
parent
2f5c959500
commit
5b640dcefd
7 changed files with 556 additions and 90 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue