Air-Trap 1.0.0
A multiplayer R-Type clone game engine built with C++23 and ECS architecture
Loading...
Searching...
No Matches
rtp::ecs::components::ParallaxLayer Struct Reference

Tag component indicating that an entity should loop its position when it exits the screen (infinite scrolling). More...

#include <ParallaxLayer.hpp>

Collaboration diagram for rtp::ecs::components::ParallaxLayer:

Public Attributes

float textureWidth = {0.0f}
 Width of the texture used for parallax scrolling.
 
float speed = {100.0f}
 Scrolling speed of the parallax layer.
 

Detailed Description

Tag component indicating that an entity should loop its position when it exits the screen (infinite scrolling).

Definition at line 17 of file ParallaxLayer.hpp.

Member Data Documentation

◆ speed

float rtp::ecs::components::ParallaxLayer::speed = {100.0f}

Scrolling speed of the parallax layer.

Definition at line 19 of file ParallaxLayer.hpp.

Referenced by rtp::client::EntityTemplate::makeParallax(), and rtp::client::ParallaxSystem::update().

◆ textureWidth

float rtp::ecs::components::ParallaxLayer::textureWidth = {0.0f}

Width of the texture used for parallax scrolling.

Definition at line 18 of file ParallaxLayer.hpp.

Referenced by rtp::client::EntityTemplate::makeParallax(), and rtp::client::scenes::MenuScene::onEnter().


The documentation for this struct was generated from the following file: