diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-03 20:43:57 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-03 20:43:57 +0100 |
commit | 322e9a8ceaa8b2ce5d3e6056be4a9739817d47cf (patch) | |
tree | d5eee2597b7f61359b15d0f97b1f6537241ecd17 /src/example | |
parent | 668bd96c28c75a21c17c01d39553231be34be119 (diff) |
improved comments
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/game.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/example/game.cpp b/src/example/game.cpp index 5e3fab7..de08a22 100644 --- a/src/example/game.cpp +++ b/src/example/game.cpp @@ -38,7 +38,7 @@ public: void load_scene() { ComponentManager & mgr = this->component_manager; - Color color(0, 0, 0, 0); + Color color(0, 0, 0, 255); float screen_size_width = 640; float screen_size_height = 480; @@ -71,7 +71,7 @@ public: game_object1.add_component<BoxCollider>(vec2{0, 0}, vec2{20, 20}); game_object1.add_component<BehaviorScript>().set_script<MyScript>(); auto img = Texture("asset/texture/green_square.png"); - game_object1.add_component<Sprite>(img, color, Sprite::FlipSettings{false, false}, 1, 1, 500); + game_object1.add_component<Sprite>(img, color, Sprite::FlipSettings{false, false}, 1, 1, 20); } string get_name() const { return "scene1"; } |