|
R-Type 0.1
|
In game scene, which shows the scrolling starfield. More...
#include <scene/gameScene.hpp>
Public Member Functions | |
| GameScene (rtk::RenderWindow &window) | |
| Creates the scene. | |
| void | onEnter (rtk::EngineContext &context) |
| Creates the two parallax starfield layers. | |
| std::optional< SceneType > | onUpdate (rtk::EngineContext &context, const rtk::InputState &inputState, float dt) |
| Does nothing, the game stays in this scene. | |
| void | onExit (rtk::EngineContext &context) |
| Destroys the entities created by the scene. | |
Static Public Attributes | |
| static constexpr SceneType | Type = SceneType::Game |
| Identifier of this scene. | |
In game scene, which shows the scrolling starfield.
|
explicit |
Creates the scene.
| window | Window of the client. |
| void rtype::client::GameScene::onEnter | ( | rtk::EngineContext & | context | ) |
Creates the two parallax starfield layers.
| context | Engine services. |
| std::optional< SceneType > rtype::client::GameScene::onUpdate | ( | rtk::EngineContext & | context, |
| const rtk::InputState & | inputState, | ||
| float | dt ) |
Does nothing, the game stays in this scene.
| context | Engine services. |
| inputState | Input state of the frame. |
| dt | Elapsed time since the last frame, in seconds. |
| void rtype::client::GameScene::onExit | ( | rtk::EngineContext & | context | ) |
Destroys the entities created by the scene.
| context | Engine services. |