diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-14 11:53:40 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-14 11:53:40 +0100 |
commit | e30057abadb5372d84230fa4ce4238528177a9bf (patch) | |
tree | 360fa003b9afef9b7f7bee06849e3532e00eae7b /src | |
parent | d6b11fadd9e64aecbe96e5f73f85be3c0d790dcf (diff) |
fixed game example
Diffstat (limited to 'src')
-rw-r--r-- | src/example/game.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/example/game.cpp b/src/example/game.cpp index f8520f4..7c9a227 100644 --- a/src/example/game.cpp +++ b/src/example/game.cpp @@ -262,7 +262,7 @@ public: = false; Asset img5{"asset/texture/square.png"}; - GameObject particle = mgr.new_object( + GameObject particle = new_object( "Name", "Tag", vec2{screen_size_width / 2, screen_size_height / 2}, 0, 1); auto & particle_image = particle.add_component<Sprite>(img5, Sprite::Data{ .size = {5, 5}, |