From 8871729a65615df0eab213bbbf942abe75771704 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Sat, 8 Jul 2023 22:35:16 +0100 Subject: Avoid drawing the whole screen on each frame This allows supporting 386DX "just about" (there will be flickering). --- src/entities.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/entities.h') 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 */ -- cgit v1.2.3