游戏可以运行
This commit is contained in:
@@ -66,7 +66,7 @@ ENEMY_DATA = {
|
||||
"healer": {"hp": 150, "speed": 1.8, "reward": 30, "color": COLOR_PINK, "size": 12, "name": "治疗兵", "heal_range": 100, "heal_amount": 30, "heal_interval": 2.0},
|
||||
}
|
||||
|
||||
# Path waypoints (pixel coordinates)
|
||||
# Path waypoints (pixel coordinates) — default/legacy
|
||||
PATH_WAYPOINTS = [
|
||||
(0, 180),
|
||||
(160, 180),
|
||||
@@ -79,3 +79,75 @@ PATH_WAYPOINTS = [
|
||||
(760, 220),
|
||||
(800, 220),
|
||||
]
|
||||
|
||||
# Level definitions
|
||||
LEVELS = [
|
||||
{
|
||||
"name": "第一关 - 森林小径",
|
||||
"color": (44, 72, 44),
|
||||
"start_gold": 200,
|
||||
"start_lives": 10,
|
||||
"waypoints": [
|
||||
(0, 180), (160, 180), (160, 340), (400, 340),
|
||||
(400, 100), (600, 100), (600, 340), (760, 340),
|
||||
(760, 220), (800, 220),
|
||||
],
|
||||
"waves": [
|
||||
[{"type": "normal", "count": 5, "interval": 1.0}],
|
||||
[{"type": "normal", "count": 6, "interval": 0.8}, {"type": "swarm", "count": 4, "interval": 0.3}],
|
||||
[{"type": "normal", "count": 5, "interval": 0.8}, {"type": "fast", "count": 3, "interval": 0.6}],
|
||||
[{"type": "swarm", "count": 10, "interval": 0.25}, {"type": "normal", "count": 5, "interval": 0.7}],
|
||||
[{"type": "normal", "count": 5, "interval": 0.6}, {"type": "heavy", "count": 2, "interval": 1.5}, {"type": "boss", "count": 1, "interval": 2.0}],
|
||||
[{"type": "normal", "count": 8, "interval": 0.5}, {"type": "fast", "count": 5, "interval": 0.4}, {"type": "swarm", "count": 8, "interval": 0.2}],
|
||||
[{"type": "shield", "count": 3, "interval": 1.2}, {"type": "healer", "count": 2, "interval": 1.5}, {"type": "normal", "count": 6, "interval": 0.6}],
|
||||
[{"type": "heavy", "count": 4, "interval": 0.8}, {"type": "fast", "count": 5, "interval": 0.5}, {"type": "shield", "count": 3, "interval": 1.0}],
|
||||
],
|
||||
},
|
||||
{
|
||||
"name": "第二关 - 沙漠要塞",
|
||||
"color": (82, 77, 50),
|
||||
"start_gold": 180,
|
||||
"start_lives": 8,
|
||||
"waypoints": [
|
||||
(0, 60), (200, 60), (200, 180), (60, 180),
|
||||
(60, 300), (340, 300), (340, 180), (480, 180),
|
||||
(480, 300), (620, 300), (620, 100), (800, 100),
|
||||
],
|
||||
"waves": [
|
||||
[{"type": "normal", "count": 8, "interval": 0.8}],
|
||||
[{"type": "fast", "count": 6, "interval": 0.5}, {"type": "swarm", "count": 6, "interval": 0.25}],
|
||||
[{"type": "normal", "count": 6, "interval": 0.6}, {"type": "heavy", "count": 3, "interval": 1.2}],
|
||||
[{"type": "swarm", "count": 12, "interval": 0.2}, {"type": "shield", "count": 2, "interval": 1.5}],
|
||||
[{"type": "fast", "count": 8, "interval": 0.4}, {"type": "healer", "count": 2, "interval": 1.0}],
|
||||
[{"type": "heavy", "count": 5, "interval": 0.8}, {"type": "normal", "count": 8, "interval": 0.5}],
|
||||
[{"type": "shield", "count": 4, "interval": 1.0}, {"type": "fast", "count": 6, "interval": 0.4}, {"type": "boss", "count": 1, "interval": 2.0}],
|
||||
[{"type": "swarm", "count": 15, "interval": 0.15}, {"type": "heavy", "count": 4, "interval": 0.7}],
|
||||
[{"type": "normal", "count": 10, "interval": 0.4}, {"type": "shield", "count": 4, "interval": 0.8}, {"type": "healer", "count": 3, "interval": 1.0}],
|
||||
[{"type": "heavy", "count": 6, "interval": 0.6}, {"type": "fast", "count": 10, "interval": 0.3}, {"type": "boss", "count": 2, "interval": 2.0}],
|
||||
],
|
||||
},
|
||||
{
|
||||
"name": "第三关 - 暗夜城堡",
|
||||
"color": (35, 30, 45),
|
||||
"start_gold": 150,
|
||||
"start_lives": 8,
|
||||
"waypoints": [
|
||||
(0, 260), (120, 260), (120, 60), (280, 60),
|
||||
(280, 180), (440, 180), (440, 60), (560, 60),
|
||||
(560, 260), (680, 260), (680, 100), (800, 100),
|
||||
],
|
||||
"waves": [
|
||||
[{"type": "normal", "count": 8, "interval": 0.7}, {"type": "fast", "count": 4, "interval": 0.5}],
|
||||
[{"type": "heavy", "count": 4, "interval": 1.0}, {"type": "swarm", "count": 8, "interval": 0.2}],
|
||||
[{"type": "shield", "count": 4, "interval": 1.0}, {"type": "fast", "count": 6, "interval": 0.4}],
|
||||
[{"type": "healer", "count": 3, "interval": 1.0}, {"type": "normal", "count": 10, "interval": 0.5}],
|
||||
[{"type": "swarm", "count": 15, "interval": 0.15}, {"type": "heavy", "count": 5, "interval": 0.8}, {"type": "boss", "count": 1, "interval": 2.0}],
|
||||
[{"type": "shield", "count": 5, "interval": 0.8}, {"type": "healer", "count": 3, "interval": 0.8}, {"type": "fast", "count": 8, "interval": 0.3}],
|
||||
[{"type": "heavy", "count": 6, "interval": 0.6}, {"type": "swarm", "count": 12, "interval": 0.15}],
|
||||
[{"type": "normal", "count": 12, "interval": 0.3}, {"type": "shield", "count": 5, "interval": 0.7}, {"type": "boss", "count": 1, "interval": 2.0}],
|
||||
[{"type": "fast", "count": 12, "interval": 0.25}, {"type": "healer", "count": 4, "interval": 0.7}],
|
||||
[{"type": "heavy", "count": 8, "interval": 0.5}, {"type": "shield", "count": 6, "interval": 0.6}, {"type": "swarm", "count": 15, "interval": 0.12}],
|
||||
[{"type": "normal", "count": 12, "interval": 0.25}, {"type": "heavy", "count": 6, "interval": 0.5}, {"type": "fast", "count": 10, "interval": 0.2}, {"type": "boss", "count": 3, "interval": 2.0}],
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user