diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2025-01-10 19:32:49 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2025-01-10 19:32:49 +0100 |
commit | 0b19fe5a9168368d4be0993407dd3fc3bdfa0611 (patch) | |
tree | ef30fcd2790c16bf2103be5bf8ed4a9e1b20fe49 /game/PreviewScene.cpp | |
parent | c17a1ac94186a2de6ad30e9228a031fb08434e52 (diff) |
make format
Diffstat (limited to 'game/PreviewScene.cpp')
-rw-r--r-- | game/PreviewScene.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/game/PreviewScene.cpp b/game/PreviewScene.cpp index 1179ffc..14a5560 100644 --- a/game/PreviewScene.cpp +++ b/game/PreviewScene.cpp @@ -77,15 +77,15 @@ void PreviewScene::load_scene() { .collision_layer = COLL_LAY_BOT_TOP, }); ceiling.add_component<BoxCollider>(vec2(INFINITY, 200)); - + GameObject world = this->new_object("world", "TAG", vec2 {0, 0}, 0, 1); world.add_component<Rigidbody>(Rigidbody::Data { .body_type = Rigidbody::BodyType::STATIC, .collision_layer = 100, }); - world.add_component<BoxCollider>(vec2(100,INFINITY), vec2(VIEWPORT_X,VIEWPORT_Y)); - world.add_component<BoxCollider>(vec2(100,INFINITY), vec2(100,VIEWPORT_Y)); + world.add_component<BoxCollider>(vec2(100, INFINITY), vec2(VIEWPORT_X, VIEWPORT_Y)); + world.add_component<BoxCollider>(vec2(100, INFINITY), vec2(100, VIEWPORT_Y)); PrevPlayerSubScene player(*this); NpcSubScene npc(*this); |