diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2024-12-29 15:34:23 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2024-12-29 15:34:23 +0100 |
commit | b82c302e2eb5044ae966230a50aae9bdb698cf8c (patch) | |
tree | 49e6948b3110b01b6e4bb8855710f91f88be6357 /game/coins/CoinSubScene.cpp | |
parent | b758b2b20da8e3ab002dacc663237e1681ae973c (diff) |
added more presets
Diffstat (limited to 'game/coins/CoinSubScene.cpp')
-rw-r--r-- | game/coins/CoinSubScene.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/game/coins/CoinSubScene.cpp b/game/coins/CoinSubScene.cpp index 97f5877..0a1cd68 100644 --- a/game/coins/CoinSubScene.cpp +++ b/game/coins/CoinSubScene.cpp @@ -18,7 +18,9 @@ int CoinSubScene::create(Scene & scn){ cout << "new coin: "<< unique_name << endl; GameObject coin = scn.new_object(unique_name.c_str(),"coin",vec2{650,0},0,1); - coin.add_component<Rigidbody>(Rigidbody::Data{}); + coin.add_component<Rigidbody>(Rigidbody::Data{ + .body_type = Rigidbody::BodyType::KINEMATIC + }); coin.add_component<CircleCollider>(size.x / 2).active = false; crepe::OptionalRef<crepe::Sprite> coin_sprite = coin.add_component<Sprite>(Asset{"asset/coin/coin1_TVOS.png"}, Sprite::Data{ .sorting_in_layer = 100, |