aboutsummaryrefslogtreecommitdiff
path: root/src/example/button.cpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-04 11:57:24 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-12-04 11:57:24 +0100
commitdc6d3b94d322f6763ff9c7210ea33e747487772c (patch)
tree3f3ae1fa4d20e087e10f49ebdc85a7774eb56ee1 /src/example/button.cpp
parent2ad609ac1b08894b607fb56d74f45fffaba6c9ed (diff)
check if camera position change button still works
Diffstat (limited to 'src/example/button.cpp')
-rw-r--r--src/example/button.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/example/button.cpp b/src/example/button.cpp
index 96e6571..e63293b 100644
--- a/src/example/button.cpp
+++ b/src/example/button.cpp
@@ -25,10 +25,10 @@ int main(int argc, char * argv[]) {
EventManager & event_mgr = EventManager::get_instance();
InputSystem input_sys{mgr};
AnimatorSystem asys{mgr};
- GameObject camera_obj = mgr.new_object("", "", vec2{0, 0}, 0, 1);
+ GameObject camera_obj = mgr.new_object("", "", vec2{1000, 1000}, 0, 1);
camera_obj.add_component<Camera>(Color::WHITE, ivec2{720, 1080}, vec2{2000, 2000}, 1.0f);
- GameObject button_obj = mgr.new_object("body", "person", vec2{0, -1000}, 0, 1);
+ GameObject button_obj = mgr.new_object("body", "person", vec2{1000, 0}, 0, 1);
auto s2 = Texture("asset/texture/test_ap43.png");
bool button_clicked = false;
auto & sprite2 = button_obj.add_component<Sprite>(