zombie-escape 1.12.3__tar.gz → 1.13.1__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.
Files changed (49) hide show
  1. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/PKG-INFO +40 -15
  2. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/README.md +39 -14
  3. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/__about__.py +1 -1
  4. zombie_escape-1.13.1/src/zombie_escape/__main__.py +7 -0
  5. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/entities.py +554 -132
  6. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/entities_constants.py +29 -12
  7. zombie_escape-1.13.1/src/zombie_escape/export_images.py +296 -0
  8. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/gameplay/__init__.py +2 -1
  9. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/gameplay/constants.py +6 -0
  10. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/gameplay/layout.py +85 -20
  11. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/gameplay/movement.py +62 -4
  12. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/gameplay/spawn.py +47 -40
  13. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/gameplay/state.py +3 -0
  14. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/gameplay/survivors.py +4 -1
  15. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/level_blueprints.py +169 -15
  16. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/locales/ui.en.json +12 -2
  17. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/locales/ui.ja.json +12 -2
  18. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/models.py +9 -3
  19. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/render.py +98 -21
  20. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/render_assets.py +94 -0
  21. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/render_constants.py +16 -0
  22. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/screens/game_over.py +11 -0
  23. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/screens/gameplay.py +68 -14
  24. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/screens/title.py +18 -7
  25. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/stage_constants.py +46 -10
  26. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/zombie_escape.py +23 -0
  27. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/.gitignore +0 -0
  28. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/LICENSE.txt +0 -0
  29. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/pyproject.toml +0 -0
  30. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/__init__.py +0 -0
  31. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/assets/fonts/Silkscreen-Regular.ttf +0 -0
  32. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/assets/fonts/misaki_gothic.ttf +0 -0
  33. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/colors.py +0 -0
  34. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/config.py +0 -0
  35. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/font_utils.py +0 -0
  36. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/gameplay/ambient.py +0 -0
  37. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/gameplay/footprints.py +0 -0
  38. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/gameplay/interactions.py +0 -0
  39. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/gameplay/utils.py +0 -0
  40. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/gameplay_constants.py +0 -0
  41. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/input_utils.py +0 -0
  42. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/level_constants.py +0 -0
  43. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/localization.py +0 -0
  44. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/progress.py +0 -0
  45. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/rng.py +0 -0
  46. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/screen_constants.py +0 -0
  47. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/screens/__init__.py +0 -0
  48. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/screens/settings.py +0 -0
  49. {zombie_escape-1.12.3 → zombie_escape-1.13.1}/src/zombie_escape/world_grid.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zombie-escape
3
- Version: 1.12.3
3
+ Version: 1.13.1
4
4
  Summary: Top-down zombie survival game built with pygame.
5
5
  Project-URL: Homepage, https://github.com/tos-kamiya/zombie-escape
6
6
  Author-email: Toshihiro Kamiya <kamiya@mbj.nifty.com>
@@ -57,7 +57,8 @@ This game is a simple 2D top-down action game where the player aims to escape by
57
57
  - **Pause:** `P`/Start or `ESC`/Select
58
58
  - **Quit Game:** `ESC`/Select (from pause)
59
59
  - **Restart:** `R` key (on Game Over/Clear screen)
60
- - **Window/Fullscreen (title/settings only):** `[` to shrink, `]` to enlarge, `F` to toggle fullscreen
60
+ - **Window/Fullscreen:** `[` to shrink, `]` to enlarge, `F` to toggle fullscreen
61
+ - **FPS Overlay:** Launch with `--show-fps` (implied by `--debug`)
61
62
  - **Time Acceleration:** Hold either `Shift` key or `R1` to run the entire world 4x faster; release to return to normal speed.
62
63
 
63
64
  ## Title Screen
@@ -72,6 +73,9 @@ At the title screen you can pick a stage:
72
73
  - **Stage 4: Evacuate Survivors** — start fueled, find the car, gather nearby civilians, and escape before zombies reach them. Stage 4 sprinkles extra parked cars across the map; slamming into one while already driving fully repairs your current ride and adds five more safe seats.
73
74
  - **Stage 5: Survive Until Dawn** — every car is bone-dry. Endure until the sun rises while the horde presses in from every direction. Once dawn hits, outdoor zombies carbonize and you must walk out through an existing exterior gap to win; cars remain unusable.
74
75
 
76
+ Stages 6+ unlock after clearing Stages 1–5. On the title screen, use left/right to select later stages.
77
+ Open the Stage 6+ description: [docs/stages-6plus.md](docs/stages-6plus.md)
78
+
75
79
  **Stage names are red until cleared** and turn white after at least one clear.
76
80
 
77
81
  An objective reminder is shown at the top-left during play.
@@ -93,31 +97,52 @@ Open **Settings** from the title to toggle gameplay assists:
93
97
 
94
98
  ### Characters/Items
95
99
 
96
- - **Player:** A blue circle with small hands. Controlled with the WASD or arrow keys. When carrying fuel a tiny yellow square appears near the sprite so you can immediately see whether you're ready to drive.
97
- - **Zombie:** A red circle. Will chase the player (or car) once detected.
98
- - When out of sight, the zombie's movement mode will randomly switch every certain time (moving horizontally/vertically only, side-to-side movement, random movement, etc.).
99
- - Variants with different behavior have been observed.
100
- - **Car:** A yellow rectangle. The player can enter by making contact with it.
100
+ #### Characters
101
+
102
+ | Name | Image | Notes |
103
+ | --- | --- | --- |
104
+ | Player | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/player.png" width="64"> | Blue circle with small hands. |
105
+ | Zombie (Normal) | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/zombie-normal.png" width="64"> | Chases the player once detected. |
106
+ | Car | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/car.png" width="64"> | Driveable escape vehicle with durability. |
107
+ | Buddy (Stage 3) | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/buddy.png" width="64"> | A green survivor you can rescue. |
108
+ | Survivors (Stage 4) | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/survivor.png" width="64"> | Civilians to evacuate by car. |
109
+
110
+ - **Player:** Controlled with the WASD or arrow keys. When carrying fuel a tiny yellow square appears near the sprite so you can immediately see whether you're ready to drive.
111
+ - **Zombie:** When out of sight, the zombie's movement mode will randomly switch every certain time (moving horizontally/vertically only, side-to-side movement, random movement, etc.).
112
+ - **Car:**
101
113
  - The car has durability. Durability decreases when colliding with internal walls or hitting zombies.
102
114
  - If durability reaches 0, the car is destroyed and you are dumped on foot; you must track down another parked car hidden in the level.
103
115
  - When you're already driving, ramming a parked car instantly restores your current car's health. On Stage 4 this also increases the safe passenger limit by five.
104
116
  - After roughly 5 minutes of play, a small triangle near the player points toward the objective: fuel first (Stage 2 before pickup), car after fuel is collected (Stage 2/3), or car directly (Stage 1/4).
105
- - **Walls:** Outer walls are gray; inner walls are beige.
106
- - **Outer Walls:** Walls surrounding the stage that are nearly indestructible. Each side has at least three openings (exits).
107
- - **Inner Walls:** Beige walls randomly placed inside the building. Inner wall segments each have durability. **The player can break these walls** by repeatedly colliding with a segment to reduce its durability; when it reaches 0, the segment is destroyed and disappears. Zombies can also wear down walls, but far more slowly. The car cannot break walls.
108
- - **Flashlight:** Each pickup expands your visible radius by about 20% (grab two to reach the max boost).
109
- - **Steel Beam (optional):** A square post with crossed diagonals; same collision as inner walls but with triple durability. Spawns independently of inner walls (may overlap them). If an inner wall covers a beam, the beam appears once the wall is destroyed.
110
- - **Fuel Can (Stages 2 & 3):** A yellow jerrycan that only spawns on the fuel-run stages. Pick it up before driving the car; once collected the on-player indicator appears until you refuel the car.
111
- - **Buddy (Stage 3):** A green circle survivor with small hands and a blue outline who spawns somewhere in the building and waits.
117
+ - **Buddy (Stage 3):**
112
118
  - Zombies only choose to pursue the buddy if they are on-screen; otherwise they ignore them.
113
119
  - If a zombie tags the buddy off-screen, the buddy quietly respawns somewhere else instead of ending the run.
114
120
  - Touch the buddy on foot to make them follow you (at 70% of player speed). Touch them while driving to pick them up.
115
121
  - If you bash an inner wall or steel beam, the buddy will drift toward that spot and help chip away at it.
116
- - **Survivors (Stage 4):** Pale gray civilians with a blue outline, scattered indoors.
122
+ - **Survivors (Stage 4):**
117
123
  - They stand still until you get close, then shuffle toward you at about one-third of player speed.
118
124
  - Zombies can convert them if both are on-screen; the survivor shouts a line and turns instantly.
119
125
  - They only board the car; your safe capacity starts at five but grows by five each time you sideswipe a parked car while already driving. Speed loss is based on how full the car is relative to that capacity, so extra slots mean quicker getaways.
120
126
 
127
+ #### Items
128
+
129
+ | Name | Image | Notes |
130
+ | --- | --- | --- |
131
+ | Flashlight | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/flashlight.png" width="64"> | Each pickup expands your visible radius by about 20% (grab two to reach the max boost). |
132
+ | Fuel Can (Stages 2 & 3) | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/fuel.png" width="64"> | Must be collected before driving the car in fuel-run stages. |
133
+ | Steel Beam (optional) | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/steel-beam.png" width="64"> | Same collision as inner walls but with triple durability. |
134
+
135
+ #### Environment
136
+
137
+ | Name | Image | Notes |
138
+ | --- | --- | --- |
139
+ | Outer Wall | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/wall-outer.png" width="64"> | Nearly indestructible; each side has exits. |
140
+ | Inner Wall | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/wall-inner.png" width="64"> | Breakable by the player; zombies chip away slowly. |
141
+
142
+ - **Walls:** Outer walls are gray; inner walls are beige.
143
+ - **Outer Walls:** Walls surrounding the stage that are nearly indestructible. Each side has at least three openings (exits).
144
+ - **Inner Walls:** Beige walls randomly placed inside the building. Inner wall segments each have durability. **The player can break these walls** by repeatedly colliding with a segment to reduce its durability; when it reaches 0, the segment is destroyed and disappears. Zombies can also wear down walls, but far more slowly. The car cannot break walls.
145
+
121
146
  ### Win/Lose Conditions
122
147
 
123
148
  - **Win Condition:** Escape the stage (level) boundaries while inside the car.
@@ -28,7 +28,8 @@ This game is a simple 2D top-down action game where the player aims to escape by
28
28
  - **Pause:** `P`/Start or `ESC`/Select
29
29
  - **Quit Game:** `ESC`/Select (from pause)
30
30
  - **Restart:** `R` key (on Game Over/Clear screen)
31
- - **Window/Fullscreen (title/settings only):** `[` to shrink, `]` to enlarge, `F` to toggle fullscreen
31
+ - **Window/Fullscreen:** `[` to shrink, `]` to enlarge, `F` to toggle fullscreen
32
+ - **FPS Overlay:** Launch with `--show-fps` (implied by `--debug`)
32
33
  - **Time Acceleration:** Hold either `Shift` key or `R1` to run the entire world 4x faster; release to return to normal speed.
33
34
 
34
35
  ## Title Screen
@@ -43,6 +44,9 @@ At the title screen you can pick a stage:
43
44
  - **Stage 4: Evacuate Survivors** — start fueled, find the car, gather nearby civilians, and escape before zombies reach them. Stage 4 sprinkles extra parked cars across the map; slamming into one while already driving fully repairs your current ride and adds five more safe seats.
44
45
  - **Stage 5: Survive Until Dawn** — every car is bone-dry. Endure until the sun rises while the horde presses in from every direction. Once dawn hits, outdoor zombies carbonize and you must walk out through an existing exterior gap to win; cars remain unusable.
45
46
 
47
+ Stages 6+ unlock after clearing Stages 1–5. On the title screen, use left/right to select later stages.
48
+ Open the Stage 6+ description: [docs/stages-6plus.md](docs/stages-6plus.md)
49
+
46
50
  **Stage names are red until cleared** and turn white after at least one clear.
47
51
 
48
52
  An objective reminder is shown at the top-left during play.
@@ -64,31 +68,52 @@ Open **Settings** from the title to toggle gameplay assists:
64
68
 
65
69
  ### Characters/Items
66
70
 
67
- - **Player:** A blue circle with small hands. Controlled with the WASD or arrow keys. When carrying fuel a tiny yellow square appears near the sprite so you can immediately see whether you're ready to drive.
68
- - **Zombie:** A red circle. Will chase the player (or car) once detected.
69
- - When out of sight, the zombie's movement mode will randomly switch every certain time (moving horizontally/vertically only, side-to-side movement, random movement, etc.).
70
- - Variants with different behavior have been observed.
71
- - **Car:** A yellow rectangle. The player can enter by making contact with it.
71
+ #### Characters
72
+
73
+ | Name | Image | Notes |
74
+ | --- | --- | --- |
75
+ | Player | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/player.png" width="64"> | Blue circle with small hands. |
76
+ | Zombie (Normal) | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/zombie-normal.png" width="64"> | Chases the player once detected. |
77
+ | Car | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/car.png" width="64"> | Driveable escape vehicle with durability. |
78
+ | Buddy (Stage 3) | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/buddy.png" width="64"> | A green survivor you can rescue. |
79
+ | Survivors (Stage 4) | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/survivor.png" width="64"> | Civilians to evacuate by car. |
80
+
81
+ - **Player:** Controlled with the WASD or arrow keys. When carrying fuel a tiny yellow square appears near the sprite so you can immediately see whether you're ready to drive.
82
+ - **Zombie:** When out of sight, the zombie's movement mode will randomly switch every certain time (moving horizontally/vertically only, side-to-side movement, random movement, etc.).
83
+ - **Car:**
72
84
  - The car has durability. Durability decreases when colliding with internal walls or hitting zombies.
73
85
  - If durability reaches 0, the car is destroyed and you are dumped on foot; you must track down another parked car hidden in the level.
74
86
  - When you're already driving, ramming a parked car instantly restores your current car's health. On Stage 4 this also increases the safe passenger limit by five.
75
87
  - After roughly 5 minutes of play, a small triangle near the player points toward the objective: fuel first (Stage 2 before pickup), car after fuel is collected (Stage 2/3), or car directly (Stage 1/4).
76
- - **Walls:** Outer walls are gray; inner walls are beige.
77
- - **Outer Walls:** Walls surrounding the stage that are nearly indestructible. Each side has at least three openings (exits).
78
- - **Inner Walls:** Beige walls randomly placed inside the building. Inner wall segments each have durability. **The player can break these walls** by repeatedly colliding with a segment to reduce its durability; when it reaches 0, the segment is destroyed and disappears. Zombies can also wear down walls, but far more slowly. The car cannot break walls.
79
- - **Flashlight:** Each pickup expands your visible radius by about 20% (grab two to reach the max boost).
80
- - **Steel Beam (optional):** A square post with crossed diagonals; same collision as inner walls but with triple durability. Spawns independently of inner walls (may overlap them). If an inner wall covers a beam, the beam appears once the wall is destroyed.
81
- - **Fuel Can (Stages 2 & 3):** A yellow jerrycan that only spawns on the fuel-run stages. Pick it up before driving the car; once collected the on-player indicator appears until you refuel the car.
82
- - **Buddy (Stage 3):** A green circle survivor with small hands and a blue outline who spawns somewhere in the building and waits.
88
+ - **Buddy (Stage 3):**
83
89
  - Zombies only choose to pursue the buddy if they are on-screen; otherwise they ignore them.
84
90
  - If a zombie tags the buddy off-screen, the buddy quietly respawns somewhere else instead of ending the run.
85
91
  - Touch the buddy on foot to make them follow you (at 70% of player speed). Touch them while driving to pick them up.
86
92
  - If you bash an inner wall or steel beam, the buddy will drift toward that spot and help chip away at it.
87
- - **Survivors (Stage 4):** Pale gray civilians with a blue outline, scattered indoors.
93
+ - **Survivors (Stage 4):**
88
94
  - They stand still until you get close, then shuffle toward you at about one-third of player speed.
89
95
  - Zombies can convert them if both are on-screen; the survivor shouts a line and turns instantly.
90
96
  - They only board the car; your safe capacity starts at five but grows by five each time you sideswipe a parked car while already driving. Speed loss is based on how full the car is relative to that capacity, so extra slots mean quicker getaways.
91
97
 
98
+ #### Items
99
+
100
+ | Name | Image | Notes |
101
+ | --- | --- | --- |
102
+ | Flashlight | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/flashlight.png" width="64"> | Each pickup expands your visible radius by about 20% (grab two to reach the max boost). |
103
+ | Fuel Can (Stages 2 & 3) | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/fuel.png" width="64"> | Must be collected before driving the car in fuel-run stages. |
104
+ | Steel Beam (optional) | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/steel-beam.png" width="64"> | Same collision as inner walls but with triple durability. |
105
+
106
+ #### Environment
107
+
108
+ | Name | Image | Notes |
109
+ | --- | --- | --- |
110
+ | Outer Wall | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/wall-outer.png" width="64"> | Nearly indestructible; each side has exits. |
111
+ | Inner Wall | <img src="https://raw.githubusercontent.com/tos-kamiya/zombie-escape/main/imgs/exports/wall-inner.png" width="64"> | Breakable by the player; zombies chip away slowly. |
112
+
113
+ - **Walls:** Outer walls are gray; inner walls are beige.
114
+ - **Outer Walls:** Walls surrounding the stage that are nearly indestructible. Each side has at least three openings (exits).
115
+ - **Inner Walls:** Beige walls randomly placed inside the building. Inner wall segments each have durability. **The player can break these walls** by repeatedly colliding with a segment to reduce its durability; when it reaches 0, the segment is destroyed and disappears. Zombies can also wear down walls, but far more slowly. The car cannot break walls.
116
+
92
117
  ### Win/Lose Conditions
93
118
 
94
119
  - **Win Condition:** Escape the stage (level) boundaries while inside the car.
@@ -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.12.3"
4
+ __version__ = "1.13.1"
@@ -0,0 +1,7 @@
1
+ from __future__ import annotations
2
+
3
+ from .zombie_escape import main
4
+
5
+
6
+ if __name__ == "__main__":
7
+ main()