Add parallax auto movement

This commit is contained in:
Lucas S. Vieira 2024-10-25 00:49:22 -03:00
parent bb0624ad35
commit 686ab38515
5 changed files with 23 additions and 4 deletions

View file

@ -40,11 +40,15 @@ typedef struct {
uint8_t num_parts;
uint8_t is_single;
int32_t scrollx;
int32_t speedx;
int16_t y0;
ParallaxPart *parts;
// Calculated on load
uint16_t width;
// State
int32_t rposx;
} ParallaxStrip;
// Holds all parallax strips for a level