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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ed-game
3
- Version: 3.2.0
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
- g_boss_fire_cooldown = 60;
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.0"
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/"
@@ -58,5 +58,5 @@ def run(speed_multiplier=1.0):
58
58
  del _check
59
59
  del is_windows
60
60
 
61
- __version__ = "3.2.0"
61
+ __version__ = "3.2.2"
62
62
  __all__ = ["run", "FPS"]
@@ -31,7 +31,7 @@ BASE_SPAWN_DELAY = 48
31
31
  STAR_COUNT = 220
32
32
  BOSS_SIZE_MULTIPLIER = 4
33
33
  BOSS_SPAWN_INTERVAL = 20 * 1000
34
- NUKE_COOLDOWN = 120 * 1000
34
+ NUKE_COOLDOWN = 7.2 * 1000
35
35
 
36
36
  lib = None
37
37
 
@@ -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 = 120 * 1000
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 = 120
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 = 60
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.0
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.
@@ -3,6 +3,7 @@ MANIFEST.in
3
3
  README.md
4
4
  edgame_core.cpp
5
5
  pyproject.toml
6
+ setup.cfg
6
7
  src/ed_game/__init__.py
7
8
  src/ed_game/game_1.py
8
9
  src/ed_game/game_2.py
File without changes
File without changes
File without changes