aboutsummaryrefslogtreecommitdiff
path: root/game/missile/MissileSubScene.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/missile/MissileSubScene.cpp')
-rw-r--r--game/missile/MissileSubScene.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/game/missile/MissileSubScene.cpp b/game/missile/MissileSubScene.cpp
index 6df6c87..d325050 100644
--- a/game/missile/MissileSubScene.cpp
+++ b/game/missile/MissileSubScene.cpp
@@ -87,14 +87,13 @@ void MissileSubScene::create(crepe::Scene & scn) {
missile_explosion_sprite.active = false;
explosion_anim.active = false;
- missle
- .add_component<Rigidbody>(Rigidbody::Data {
- .body_type = Rigidbody::BodyType::KINEMATIC,
- .max_linear_velocity = Random::f(250, 200),
- .kinematic_collision = false,
- .collision_layers = {COLL_LAY_PLAYER, COLL_LAY_BOT_TOP},
- .collision_layer = COLL_LAY_MISSILE,
- });
+ missle.add_component<Rigidbody>(Rigidbody::Data {
+ .body_type = Rigidbody::BodyType::KINEMATIC,
+ .max_linear_velocity = Random::f(250, 200),
+ .kinematic_collision = false,
+ .collision_layers = {COLL_LAY_PLAYER, COLL_LAY_BOT_TOP},
+ .collision_layer = COLL_LAY_MISSILE,
+ });
missle.add_component<CircleCollider>(3).active = false;