ty-zombies 1.0.0__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.
- ty_zombies-1.0.0/LICENSE +21 -0
- ty_zombies-1.0.0/PKG-INFO +187 -0
- ty_zombies-1.0.0/README.md +154 -0
- ty_zombies-1.0.0/pyproject.toml +58 -0
- ty_zombies-1.0.0/setup.cfg +4 -0
- ty_zombies-1.0.0/src/ty_zombies.egg-info/PKG-INFO +187 -0
- ty_zombies-1.0.0/src/ty_zombies.egg-info/SOURCES.txt +21 -0
- ty_zombies-1.0.0/src/ty_zombies.egg-info/dependency_links.txt +1 -0
- ty_zombies-1.0.0/src/ty_zombies.egg-info/entry_points.txt +2 -0
- ty_zombies-1.0.0/src/ty_zombies.egg-info/requires.txt +8 -0
- ty_zombies-1.0.0/src/ty_zombies.egg-info/top_level.txt +1 -0
- ty_zombies-1.0.0/src/tyzombie/__init__.py +4 -0
- ty_zombies-1.0.0/src/tyzombie/__main__.py +7 -0
- ty_zombies-1.0.0/src/tyzombie/app.py +576 -0
- ty_zombies-1.0.0/src/tyzombie/audio.py +152 -0
- ty_zombies-1.0.0/src/tyzombie/cli.py +117 -0
- ty_zombies-1.0.0/src/tyzombie/models.py +652 -0
- ty_zombies-1.0.0/src/tyzombie/save.py +241 -0
- ty_zombies-1.0.0/src/tyzombie/themes.py +155 -0
- ty_zombies-1.0.0/src/tyzombie/ui.py +468 -0
- ty_zombies-1.0.0/tests/test_cli_and_ui.py +133 -0
- ty_zombies-1.0.0/tests/test_models.py +132 -0
- ty_zombies-1.0.0/tests/test_save.py +68 -0
ty_zombies-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 codest0411
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ty-zombies
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: A fast, tactical terminal typing survival game with campaign levels, bosses, mutators, daily challenges, and endless waves.
|
|
5
|
+
Author: codest0411
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/codest0411/ty-zombies
|
|
8
|
+
Project-URL: Repository, https://github.com/codest0411/ty-zombies
|
|
9
|
+
Project-URL: Issues, https://github.com/codest0411/ty-zombies/issues
|
|
10
|
+
Keywords: terminal,game,typing,zombies,curses,cli,arcade
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Environment :: Console :: Curses
|
|
13
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Topic :: Games/Entertainment :: Arcade
|
|
24
|
+
Requires-Python: >=3.8
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Dist: windows-curses>=2.3.0; sys_platform == "win32"
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
30
|
+
Requires-Dist: build>=1.0; extra == "dev"
|
|
31
|
+
Requires-Dist: twine>=4.0; extra == "dev"
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
<div align="center">
|
|
35
|
+
|
|
36
|
+
# ๐ง ty-zombies
|
|
37
|
+
|
|
38
|
+
### The dead are coming. Every one of them is carrying a word.
|
|
39
|
+
|
|
40
|
+
A fast, tactical terminal typing survival game with an 8-level Campaign, Endless Survival, Daily Challenges, Seeded Sandbox with Mutators, Boss fights, Achievements, and zero-dependency cross-platform audio.
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+

|
|
44
|
+

|
|
45
|
+
|
|
46
|
+
<br>
|
|
47
|
+
|
|
48
|
+
<img src="assets/gameplay.png" alt="ty-zombies wide telemetry gameplay" width="760">
|
|
49
|
+
|
|
50
|
+
<sub>Level 6 (The City) in wide telemetry mode: Combo Fever active, Boss incoming, and live WPM/Accuracy gauges.</sub>
|
|
51
|
+
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## โจ Features
|
|
57
|
+
|
|
58
|
+
- ๐ฏ **Lock-On Typing**: No Enter key requiredโtype the first letter of any word to lock onto the closest matching zombie, then finish the word to shoot.
|
|
59
|
+
- ๐ง **7 Zombie Types**: Walkers `[Z]`, fast Runners `[R]`, heavy Brutes `[B]`, Medics `[+]`, Frost `[*]`, Bombers `[X]`, and sentence-carrying Bosses `[BOSS]`.
|
|
60
|
+
- ๐บ๏ธ **4 Game Modes**:
|
|
61
|
+
- **Campaign**: 8 escalating levels with 3-star ratings and unlockable Level Select.
|
|
62
|
+
- **Endless Survival**: Infinite waves with a Boss every 3rd wave.
|
|
63
|
+
- **Daily Challenge**: Deterministic daily seeded run (`--mode daily`) with daily tracking.
|
|
64
|
+
- **Sandbox & Mutators**: Shareable seeds (`--seed`) + 4 toggleable mutators (`Hyper Horde`, `Glass Barricade`, `Dense Mist`, `Pure Typing`).
|
|
65
|
+
- ๐ฅ **Combo Fever**: Maintain a 10x+ combo for a **+25% score multiplier**.
|
|
66
|
+
- ๐ **Persistent Progression**: Top-10 leaderboard, lifetime statistics, 10 unlockable achievements, mid-run auto-save & resume, and shareable ASCII/Markdown run cards (`tyzombie --record`) stored in `~/.tyzombie/data.json` (overridable via `TYZOMBIE_DATA_DIR`).
|
|
67
|
+
- ๐ **Zero-Dependency Cross-Platform Audio**: Non-blocking `winsound.Beep` on Windows and synthesized PCM WAV cues (`afplay`/`paplay`/`aplay`) on macOS/Linux, with instant mute toggle.
|
|
68
|
+
- ๐จ **Responsive Cockpit UI & Accessibility**: Unicode box-drawn dashboard with automatic ASCII fallback, wide 2-column telemetry view (`>= 96` cols), compact `80x24` layout, 4 color themes (`OUTBREAK`, `NEON CYBER`, `AMBER CRT`, `COLORBLIND`), plus `Colorblind Mode`, `Reduced Flash`, and `Large UI` toggles.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## ๐ธ Screenshot Gallery
|
|
73
|
+
|
|
74
|
+
<table>
|
|
75
|
+
<tr>
|
|
76
|
+
<td align="center"><b>Main Menu</b><br><img src="assets/menu.png" alt="Main Menu" width="420"></td>
|
|
77
|
+
<td align="center"><b>Mission Debrief</b><br><img src="assets/debrief.png" alt="Mission Debrief" width="420"></td>
|
|
78
|
+
</tr>
|
|
79
|
+
<tr>
|
|
80
|
+
<td align="center"><b>High Scores & Stats</b><br><img src="assets/scores.png" alt="High Scores" width="420"></td>
|
|
81
|
+
<td align="center"><b>Options & Accessibility</b><br><img src="assets/options.png" alt="Options" width="420"></td>
|
|
82
|
+
</tr>
|
|
83
|
+
</table>
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## ๐ Installation
|
|
88
|
+
|
|
89
|
+
### Using `pipx` (Recommended)
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
pipx install ty-zombies
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Using `pip`
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
pip install ty-zombies
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
> **Windows note**: `windows-curses` is automatically installed on Windows as a platform dependency. If `tyzombie` is not on your `PATH` after installing with `--user`, run `python -m tyzombie setup-shell` to add a PowerShell function or Unix shell alias.
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## ๐น๏ธ Usage & CLI Options
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# Launch the interactive menu
|
|
109
|
+
tyzombie
|
|
110
|
+
|
|
111
|
+
# Or run as a Python module
|
|
112
|
+
python -m tyzombie
|
|
113
|
+
|
|
114
|
+
# Jump directly into a mode
|
|
115
|
+
tyzombie --mode campaign
|
|
116
|
+
tyzombie --mode survival
|
|
117
|
+
tyzombie --mode daily
|
|
118
|
+
tyzombie --mode sandbox --seed 4242
|
|
119
|
+
|
|
120
|
+
# Print your latest / personal-best shareable run card
|
|
121
|
+
tyzombie --record
|
|
122
|
+
|
|
123
|
+
# Configure shell alias / PowerShell profile function
|
|
124
|
+
tyzombie setup-shell
|
|
125
|
+
|
|
126
|
+
# Check version or help
|
|
127
|
+
tyzombie --version
|
|
128
|
+
tyzombie --help
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
> ๐ก Use a terminal window of at least **78 ร 20** (recommended **96 ร 26** for the 2-column telemetry cockpit). If the window is too small, a friendly resize overlay is displayed.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## ๐น Controls
|
|
136
|
+
|
|
137
|
+
| Key | Action |
|
|
138
|
+
|---|---|
|
|
139
|
+
| `a`-`z`, `space` | Lock on and type the zombie's word |
|
|
140
|
+
| `Tab` | Switch target to the next closest zombie |
|
|
141
|
+
| `Backspace` | Drop your current target |
|
|
142
|
+
| `1` | **Freeze**: stops all zombies for 5 seconds |
|
|
143
|
+
| `2` | **Bomb**: destroys the 4 closest non-boss zombies |
|
|
144
|
+
| `3` | **Repair**: restores +2 barricade HP |
|
|
145
|
+
| `/` | **Assist**: locks onto the closest zombie (limited per level) |
|
|
146
|
+
| `Esc` | Pause menu (`M` to mute/unmute, `Q` to save & quit) |
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## ๐ ๏ธ Development & Testing
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
git clone https://github.com/codest0411/ty-zombies.git
|
|
154
|
+
cd ty-zombies
|
|
155
|
+
python -m venv .venv
|
|
156
|
+
# Activate the virtual environment, then:
|
|
157
|
+
pip install -e ".[dev]"
|
|
158
|
+
pytest -v
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Build source and wheel distributions:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
python -m build
|
|
165
|
+
twine check dist/*
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## ๐ง Troubleshooting
|
|
171
|
+
|
|
172
|
+
- **`Terminal too small` message**: Resize your terminal window to at least 78 columns by 20 rows (96ร26 recommended).
|
|
173
|
+
- **No sound on Linux**: Ensure `paplay` (PulseAudio/PipeWire) or `aplay` (ALSA) is available on your `PATH`.
|
|
174
|
+
- **Save data location**: Progress is stored in `~/.tyzombie/data.json`. Set `TYZOMBIE_DATA_DIR=/custom/path` to relocate it.
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
## ๐ License
|
|
179
|
+
|
|
180
|
+
MIT License โ see [LICENSE](LICENSE) for details.
|
|
181
|
+
|
|
182
|
+
<div align='center'>
|
|
183
|
+
Special Thanks for this Guy --> [Yup-25](https://github.com/yup-45)
|
|
184
|
+
|
|
185
|
+
Thanks Buddy !
|
|
186
|
+
|
|
187
|
+
</div>
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# ๐ง ty-zombies
|
|
4
|
+
|
|
5
|
+
### The dead are coming. Every one of them is carrying a word.
|
|
6
|
+
|
|
7
|
+
A fast, tactical terminal typing survival game with an 8-level Campaign, Endless Survival, Daily Challenges, Seeded Sandbox with Mutators, Boss fights, Achievements, and zero-dependency cross-platform audio.
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+

|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
<br>
|
|
14
|
+
|
|
15
|
+
<img src="assets/gameplay.png" alt="ty-zombies wide telemetry gameplay" width="760">
|
|
16
|
+
|
|
17
|
+
<sub>Level 6 (The City) in wide telemetry mode: Combo Fever active, Boss incoming, and live WPM/Accuracy gauges.</sub>
|
|
18
|
+
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## โจ Features
|
|
24
|
+
|
|
25
|
+
- ๐ฏ **Lock-On Typing**: No Enter key requiredโtype the first letter of any word to lock onto the closest matching zombie, then finish the word to shoot.
|
|
26
|
+
- ๐ง **7 Zombie Types**: Walkers `[Z]`, fast Runners `[R]`, heavy Brutes `[B]`, Medics `[+]`, Frost `[*]`, Bombers `[X]`, and sentence-carrying Bosses `[BOSS]`.
|
|
27
|
+
- ๐บ๏ธ **4 Game Modes**:
|
|
28
|
+
- **Campaign**: 8 escalating levels with 3-star ratings and unlockable Level Select.
|
|
29
|
+
- **Endless Survival**: Infinite waves with a Boss every 3rd wave.
|
|
30
|
+
- **Daily Challenge**: Deterministic daily seeded run (`--mode daily`) with daily tracking.
|
|
31
|
+
- **Sandbox & Mutators**: Shareable seeds (`--seed`) + 4 toggleable mutators (`Hyper Horde`, `Glass Barricade`, `Dense Mist`, `Pure Typing`).
|
|
32
|
+
- ๐ฅ **Combo Fever**: Maintain a 10x+ combo for a **+25% score multiplier**.
|
|
33
|
+
- ๐ **Persistent Progression**: Top-10 leaderboard, lifetime statistics, 10 unlockable achievements, mid-run auto-save & resume, and shareable ASCII/Markdown run cards (`tyzombie --record`) stored in `~/.tyzombie/data.json` (overridable via `TYZOMBIE_DATA_DIR`).
|
|
34
|
+
- ๐ **Zero-Dependency Cross-Platform Audio**: Non-blocking `winsound.Beep` on Windows and synthesized PCM WAV cues (`afplay`/`paplay`/`aplay`) on macOS/Linux, with instant mute toggle.
|
|
35
|
+
- ๐จ **Responsive Cockpit UI & Accessibility**: Unicode box-drawn dashboard with automatic ASCII fallback, wide 2-column telemetry view (`>= 96` cols), compact `80x24` layout, 4 color themes (`OUTBREAK`, `NEON CYBER`, `AMBER CRT`, `COLORBLIND`), plus `Colorblind Mode`, `Reduced Flash`, and `Large UI` toggles.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## ๐ธ Screenshot Gallery
|
|
40
|
+
|
|
41
|
+
<table>
|
|
42
|
+
<tr>
|
|
43
|
+
<td align="center"><b>Main Menu</b><br><img src="assets/menu.png" alt="Main Menu" width="420"></td>
|
|
44
|
+
<td align="center"><b>Mission Debrief</b><br><img src="assets/debrief.png" alt="Mission Debrief" width="420"></td>
|
|
45
|
+
</tr>
|
|
46
|
+
<tr>
|
|
47
|
+
<td align="center"><b>High Scores & Stats</b><br><img src="assets/scores.png" alt="High Scores" width="420"></td>
|
|
48
|
+
<td align="center"><b>Options & Accessibility</b><br><img src="assets/options.png" alt="Options" width="420"></td>
|
|
49
|
+
</tr>
|
|
50
|
+
</table>
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## ๐ Installation
|
|
55
|
+
|
|
56
|
+
### Using `pipx` (Recommended)
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
pipx install ty-zombies
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Using `pip`
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
pip install ty-zombies
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
> **Windows note**: `windows-curses` is automatically installed on Windows as a platform dependency. If `tyzombie` is not on your `PATH` after installing with `--user`, run `python -m tyzombie setup-shell` to add a PowerShell function or Unix shell alias.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## ๐น๏ธ Usage & CLI Options
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
# Launch the interactive menu
|
|
76
|
+
tyzombie
|
|
77
|
+
|
|
78
|
+
# Or run as a Python module
|
|
79
|
+
python -m tyzombie
|
|
80
|
+
|
|
81
|
+
# Jump directly into a mode
|
|
82
|
+
tyzombie --mode campaign
|
|
83
|
+
tyzombie --mode survival
|
|
84
|
+
tyzombie --mode daily
|
|
85
|
+
tyzombie --mode sandbox --seed 4242
|
|
86
|
+
|
|
87
|
+
# Print your latest / personal-best shareable run card
|
|
88
|
+
tyzombie --record
|
|
89
|
+
|
|
90
|
+
# Configure shell alias / PowerShell profile function
|
|
91
|
+
tyzombie setup-shell
|
|
92
|
+
|
|
93
|
+
# Check version or help
|
|
94
|
+
tyzombie --version
|
|
95
|
+
tyzombie --help
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
> ๐ก Use a terminal window of at least **78 ร 20** (recommended **96 ร 26** for the 2-column telemetry cockpit). If the window is too small, a friendly resize overlay is displayed.
|
|
99
|
+
|
|
100
|
+
---
|
|
101
|
+
|
|
102
|
+
## ๐น Controls
|
|
103
|
+
|
|
104
|
+
| Key | Action |
|
|
105
|
+
|---|---|
|
|
106
|
+
| `a`-`z`, `space` | Lock on and type the zombie's word |
|
|
107
|
+
| `Tab` | Switch target to the next closest zombie |
|
|
108
|
+
| `Backspace` | Drop your current target |
|
|
109
|
+
| `1` | **Freeze**: stops all zombies for 5 seconds |
|
|
110
|
+
| `2` | **Bomb**: destroys the 4 closest non-boss zombies |
|
|
111
|
+
| `3` | **Repair**: restores +2 barricade HP |
|
|
112
|
+
| `/` | **Assist**: locks onto the closest zombie (limited per level) |
|
|
113
|
+
| `Esc` | Pause menu (`M` to mute/unmute, `Q` to save & quit) |
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## ๐ ๏ธ Development & Testing
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
git clone https://github.com/codest0411/ty-zombies.git
|
|
121
|
+
cd ty-zombies
|
|
122
|
+
python -m venv .venv
|
|
123
|
+
# Activate the virtual environment, then:
|
|
124
|
+
pip install -e ".[dev]"
|
|
125
|
+
pytest -v
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Build source and wheel distributions:
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
python -m build
|
|
132
|
+
twine check dist/*
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## ๐ง Troubleshooting
|
|
138
|
+
|
|
139
|
+
- **`Terminal too small` message**: Resize your terminal window to at least 78 columns by 20 rows (96ร26 recommended).
|
|
140
|
+
- **No sound on Linux**: Ensure `paplay` (PulseAudio/PipeWire) or `aplay` (ALSA) is available on your `PATH`.
|
|
141
|
+
- **Save data location**: Progress is stored in `~/.tyzombie/data.json`. Set `TYZOMBIE_DATA_DIR=/custom/path` to relocate it.
|
|
142
|
+
|
|
143
|
+
---
|
|
144
|
+
|
|
145
|
+
## ๐ License
|
|
146
|
+
|
|
147
|
+
MIT License โ see [LICENSE](LICENSE) for details.
|
|
148
|
+
|
|
149
|
+
<div align='center'>
|
|
150
|
+
Special Thanks for this Guy --> [Yup-25](https://github.com/yup-45)
|
|
151
|
+
|
|
152
|
+
Thanks Buddy !
|
|
153
|
+
|
|
154
|
+
</div>
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "ty-zombies"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "A fast, tactical terminal typing survival game with campaign levels, bosses, mutators, daily challenges, and endless waves."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = {text = "MIT"}
|
|
11
|
+
requires-python = ">=3.8"
|
|
12
|
+
authors = [
|
|
13
|
+
{name = "codest0411"}
|
|
14
|
+
]
|
|
15
|
+
keywords = ["terminal", "game", "typing", "zombies", "curses", "cli", "arcade"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 5 - Production/Stable",
|
|
18
|
+
"Environment :: Console :: Curses",
|
|
19
|
+
"Intended Audience :: End Users/Desktop",
|
|
20
|
+
"License :: OSI Approved :: MIT License",
|
|
21
|
+
"Operating System :: OS Independent",
|
|
22
|
+
"Programming Language :: Python :: 3",
|
|
23
|
+
"Programming Language :: Python :: 3.8",
|
|
24
|
+
"Programming Language :: Python :: 3.9",
|
|
25
|
+
"Programming Language :: Python :: 3.10",
|
|
26
|
+
"Programming Language :: Python :: 3.11",
|
|
27
|
+
"Programming Language :: Python :: 3.12",
|
|
28
|
+
"Programming Language :: Python :: 3.13",
|
|
29
|
+
"Topic :: Games/Entertainment :: Arcade",
|
|
30
|
+
]
|
|
31
|
+
dependencies = [
|
|
32
|
+
"windows-curses>=2.3.0; sys_platform == 'win32'",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[project.optional-dependencies]
|
|
36
|
+
dev = [
|
|
37
|
+
"pytest>=7.0",
|
|
38
|
+
"build>=1.0",
|
|
39
|
+
"twine>=4.0",
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
[project.scripts]
|
|
43
|
+
tyzombie = "tyzombie.cli:main"
|
|
44
|
+
|
|
45
|
+
[project.urls]
|
|
46
|
+
Homepage = "https://github.com/codest0411/ty-zombies"
|
|
47
|
+
Repository = "https://github.com/codest0411/ty-zombies"
|
|
48
|
+
Issues = "https://github.com/codest0411/ty-zombies/issues"
|
|
49
|
+
|
|
50
|
+
[tool.setuptools.packages.find]
|
|
51
|
+
where = ["src"]
|
|
52
|
+
|
|
53
|
+
[tool.pytest.ini_options]
|
|
54
|
+
testpaths = ["tests"]
|
|
55
|
+
pythonpath = ["src"]
|
|
56
|
+
|
|
57
|
+
[tool.pyrefly]
|
|
58
|
+
search-path = ["src"]
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ty-zombies
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: A fast, tactical terminal typing survival game with campaign levels, bosses, mutators, daily challenges, and endless waves.
|
|
5
|
+
Author: codest0411
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/codest0411/ty-zombies
|
|
8
|
+
Project-URL: Repository, https://github.com/codest0411/ty-zombies
|
|
9
|
+
Project-URL: Issues, https://github.com/codest0411/ty-zombies/issues
|
|
10
|
+
Keywords: terminal,game,typing,zombies,curses,cli,arcade
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Environment :: Console :: Curses
|
|
13
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Topic :: Games/Entertainment :: Arcade
|
|
24
|
+
Requires-Python: >=3.8
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
License-File: LICENSE
|
|
27
|
+
Requires-Dist: windows-curses>=2.3.0; sys_platform == "win32"
|
|
28
|
+
Provides-Extra: dev
|
|
29
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
30
|
+
Requires-Dist: build>=1.0; extra == "dev"
|
|
31
|
+
Requires-Dist: twine>=4.0; extra == "dev"
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
<div align="center">
|
|
35
|
+
|
|
36
|
+
# ๐ง ty-zombies
|
|
37
|
+
|
|
38
|
+
### The dead are coming. Every one of them is carrying a word.
|
|
39
|
+
|
|
40
|
+
A fast, tactical terminal typing survival game with an 8-level Campaign, Endless Survival, Daily Challenges, Seeded Sandbox with Mutators, Boss fights, Achievements, and zero-dependency cross-platform audio.
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+

|
|
44
|
+

|
|
45
|
+
|
|
46
|
+
<br>
|
|
47
|
+
|
|
48
|
+
<img src="assets/gameplay.png" alt="ty-zombies wide telemetry gameplay" width="760">
|
|
49
|
+
|
|
50
|
+
<sub>Level 6 (The City) in wide telemetry mode: Combo Fever active, Boss incoming, and live WPM/Accuracy gauges.</sub>
|
|
51
|
+
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
## โจ Features
|
|
57
|
+
|
|
58
|
+
- ๐ฏ **Lock-On Typing**: No Enter key requiredโtype the first letter of any word to lock onto the closest matching zombie, then finish the word to shoot.
|
|
59
|
+
- ๐ง **7 Zombie Types**: Walkers `[Z]`, fast Runners `[R]`, heavy Brutes `[B]`, Medics `[+]`, Frost `[*]`, Bombers `[X]`, and sentence-carrying Bosses `[BOSS]`.
|
|
60
|
+
- ๐บ๏ธ **4 Game Modes**:
|
|
61
|
+
- **Campaign**: 8 escalating levels with 3-star ratings and unlockable Level Select.
|
|
62
|
+
- **Endless Survival**: Infinite waves with a Boss every 3rd wave.
|
|
63
|
+
- **Daily Challenge**: Deterministic daily seeded run (`--mode daily`) with daily tracking.
|
|
64
|
+
- **Sandbox & Mutators**: Shareable seeds (`--seed`) + 4 toggleable mutators (`Hyper Horde`, `Glass Barricade`, `Dense Mist`, `Pure Typing`).
|
|
65
|
+
- ๐ฅ **Combo Fever**: Maintain a 10x+ combo for a **+25% score multiplier**.
|
|
66
|
+
- ๐ **Persistent Progression**: Top-10 leaderboard, lifetime statistics, 10 unlockable achievements, mid-run auto-save & resume, and shareable ASCII/Markdown run cards (`tyzombie --record`) stored in `~/.tyzombie/data.json` (overridable via `TYZOMBIE_DATA_DIR`).
|
|
67
|
+
- ๐ **Zero-Dependency Cross-Platform Audio**: Non-blocking `winsound.Beep` on Windows and synthesized PCM WAV cues (`afplay`/`paplay`/`aplay`) on macOS/Linux, with instant mute toggle.
|
|
68
|
+
- ๐จ **Responsive Cockpit UI & Accessibility**: Unicode box-drawn dashboard with automatic ASCII fallback, wide 2-column telemetry view (`>= 96` cols), compact `80x24` layout, 4 color themes (`OUTBREAK`, `NEON CYBER`, `AMBER CRT`, `COLORBLIND`), plus `Colorblind Mode`, `Reduced Flash`, and `Large UI` toggles.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## ๐ธ Screenshot Gallery
|
|
73
|
+
|
|
74
|
+
<table>
|
|
75
|
+
<tr>
|
|
76
|
+
<td align="center"><b>Main Menu</b><br><img src="assets/menu.png" alt="Main Menu" width="420"></td>
|
|
77
|
+
<td align="center"><b>Mission Debrief</b><br><img src="assets/debrief.png" alt="Mission Debrief" width="420"></td>
|
|
78
|
+
</tr>
|
|
79
|
+
<tr>
|
|
80
|
+
<td align="center"><b>High Scores & Stats</b><br><img src="assets/scores.png" alt="High Scores" width="420"></td>
|
|
81
|
+
<td align="center"><b>Options & Accessibility</b><br><img src="assets/options.png" alt="Options" width="420"></td>
|
|
82
|
+
</tr>
|
|
83
|
+
</table>
|
|
84
|
+
|
|
85
|
+
---
|
|
86
|
+
|
|
87
|
+
## ๐ Installation
|
|
88
|
+
|
|
89
|
+
### Using `pipx` (Recommended)
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
pipx install ty-zombies
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
### Using `pip`
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
pip install ty-zombies
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
> **Windows note**: `windows-curses` is automatically installed on Windows as a platform dependency. If `tyzombie` is not on your `PATH` after installing with `--user`, run `python -m tyzombie setup-shell` to add a PowerShell function or Unix shell alias.
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## ๐น๏ธ Usage & CLI Options
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# Launch the interactive menu
|
|
109
|
+
tyzombie
|
|
110
|
+
|
|
111
|
+
# Or run as a Python module
|
|
112
|
+
python -m tyzombie
|
|
113
|
+
|
|
114
|
+
# Jump directly into a mode
|
|
115
|
+
tyzombie --mode campaign
|
|
116
|
+
tyzombie --mode survival
|
|
117
|
+
tyzombie --mode daily
|
|
118
|
+
tyzombie --mode sandbox --seed 4242
|
|
119
|
+
|
|
120
|
+
# Print your latest / personal-best shareable run card
|
|
121
|
+
tyzombie --record
|
|
122
|
+
|
|
123
|
+
# Configure shell alias / PowerShell profile function
|
|
124
|
+
tyzombie setup-shell
|
|
125
|
+
|
|
126
|
+
# Check version or help
|
|
127
|
+
tyzombie --version
|
|
128
|
+
tyzombie --help
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
> ๐ก Use a terminal window of at least **78 ร 20** (recommended **96 ร 26** for the 2-column telemetry cockpit). If the window is too small, a friendly resize overlay is displayed.
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## ๐น Controls
|
|
136
|
+
|
|
137
|
+
| Key | Action |
|
|
138
|
+
|---|---|
|
|
139
|
+
| `a`-`z`, `space` | Lock on and type the zombie's word |
|
|
140
|
+
| `Tab` | Switch target to the next closest zombie |
|
|
141
|
+
| `Backspace` | Drop your current target |
|
|
142
|
+
| `1` | **Freeze**: stops all zombies for 5 seconds |
|
|
143
|
+
| `2` | **Bomb**: destroys the 4 closest non-boss zombies |
|
|
144
|
+
| `3` | **Repair**: restores +2 barricade HP |
|
|
145
|
+
| `/` | **Assist**: locks onto the closest zombie (limited per level) |
|
|
146
|
+
| `Esc` | Pause menu (`M` to mute/unmute, `Q` to save & quit) |
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## ๐ ๏ธ Development & Testing
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
git clone https://github.com/codest0411/ty-zombies.git
|
|
154
|
+
cd ty-zombies
|
|
155
|
+
python -m venv .venv
|
|
156
|
+
# Activate the virtual environment, then:
|
|
157
|
+
pip install -e ".[dev]"
|
|
158
|
+
pytest -v
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Build source and wheel distributions:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
python -m build
|
|
165
|
+
twine check dist/*
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## ๐ง Troubleshooting
|
|
171
|
+
|
|
172
|
+
- **`Terminal too small` message**: Resize your terminal window to at least 78 columns by 20 rows (96ร26 recommended).
|
|
173
|
+
- **No sound on Linux**: Ensure `paplay` (PulseAudio/PipeWire) or `aplay` (ALSA) is available on your `PATH`.
|
|
174
|
+
- **Save data location**: Progress is stored in `~/.tyzombie/data.json`. Set `TYZOMBIE_DATA_DIR=/custom/path` to relocate it.
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
## ๐ License
|
|
179
|
+
|
|
180
|
+
MIT License โ see [LICENSE](LICENSE) for details.
|
|
181
|
+
|
|
182
|
+
<div align='center'>
|
|
183
|
+
Special Thanks for this Guy --> [Yup-25](https://github.com/yup-45)
|
|
184
|
+
|
|
185
|
+
Thanks Buddy !
|
|
186
|
+
|
|
187
|
+
</div>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
src/ty_zombies.egg-info/PKG-INFO
|
|
5
|
+
src/ty_zombies.egg-info/SOURCES.txt
|
|
6
|
+
src/ty_zombies.egg-info/dependency_links.txt
|
|
7
|
+
src/ty_zombies.egg-info/entry_points.txt
|
|
8
|
+
src/ty_zombies.egg-info/requires.txt
|
|
9
|
+
src/ty_zombies.egg-info/top_level.txt
|
|
10
|
+
src/tyzombie/__init__.py
|
|
11
|
+
src/tyzombie/__main__.py
|
|
12
|
+
src/tyzombie/app.py
|
|
13
|
+
src/tyzombie/audio.py
|
|
14
|
+
src/tyzombie/cli.py
|
|
15
|
+
src/tyzombie/models.py
|
|
16
|
+
src/tyzombie/save.py
|
|
17
|
+
src/tyzombie/themes.py
|
|
18
|
+
src/tyzombie/ui.py
|
|
19
|
+
tests/test_cli_and_ui.py
|
|
20
|
+
tests/test_models.py
|
|
21
|
+
tests/test_save.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tyzombie
|