From 5bee4515c1089ce3499bc3b74780db94f0c02306 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 15 Nov 2024 20:26:26 +0100 Subject: process feedback on #26 --- src/example/particles.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/example') diff --git a/src/example/particles.cpp b/src/example/particles.cpp index 6eab046..35faab0 100644 --- a/src/example/particles.cpp +++ b/src/example/particles.cpp @@ -14,7 +14,8 @@ using namespace crepe; using namespace std; int main(int argc, char * argv[]) { - GameObject game_object(0, "", "", Vector2{0, 0}, 0, 0); + ComponentManager mgr{}; + GameObject game_object = mgr.new_object("", "", Vector2{0, 0}, 0, 0); Color color(0, 0, 0, 0); Sprite test_sprite = game_object.add_component( make_shared("../asset/texture/img.png"), color, -- cgit v1.2.3