MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / toggleMini

Method toggleMini

Source/PlayerObject.cpp:1019–1026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1017}
1018
1019void PlayerObject::toggleMini(bool active)
1020{
1021 _mini = active;
1022 _vehicleSize = active ? 0.6f : 1.f;
1023 auto ac = ScaleTo::create(0.5f, active ? 0.6f : 1.f);
1024 auto bounce = EaseBounceOut::create(ac);
1025 this->runAction(bounce);
1026}
1027
1028void PlayerObject::pushButton()
1029{

Callers 2

checkCollisionsMethod · 0.80
resetLevelMethod · 0.80

Calls 1

createFunction · 0.85

Tested by

no test coverage detected