From b82c302e2eb5044ae966230a50aae9bdb698cf8c Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Sun, 29 Dec 2024 15:34:23 +0100 Subject: added more presets --- game/coins/CoinSubScene.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'game/coins/CoinSubScene.cpp') 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::Data{}); + coin.add_component(Rigidbody::Data{ + .body_type = Rigidbody::BodyType::KINEMATIC + }); coin.add_component(size.x / 2).active = false; crepe::OptionalRef coin_sprite = coin.add_component(Asset{"asset/coin/coin1_TVOS.png"}, Sprite::Data{ .sorting_in_layer = 100, -- cgit v1.2.3