aboutsummaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2024-12-03 20:43:57 +0100
committerJAROWMR <jarorutjes07@gmail.com>2024-12-03 20:43:57 +0100
commit322e9a8ceaa8b2ce5d3e6056be4a9739817d47cf (patch)
treed5eee2597b7f61359b15d0f97b1f6537241ecd17 /src/example
parent668bd96c28c75a21c17c01d39553231be34be119 (diff)
improved comments
Diffstat (limited to 'src/example')
-rw-r--r--src/example/game.cpp4
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"; }