Isometric Map (incomplete)
- arcade.isometric.isometric_grid_to_screen(tile_x: int, tile_y: int, width: int, height: int, tile_width: int, tile_height: int) tuple[int, int] [source]
Convert isometric grid coordinates to screen coordinates.
- Parameters:
tile_x – The x coordinate of the tile in the isometric grid.
tile_y – The y coordinate of the tile in the isometric grid.
width – The width of the screen.
height – The height of the screen.
tile_width – The width of a tile in pixels.
tile_height – The height of a tile in pixels.
- arcade.isometric.screen_to_isometric_grid(screen_x: int, screen_y: int, width: int, height: int, tile_width: int, tile_height: int) tuple[int, int] [source]
Convert screen coordinates to isometric grid coordinates.
- Parameters:
screen_x – The x coordinate on the screen.
screen_y – The y coordinate on the screen.
width – The width of the screen.
height – The height of the screen.
tile_width – The width of a tile in pixels.
tile_height – The height of a tile in pixels.
- arcade.isometric.create_isometric_grid_lines(width: int, height: int, tile_width: int, tile_height: int, color: tuple[int, int, int, int], line_width: int) ShapeElementList [source]
Create a ShapeElementList of isometric grid lines.
- Parameters:
width – The width of the grid in tiles.
height – The height of the grid in tiles.
tile_width – The width of a tile in pixels.
tile_height – The height of a tile in pixels.
color – The color of the lines.
line_width – The width of the lines.