very wonky movement implementation
This commit is contained in:
parent
d2155bf27e
commit
0fc07ac95e
6 changed files with 74 additions and 13 deletions
4
dat.h
4
dat.h
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue