raylibstarter 0.1.0
game_scene.h
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4
5#include <actor.h>
6#include <scene.h>
7#include <sprite.h>
8#include <sprite_animated.h>
9
10namespace game::scenes {
11 class GameScene final : public game::core::Scene {
12 public:
13 GameScene();
14
15 ~GameScene() override;
16
17 void Update() override;
18
19 void Draw() override;
20
21 private:
22 // Add private members here...
23 };
24}
Scene base class. Scenes are managed by the Stage object.
Definition: scene.h:23
void Update() override
The Update() method is used to process input and update the game state. It is called automatically be...
Definition: game_scene.cpp:27
void Draw() override
The Draw() method can be used to output graphics. Note that the elements of the actor map are drawn a...
Definition: game_scene.cpp:33