mirror of
https://github.com/luksamuk/engine-psx.git
synced 2025-04-28 21:38:02 +03:00
Add parallax auto movement
This commit is contained in:
parent
bb0624ad35
commit
686ab38515
5 changed files with 23 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue