ed-game 3.2.0__tar.gz → 3.2.2__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.
- {ed_game-3.2.0/src/ed_game.egg-info → ed_game-3.2.2}/PKG-INFO +3 -5
- {ed_game-3.2.0 → ed_game-3.2.2}/README.md +2 -4
- {ed_game-3.2.0 → ed_game-3.2.2}/edgame_core.cpp +3 -2
- {ed_game-3.2.0 → ed_game-3.2.2}/pyproject.toml +2 -2
- {ed_game-3.2.0 → ed_game-3.2.2}/src/ed_game/__init__.py +1 -1
- {ed_game-3.2.0 → ed_game-3.2.2}/src/ed_game/game_1.py +1 -1
- {ed_game-3.2.0 → ed_game-3.2.2}/src/ed_game/game_2.py +3 -5
- {ed_game-3.2.0 → ed_game-3.2.2/src/ed_game.egg-info}/PKG-INFO +3 -5
- {ed_game-3.2.0 → ed_game-3.2.2}/src/ed_game.egg-info/SOURCES.txt +1 -0
- {ed_game-3.2.0 → ed_game-3.2.2}/LICENSE +0 -0
- {ed_game-3.2.0 → ed_game-3.2.2}/MANIFEST.in +0 -0
- {ed_game-3.2.0 → ed_game-3.2.2}/setup.cfg +0 -0
- {ed_game-3.2.0 → ed_game-3.2.2}/src/ed_game.egg-info/dependency_links.txt +0 -0
- {ed_game-3.2.0 → ed_game-3.2.2}/src/ed_game.egg-info/requires.txt +0 -0
- {ed_game-3.2.0 → ed_game-3.2.2}/src/ed_game.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ed-game
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.2
|
|
4
4
|
Summary: Earth Defense Game
|
|
5
5
|
Author-email: qq-name <your@email.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -20,6 +20,8 @@ License-File: LICENSE
|
|
|
20
20
|
Requires-Dist: pygame-ce>=2.5.3
|
|
21
21
|
Dynamic: license-file
|
|
22
22
|
|
|
23
|
+
**WARNING: Version 3.2.2 is the final release of the 3.x series. 3.x is now End-of-Life (EOL). Please upgrade to 5.x for future updates.**
|
|
24
|
+
|
|
23
25
|
Installing:
|
|
24
26
|
|
|
25
27
|
pip install ed-game
|
|
@@ -47,7 +49,3 @@ You must have **G++** (MinGW on Windows) and **VS Code** (or any C++ compiler en
|
|
|
47
49
|
Earth Defense Game - A cross-platform shooter.
|
|
48
50
|
- **Windows**: Uses a high-performance **C++ extension** for precise, ultra-slow enemy movement and fast collision detection.
|
|
49
51
|
- **Other platforms ( macOS / Linux / Android )**: Runs a 100% Pure Python fallback.
|
|
50
|
-
|
|
51
|
-
### 🆕 What's New in 3.2.0
|
|
52
|
-
- **Boss Counterattack**: The Boss now fires deadly red projectiles at you.
|
|
53
|
-
- **Combat Polish**: Smoother bullet logic and fixed edge-case bugs for the Nuke button.
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
**WARNING: Version 3.2.2 is the final release of the 3.x series. 3.x is now End-of-Life (EOL). Please upgrade to 5.x for future updates.**
|
|
2
|
+
|
|
1
3
|
Installing:
|
|
2
4
|
|
|
3
5
|
pip install ed-game
|
|
@@ -25,7 +27,3 @@ You must have **G++** (MinGW on Windows) and **VS Code** (or any C++ compiler en
|
|
|
25
27
|
Earth Defense Game - A cross-platform shooter.
|
|
26
28
|
- **Windows**: Uses a high-performance **C++ extension** for precise, ultra-slow enemy movement and fast collision detection.
|
|
27
29
|
- **Other platforms ( macOS / Linux / Android )**: Runs a 100% Pure Python fallback.
|
|
28
|
-
|
|
29
|
-
### 🆕 What's New in 3.2.0
|
|
30
|
-
- **Boss Counterattack**: The Boss now fires deadly red projectiles at you.
|
|
31
|
-
- **Combat Polish**: Smoother bullet logic and fixed edge-case bugs for the Nuke button.
|
|
@@ -63,13 +63,14 @@ EXPORT void update_all() {
|
|
|
63
63
|
if (g_boss_fire_cooldown > 0) {
|
|
64
64
|
g_boss_fire_cooldown--;
|
|
65
65
|
} else {
|
|
66
|
+
bool any_boss_fired = false;
|
|
66
67
|
for (auto& e : g_enemies) {
|
|
67
68
|
if (e.is_boss) {
|
|
68
69
|
g_bullets.push_back({e.x, e.y + e.radius, 0.0f, 5.0f, 8, 1});
|
|
69
|
-
|
|
70
|
-
break;
|
|
70
|
+
any_boss_fired = true;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
+
if (any_boss_fired) g_boss_fire_cooldown = 180;
|
|
73
74
|
}
|
|
74
75
|
}
|
|
75
76
|
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ed-game"
|
|
7
|
-
version = "3.2.
|
|
7
|
+
version = "3.2.2"
|
|
8
8
|
description = "Earth Defense Game"
|
|
9
9
|
authors = [{name = "qq-name", email = "your@email.com"}]
|
|
10
10
|
readme = "README.md"
|
|
@@ -31,4 +31,4 @@ ed_game = ["*.dll"]
|
|
|
31
31
|
where = ["src"]
|
|
32
32
|
|
|
33
33
|
[project.urls]
|
|
34
|
-
"Homepage" = "https://pypi.org/project/ed-game/"
|
|
34
|
+
"Homepage" = "https://pypi.org/project/ed-game/"
|
|
@@ -29,7 +29,7 @@ BASE_SPAWN_DELAY = 48
|
|
|
29
29
|
STAR_COUNT = 220
|
|
30
30
|
BOSS_SIZE_MULTIPLIER = 4
|
|
31
31
|
BOSS_SPAWN_INTERVAL = 20 * 1000
|
|
32
|
-
NUKE_COOLDOWN =
|
|
32
|
+
NUKE_COOLDOWN = 7.2 * 1000
|
|
33
33
|
|
|
34
34
|
def generate_sound(frequency, duration, volume=0.5, type='square'):
|
|
35
35
|
sample_rate = 22050
|
|
@@ -200,7 +200,7 @@ class StarGuardian:
|
|
|
200
200
|
self.last_boss_spawn_time = current_time
|
|
201
201
|
self.spawn_enemy(is_boss=True)
|
|
202
202
|
self.status_message = "👑 Giant Overlord Arrives! 👑"
|
|
203
|
-
self.status_msg_timer =
|
|
203
|
+
self.status_msg_timer = 180
|
|
204
204
|
|
|
205
205
|
for b in self.bullets[:]:
|
|
206
206
|
b['y'] += b['speed_y']
|
|
@@ -245,15 +245,13 @@ class StarGuardian:
|
|
|
245
245
|
self.invincible = INVINCIBLE_DURATION
|
|
246
246
|
self.add_explosion(self.player_x, self.player_y)
|
|
247
247
|
self.enemies.remove(e)
|
|
248
|
-
# BOSS 开火
|
|
249
248
|
if getattr(self, 'boss_fire_timer', 0) > 0:
|
|
250
249
|
self.boss_fire_timer -= 1
|
|
251
250
|
else:
|
|
252
251
|
for e in self.enemies:
|
|
253
252
|
if e.get('is_boss'):
|
|
254
253
|
self.enemy_bullets.append({'x': e['x'], 'y': e['y'] + e['radius'], 'speed_y': 5.0, 'radius': 8})
|
|
255
|
-
self.boss_fire_timer =
|
|
256
|
-
break
|
|
254
|
+
self.boss_fire_timer = 180
|
|
257
255
|
|
|
258
256
|
|
|
259
257
|
for eb in self.enemy_bullets[:]:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ed-game
|
|
3
|
-
Version: 3.2.
|
|
3
|
+
Version: 3.2.2
|
|
4
4
|
Summary: Earth Defense Game
|
|
5
5
|
Author-email: qq-name <your@email.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -20,6 +20,8 @@ License-File: LICENSE
|
|
|
20
20
|
Requires-Dist: pygame-ce>=2.5.3
|
|
21
21
|
Dynamic: license-file
|
|
22
22
|
|
|
23
|
+
**WARNING: Version 3.2.2 is the final release of the 3.x series. 3.x is now End-of-Life (EOL). Please upgrade to 5.x for future updates.**
|
|
24
|
+
|
|
23
25
|
Installing:
|
|
24
26
|
|
|
25
27
|
pip install ed-game
|
|
@@ -47,7 +49,3 @@ You must have **G++** (MinGW on Windows) and **VS Code** (or any C++ compiler en
|
|
|
47
49
|
Earth Defense Game - A cross-platform shooter.
|
|
48
50
|
- **Windows**: Uses a high-performance **C++ extension** for precise, ultra-slow enemy movement and fast collision detection.
|
|
49
51
|
- **Other platforms ( macOS / Linux / Android )**: Runs a 100% Pure Python fallback.
|
|
50
|
-
|
|
51
|
-
### 🆕 What's New in 3.2.0
|
|
52
|
-
- **Boss Counterattack**: The Boss now fires deadly red projectiles at you.
|
|
53
|
-
- **Combat Polish**: Smoother bullet logic and fixed edge-case bugs for the Nuke button.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|