| 70 | } |
| 71 | |
| 72 | int Game_Character::GetScreenX() const { |
| 73 | int x = GetSpriteX() / TILE_SIZE - Game_Map::GetDisplayX() / TILE_SIZE + TILE_SIZE; |
| 74 | |
| 75 | if (Game_Map::LoopHorizontal()) { |
| 76 | x = Utils::PositiveModulo(x, Game_Map::GetTilesX() * TILE_SIZE); |
| 77 | } |
| 78 | x -= TILE_SIZE / 2; |
| 79 | |
| 80 | return x; |
| 81 | } |
| 82 | |
| 83 | int Game_Character::GetScreenY(bool apply_jump) const { |
| 84 | int y = GetSpriteY() / TILE_SIZE - Game_Map::GetDisplayY() / TILE_SIZE + TILE_SIZE; |
no outgoing calls
no test coverage detected