aboutsummaryrefslogtreecommitdiff
path: root/src/doc/feature/scene.dox
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-01 15:05:28 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-01 15:05:28 +0100
commit5981ab2262a98b80a1339f86a6b71093576a9b35 (patch)
tree325ff71fc2482a6960656f0ced80db874945a938 /src/doc/feature/scene.dox
parent4d6d5a6ff5366877cbc7b8e24110b56a332a7353 (diff)
parent647eb8e318f1ed1e3ec18505ea4df57025e6ffd5 (diff)
Merge branch 'master' of https://github.com/lonkaars/crepe into wouter/gameloop
Diffstat (limited to 'src/doc/feature/scene.dox')
-rw-r--r--src/doc/feature/scene.dox6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/doc/feature/scene.dox b/src/doc/feature/scene.dox
index eedc69a..d81df4c 100644
--- a/src/doc/feature/scene.dox
+++ b/src/doc/feature/scene.dox
@@ -36,16 +36,14 @@ concrete scene to be added.
#include <crepe/api/LoopManager.h>
#include <crepe/api/GameObject.h>
#include <crepe/api/Scene.h>
-#include <crepe/api/Vector2.h>
+#include <crepe/types.h>
using namespace crepe;
class MyScene : public Scene {
public:
- using Scene::Scene;
-
void load_scene() {
- auto & mgr = this->component_manager;
+ ComponentManager & mgr = this->component_manager;
GameObject object1 = mgr.new_object("object1", "tag_my_scene", vec2{0, 0}, 0, 1);
GameObject object2 = mgr.new_object("object2", "tag_my_scene", vec2{1, 0}, 0, 1);
}