aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-17 13:58:52 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-12-17 13:58:52 +0100
commit8d3fd95ad8564740bb169f4e08bc085a232a4d83 (patch)
tree7d0334ee18d0f9278817143b73be0385516b4093 /src/example
parent31fe4b1d44a7a7114c7ef8c0c5310a6070214cb2 (diff)
workig rending text
Diffstat (limited to 'src/example')
-rw-r--r--src/example/rendering_particle.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/example/rendering_particle.cpp b/src/example/rendering_particle.cpp
index b261f52..aa71dd0 100644
--- a/src/example/rendering_particle.cpp
+++ b/src/example/rendering_particle.cpp
@@ -62,12 +62,12 @@ public:
.position_offset = {0, 0},
});
- auto & cam = game_object.add_component<Camera>(ivec2{400, 400}, vec2{400, 400},
+ auto & cam = game_object.add_component<Camera>(ivec2{1280, 720}, vec2{400, 400},
Camera::Data{
.bg_color = Color::WHITE,
});
- game_object.add_component<Text>(vec2{200, 200}, vec2{0, 0}, "test test", "Ariel.ttf",
- Text::Data{});
+ game_object.add_component<Text>(vec2{400, 400}, vec2{0, 0}, "ComicSansMS",
+ Text::Data{.text_color = Color::RED}, "TEST test");
}
string get_name() const { return "TestScene"; };