very wonky movement implementation

This commit is contained in:
cat 2025-05-28 18:57:21 +10:00
parent d2155bf27e
commit 0fc07ac95e
6 changed files with 74 additions and 13 deletions

4
dat.h
View file

@ -3,6 +3,8 @@ typedef struct Image Image;
typedef struct State State;
struct Samply {
Image *tx; /* this is a pointer to one of the images below */
Image *idle;
Image *walka;
Image *walkb;
@ -21,6 +23,8 @@ struct Image {
struct State {
SDL_Window *win;
SDL_Renderer *ren;
SDL_DisplayID dpy;
SDL_Rect bounds;
Uint64 lastframe;
Samply *sam;