MCPcopy Create free account
hub / github.com/EasyRPG/Player / ShakeBegin

Method ShakeBegin

src/game_screen.cpp:148–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148void Game_Screen::ShakeBegin(int power, int speed) {
149 data.shake_strength = power;
150 data.shake_speed = speed;
151 data.shake_time_left = Shake::kShakeContinuousTimeStart;
152 data.shake_continuous = true;
153 // Shake position is not reset in RPG_RT, so that multiple shakes
154 // which interrupt each other flow smoothly.
155}
156
157void Game_Screen::ShakeEnd() {
158 data.shake_position = 0;

Callers 1

CommandShakeScreenMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected