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

Method ScrollRight

src/game_map.cpp:2181–2201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2179}
2180
2181void Game_Map::Parallax::ScrollRight(int distance) {
2182 if (!distance) {
2183 return;
2184 }
2185
2186 Params params = GetParallaxParams();
2187 if (params.name.empty()) {
2188 return;
2189 }
2190
2191 if (params.scroll_horz) {
2192 AddPositionX(distance);
2193 return;
2194 }
2195
2196 if (Game_Map::LoopHorizontal()) {
2197 return;
2198 }
2199
2200 ResetPositionX();
2201}
2202
2203void Game_Map::Parallax::ScrollDown(int distance) {
2204 if (!distance) {

Callers

nothing calls this directly

Calls 2

GetParallaxParamsFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected