diff options
author | Juan J. Martinez <jjm@usebox.net> | 2023-07-08 22:35:16 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2023-07-08 22:35:16 +0100 |
commit | 8871729a65615df0eab213bbbf942abe75771704 (patch) | |
tree | 34a4ab0f412c34383799e14816d1dfe288705085 /src/entities.h | |
parent | 5ae0b6490f5fd138f4cbf5c084680bb03b2fff05 (diff) | |
download | gold-mine-run-8871729a65615df0eab213bbbf942abe75771704.tar.gz gold-mine-run-8871729a65615df0eab213bbbf942abe75771704.zip |
Avoid drawing the whole screen on each frame
This allows supporting 386DX "just about" (there will be flickering).
Diffstat (limited to 'src/entities.h')
-rw-r--r-- | src/entities.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/entities.h b/src/entities.h index 99424de..169e582 100644 --- a/src/entities.h +++ b/src/entities.h @@ -11,13 +11,15 @@ typedef struct entity_s uint8_t used; uint16_t x; uint16_t y; + uint8_t erase; + uint16_t ox; + uint16_t oy; uint8_t dir; uint8_t frame; uint8_t delay; uint8_t gravity; uint8_t flags; uint16_t counter; - uint8_t bg[16 * 16]; /* expected to be 2 directions per 4 frames max; 8 Rect */ const Rect *frames; void (*update)(struct entity_s *e); @@ -28,10 +30,7 @@ void entities_init(); Entity *entities_new(); void entities_update(); - -void entities_erase(); void entities_draw(); - void entities_warp_out_all(); #endif /* _ENTITIES_H */ |