zombie-escape 1.13.1__py3-none-any.whl → 1.14.4__py3-none-any.whl

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.
Files changed (41) hide show
  1. zombie_escape/__about__.py +1 -1
  2. zombie_escape/colors.py +7 -21
  3. zombie_escape/entities.py +100 -191
  4. zombie_escape/export_images.py +39 -33
  5. zombie_escape/gameplay/ambient.py +2 -6
  6. zombie_escape/gameplay/footprints.py +8 -11
  7. zombie_escape/gameplay/interactions.py +17 -58
  8. zombie_escape/gameplay/layout.py +20 -46
  9. zombie_escape/gameplay/movement.py +7 -21
  10. zombie_escape/gameplay/spawn.py +12 -40
  11. zombie_escape/gameplay/state.py +1 -0
  12. zombie_escape/gameplay/survivors.py +5 -16
  13. zombie_escape/gameplay/utils.py +4 -13
  14. zombie_escape/input_utils.py +8 -31
  15. zombie_escape/level_blueprints.py +112 -69
  16. zombie_escape/level_constants.py +8 -0
  17. zombie_escape/locales/ui.en.json +12 -0
  18. zombie_escape/locales/ui.ja.json +12 -0
  19. zombie_escape/localization.py +3 -11
  20. zombie_escape/models.py +26 -9
  21. zombie_escape/render/__init__.py +30 -0
  22. zombie_escape/render/core.py +992 -0
  23. zombie_escape/render/hud.py +444 -0
  24. zombie_escape/render/overview.py +218 -0
  25. zombie_escape/render/shadows.py +343 -0
  26. zombie_escape/render_assets.py +11 -33
  27. zombie_escape/rng.py +4 -8
  28. zombie_escape/screens/__init__.py +14 -30
  29. zombie_escape/screens/game_over.py +43 -15
  30. zombie_escape/screens/gameplay.py +41 -104
  31. zombie_escape/screens/settings.py +19 -104
  32. zombie_escape/screens/title.py +36 -176
  33. zombie_escape/stage_constants.py +192 -67
  34. zombie_escape/zombie_escape.py +1 -1
  35. {zombie_escape-1.13.1.dist-info → zombie_escape-1.14.4.dist-info}/METADATA +100 -39
  36. zombie_escape-1.14.4.dist-info/RECORD +53 -0
  37. zombie_escape/render.py +0 -1746
  38. zombie_escape-1.13.1.dist-info/RECORD +0 -49
  39. {zombie_escape-1.13.1.dist-info → zombie_escape-1.14.4.dist-info}/WHEEL +0 -0
  40. {zombie_escape-1.13.1.dist-info → zombie_escape-1.14.4.dist-info}/entry_points.txt +0 -0
  41. {zombie_escape-1.13.1.dist-info → zombie_escape-1.14.4.dist-info}/licenses/LICENSE.txt +0 -0
@@ -1,4 +1,4 @@
1
1
  # SPDX-FileCopyrightText: 2025-present Toshihiro Kamiya <kamiya@mbj.nifty.com>
2
2
  #
3
3
  # SPDX-License-Identifier: MIT
4
- __version__ = "1.13.1"
4
+ __version__ = "1.14.4"
zombie_escape/colors.py CHANGED
@@ -142,42 +142,28 @@ def get_environment_palette(key: str | None) -> EnvironmentPalette:
142
142
 
143
143
  if not key:
144
144
  return ENVIRONMENT_PALETTES[DEFAULT_AMBIENT_PALETTE_KEY]
145
- return ENVIRONMENT_PALETTES.get(
146
- key, ENVIRONMENT_PALETTES[DEFAULT_AMBIENT_PALETTE_KEY]
147
- )
145
+ return ENVIRONMENT_PALETTES.get(key, ENVIRONMENT_PALETTES[DEFAULT_AMBIENT_PALETTE_KEY])
148
146
 
149
147
 
150
148
  def ambient_palette_key_for_flashlights(count: int) -> str:
151
149
  """Return the palette key for the provided flashlight inventory count."""
152
150
 
153
- return (
154
- DEFAULT_AMBIENT_PALETTE_KEY if max(0, count) > 0 else NO_FLASHLIGHT_PALETTE_KEY
155
- )
151
+ return DEFAULT_AMBIENT_PALETTE_KEY if max(0, count) > 0 else NO_FLASHLIGHT_PALETTE_KEY
156
152
 
157
153
 
158
154
  # World colors (default palette versions preserved for backwards compatibility).
159
155
  INTERNAL_WALL_COLOR: tuple[int, int, int] = _DEFAULT_ENVIRONMENT_PALETTE.inner_wall
160
- INTERNAL_WALL_BORDER_COLOR: tuple[int, int, int] = (
161
- _DEFAULT_ENVIRONMENT_PALETTE.inner_wall_border
162
- )
156
+ INTERNAL_WALL_BORDER_COLOR: tuple[int, int, int] = _DEFAULT_ENVIRONMENT_PALETTE.inner_wall_border
163
157
  OUTER_WALL_COLOR: tuple[int, int, int] = _DEFAULT_ENVIRONMENT_PALETTE.outer_wall
164
- OUTER_WALL_BORDER_COLOR: tuple[int, int, int] = (
165
- _DEFAULT_ENVIRONMENT_PALETTE.outer_wall_border
166
- )
158
+ OUTER_WALL_BORDER_COLOR: tuple[int, int, int] = _DEFAULT_ENVIRONMENT_PALETTE.outer_wall_border
167
159
  FLOOR_COLOR_PRIMARY: tuple[int, int, int] = _DEFAULT_ENVIRONMENT_PALETTE.floor_primary
168
- FLOOR_COLOR_SECONDARY: tuple[int, int, int] = (
169
- _DEFAULT_ENVIRONMENT_PALETTE.floor_secondary
170
- )
160
+ FLOOR_COLOR_SECONDARY: tuple[int, int, int] = _DEFAULT_ENVIRONMENT_PALETTE.floor_secondary
171
161
  FLOOR_COLOR_OUTSIDE: tuple[int, int, int] = _DEFAULT_ENVIRONMENT_PALETTE.outside
172
162
  FOOTPRINT_COLOR: tuple[int, int, int] = (110, 200, 255)
173
163
  STEEL_BEAM_COLOR: tuple[int, int, int] = (110, 50, 50)
174
164
  STEEL_BEAM_LINE_COLOR: tuple[int, int, int] = (180, 90, 90)
175
- FALL_ZONE_FLOOR_PRIMARY: tuple[int, int, int] = (
176
- _DEFAULT_ENVIRONMENT_PALETTE.fall_zone_primary
177
- )
178
- FALL_ZONE_FLOOR_SECONDARY: tuple[int, int, int] = (
179
- _DEFAULT_ENVIRONMENT_PALETTE.fall_zone_secondary
180
- )
165
+ FALL_ZONE_FLOOR_PRIMARY: tuple[int, int, int] = _DEFAULT_ENVIRONMENT_PALETTE.fall_zone_primary
166
+ FALL_ZONE_FLOOR_SECONDARY: tuple[int, int, int] = _DEFAULT_ENVIRONMENT_PALETTE.fall_zone_secondary
181
167
 
182
168
 
183
169
  __all__ = [