diff options
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); |