tilemap-parser 3.1.3__tar.gz → 3.1.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/PKG-INFO +1 -1
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/pyproject.toml +1 -1
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/runtime/map_loader.py +1 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/runtime/renderer.py +5 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser.egg-info/PKG-INFO +1 -1
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/LICENSE +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/README.md +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/setup.cfg +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/__init__.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/parser/__init__.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/parser/animation.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/parser/collision.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/parser/collision_loader.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/parser/map_parse.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/runtime/__init__.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/runtime/animation_player.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/runtime/collision_cache.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/runtime/object_collision.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/runtime/tile_collision.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/utils/__init__.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/utils/geometry.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser.egg-info/SOURCES.txt +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser.egg-info/dependency_links.txt +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser.egg-info/requires.txt +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser.egg-info/top_level.txt +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/tests/test_collision.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/tests/test_geometry.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/tests/test_map_loader.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/tests/test_object_collision.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/tests/test_render_scale.py +0 -0
- {tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/tests/test_tile_collision.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tilemap-parser
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.4
|
|
4
4
|
Summary: Standalone parser/loader for tilemap-editor JSON maps, sprite animations, and collision detection runtime.
|
|
5
5
|
Author: tilemap parser contributors
|
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "tilemap-parser"
|
|
7
|
-
version = "3.1.
|
|
7
|
+
version = "3.1.4"
|
|
8
8
|
description = "Standalone parser/loader for tilemap-editor JSON maps, sprite animations, and collision detection runtime."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
@@ -34,6 +34,11 @@ class TileLayerRenderer:
|
|
|
34
34
|
raise ValueError(f"render_scale must be positive, got {self._rs}")
|
|
35
35
|
self._eff_w = int(self._tile_w * self._rs)
|
|
36
36
|
self._eff_h = int(self._tile_h * self._rs)
|
|
37
|
+
if self._eff_w <= 0 or self._eff_h <= 0:
|
|
38
|
+
raise ValueError(
|
|
39
|
+
f"effective tile size ({self._eff_w}, {self._eff_h}) must be positive; "
|
|
40
|
+
f"got tile_size=({self._tile_w}, {self._tile_h}) render_scale={self._rs}"
|
|
41
|
+
)
|
|
37
42
|
|
|
38
43
|
def get_layer_dict(self) -> Dict[int, object]:
|
|
39
44
|
return dict(self.tile_layers)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tilemap-parser
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.4
|
|
4
4
|
Summary: Standalone parser/loader for tilemap-editor JSON maps, sprite animations, and collision detection runtime.
|
|
5
5
|
Author: tilemap parser contributors
|
|
6
6
|
License: GNU GENERAL PUBLIC LICENSE
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/runtime/animation_player.py
RENAMED
|
File without changes
|
|
File without changes
|
{tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser/runtime/object_collision.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tilemap_parser-3.1.3 → tilemap_parser-3.1.4}/src/tilemap_parser.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|