ScreenX / ScreenY convert a world cell to screen (no bob applied).
(worldX, zoom int)
| 73 | |
| 74 | // ScreenX / ScreenY convert a world cell to screen (no bob applied). |
| 75 | func ScreenX(worldX, zoom int) int { |
| 76 | return int(float32(worldX)*zoomScale(zoom) + 0.5) |
| 77 | } |
| 78 | |
| 79 | func ScreenY(worldY, zoom int) int { return ScreenX(worldY, zoom) } |
| 80 |
no test coverage detected