aboutsummaryrefslogtreecommitdiff
path: root/src/example/FontExample.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-17 13:34:19 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-17 13:34:19 +0100
commit69ca7fdd738fd4ed98aefc07bab5a43486a55619 (patch)
treed4c13778166d0ae0a038ca067a64b570df73ffb2 /src/example/FontExample.cpp
parent34a773eb0f01379419900a3fe26527702146b890 (diff)
final changes
Diffstat (limited to 'src/example/FontExample.cpp')
-rw-r--r--src/example/FontExample.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/example/FontExample.cpp b/src/example/FontExample.cpp
index 7b2dadb..6a334b1 100644
--- a/src/example/FontExample.cpp
+++ b/src/example/FontExample.cpp
@@ -1,6 +1,7 @@
#include <SDL2/SDL_ttf.h>
#include <chrono>
#include <crepe/api/Camera.h>
+#include <crepe/api/Config.h>
#include <crepe/api/GameObject.h>
#include <crepe/api/LoopManager.h>
#include <crepe/api/Scene.h>
@@ -11,7 +12,6 @@
#include <crepe/manager/EventManager.h>
#include <crepe/manager/Mediator.h>
#include <crepe/manager/ResourceManager.h>
-#include <crepe/api/Config.h>
#include <exception>
#include <iostream>
#include <memory>
@@ -37,7 +37,8 @@ class TestScene : public Scene {
public:
void load_scene() override {
GameObject text_object = this->new_object("test", "test", vec2{0, 0}, 0, 1);
- text_object.add_component<Text>(vec2(100, 100), vec2(0, 0), "OpenSymbol", Text::Data{});
+ text_object.add_component<Text>(vec2(100, 100), vec2(0, 0), "OpenSymbol",
+ Text::Data{});
text_object.add_component<BehaviorScript>().set_script<TestScript>();
text_object.add_component<Camera>(ivec2{300, 300}, vec2{100, 100}, Camera::Data{});
}