ParallaxBackground is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

ParallaxBackground class

Syntax

class ParallaxBackground : public Container { public:     ParallaxBackground(int16_t width, int16_t height);     virtual ~ParallaxBackground();     void startAnimation();     void stopAnimation();     void addPlayerCharacter(AnimatedImage& player);     void addCollectibleItem(CollectibleItem& item);     virtual void handleTickEvent(); private:     struct Layer      {         Image image0;         Image image1;         Image image2;         int animationUpdateSpeed;         int animationWidth;     };     enum AnimationState     {         ANIMATION_RUNNING,         NO_ANIMATION     };     AnimationState currentAnimationState;     int tickCounter;     Layer background;     Layer ground;     Layer leaves;     Layer treeTops;     void initializeLayer(Layer& layer, BitmapId bmp, int animationUpdateSpeed, int animationWidth, int y);     void moveLayer(Layer& layer, int tickCount); };

Fields

currentAnimationState

No summary provided. Read more...

tickCounter

No summary provided. Read more...

background

No summary provided. Read more...

ground

No summary provided. Read more...

leaves

No summary provided. Read more...

treeTops

No summary provided. Read more...

Methods

addPlayerCharacter()

No summary provided. Read more...

addCollectibleItem()

No summary provided. Read more...

handleTickEvent()

No summary provided. Read more...

initializeLayer()

No summary provided. Read more...

moveLayer()

No summary provided. Read more...

startAnimation()

No summary provided. Read more...

stopAnimation()

No summary provided. Read more...

Class Tree

Child classes
ParallaxBackground
all items filtered out
Variables of ParallaxBackground type
all items filtered out
ParallaxBackground