|
R-Type 0.1
|
Scrolls background layers and wraps them to loop endlessly. More...
#include <systems/ParallaxSystem.hpp>
Public Member Functions | |
| void | onStart (rtk::ecs::Registry &) override |
| Logs that the system is loaded. | |
| void | update (rtk::ecs::Registry ®, float dt) override |
| Moves each layer left and jumps it three tiles right once off screen. | |
| void | onStop (rtk::ecs::Registry &) override |
| Does nothing. | |
Scrolls background layers and wraps them to loop endlessly.
|
inlineoverride |
Moves each layer left and jumps it three tiles right once off screen.
| reg | Registry holding the layers. |
| dt | Elapsed time since the last frame, in seconds. |