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

Method ScrollDown

src/game_map.cpp:2203–2223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2201}
2202
2203void Game_Map::Parallax::ScrollDown(int distance) {
2204 if (!distance) {
2205 return;
2206 }
2207
2208 Params params = GetParallaxParams();
2209 if (params.name.empty()) {
2210 return;
2211 }
2212
2213 if (params.scroll_vert) {
2214 AddPositionY(distance);
2215 return;
2216 }
2217
2218 if (Game_Map::LoopVertical()) {
2219 return;
2220 }
2221
2222 ResetPositionY();
2223}
2224
2225void Game_Map::Parallax::Update() {
2226 Params params = GetParallaxParams();

Callers

nothing calls this directly

Calls 2

GetParallaxParamsFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected