diff options
Diffstat (limited to 'src/doc/feature')
-rw-r--r-- | src/doc/feature/scene.dox | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/feature/scene.dox b/src/doc/feature/scene.dox index 5d765f9..bac1c87 100644 --- a/src/doc/feature/scene.dox +++ b/src/doc/feature/scene.dox @@ -36,7 +36,7 @@ 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/util/types.h> using namespace crepe; @@ -44,8 +44,8 @@ class MyScene : public Scene { public: void load_scene() { ComponentManager & mgr = this->component_manager; - GameObject object1 = mgr.new_object("object1", "tag_my_scene", Vector2{0, 0}, 0, 1); - GameObject object2 = mgr.new_object("object2", "tag_my_scene", Vector2{1, 0}, 0, 1); + 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); } string get_name() const { return "my_scene"; } |