当前位置:   article > 正文

植物大战僵尸Python版,附带源码注解_植物大战僵尸源码

植物大战僵尸源码

目录

一、实现功能

二、安装环境要求

三、如何开始游戏

四、怎么玩

五、演示

六、部分源码注释

6.1main.py

6.2map.py

6.3Menubar.py

七、自定义

7.1plant.json

7.2zombie.json

一、实现功能

  • 实施植物:向日葵、豌豆射手、壁桃、雪豆射手、樱桃炸弹、三豌豆射手、大口蘑菇,海扁蘑菇,土豆,尖刺草,惊吓蘑菇,南瓜,惊吓蘑菇,墨西哥辣椒,太阳蘑菇,冰蘑菇,催眠蘑菇。
  • 实现僵尸:僵尸、旗帜僵尸、锥头僵尸、桶头僵尸、报纸僵尸。
  • 使用JSON文件存储关卡数据(例如僵尸的位置和时间,背景信息)
  • 支持在关卡开始时选择植物卡
  • 支持日间关卡、夜间关卡、移动卡选择关卡和壁桃保龄球关卡

二、安装环境要求

  • Python 3.7
  • Notice:建议使用 python 3.7 版本,但不是必需的。对于 LINUX:如果您的 Linux 系统预装了 python 3+,则可以运行此游戏。直接更新到 python 3.7 可能会破坏 LINUX Mint。
  • Python-Pygame 1.9

三、如何开始游戏

python main.py

四、怎么玩

  • 使用鼠标收集阳光,选择植物卡片并播种植物
  • 您可以通过更改 source/constants.py 中的START_LEVEL_NUM值来设置起始级别
    • 级别 1 和 2:天级别
    • 第 3 级:夜间级别
    • 第 4 级:移动卡片选择级别
    • 第5级:墙果保龄球级别

五、演示

六、部分源码注释

项目结构如下:

6.1main.py

  1. import pygame as pg
  2. from source.main import main
  3. if __name__=='__main__':
  4. main()
  5. pg.quit()

6.2map.py

   定义了一个地图类 Map,包含了地图的初始化、位置验证、可移动性检查、位置转换等方法。

  1. __author__ = 'marble_xu'
  2. # 导入必要的模块
  3. import random
  4. import pygame as pg
  5. from .. import tool
  6. from .. import constants as c
  7. # 地图类定义
  8. class Map():
  9. def __init__(self, width, height):
  10. # 初始化地图的宽度和高度
  11. self.width = width
  12. self.height = height
  13. # 创建一个二维数组来表示地图,初始值为0
  14. self.map = [[0 for x in range(self.width)] for y in range(self.height)]
  15. # 检查指定位置是否在地图范围内
  16. def isValid(self, map_x, map_y):
  17. if (map_x < 0 or map_x >= self.width or
  18. map_y < 0 or map_y >= self.height):
  19. return False
  20. return True
  21. # 检查指定位置是否可移动
  22. def isMovable(self, map_x, map_y):
  23. return (self.map[map_y][map_x] == c.MAP_EMPTY)
  24. # 根据实际坐标获取地图索引
  25. def getMapIndex(self, x, y):
  26. x -= c.MAP_OFFSET_X
  27. y -= c.MAP_OFFSET_Y
  28. return (x // c.GRID_X_SIZE, y // c.GRID_Y_SIZE)
  29. # 根据地图索引获取网格的中心位置坐标
  30. def getMapGridPos(self, map_x, map_y):
  31. return (map_x * c.GRID_X_SIZE + c.GRID_X_SIZE//2 + c.MAP_OFFSET_X,
  32. map_y * c.GRID_Y_SIZE + c.GRID_Y_SIZE//5 * 3 + c.MAP_OFFSET_Y)
  33. # 设置指定位置的地图网格类型
  34. def setMapGridType(self, map_x, map_y, type):
  35. self.map[map_y][map_x] = type
  36. # 获取一个随机的地图索引
  37. def getRandomMapIndex(self):
  38. map_x = random.randint(0, self.width-1)
  39. map_y = random.randint(0, self.height-1)
  40. return (map_x, map_y)
  41. # 在指定位置显示植物,返回植物显示的位置
  42. def showPlant(self, x, y):
  43. pos = None
  44. map_x, map_y = self.getMapIndex(x, y)
  45. # 检查位置是否有效且可移动
  46. if self.isValid(map_x, map_y) and self.isMovable(map_x, map_y):
  47. # 获取植物显示的位置
  48. pos = self.getMapGridPos(map_x, map_y)
  49. return pos

6.3Menubar.py

  1. # 导入必要的模块
  2. import random
  3. import pygame as pg
  4. from .. import tool
  5. from .. import constants as c
  6. # 面板初始位置及间距
  7. PANEL_Y_START = 87
  8. PANEL_X_START = 22
  9. PANEL_Y_INTERNAL = 74
  10. PANEL_X_INTERNAL = 53
  11. CARD_LIST_NUM = 8
  12. # 植物卡片名称列表
  13. card_name_list = [c.CARD_SUNFLOWER, c.CARD_PEASHOOTER, c.CARD_SNOWPEASHOOTER, c.CARD_WALLNUT,
  14. c.CARD_CHERRYBOMB, c.CARD_THREEPEASHOOTER, c.CARD_REPEATERPEA, c.CARD_CHOMPER,
  15. c.CARD_PUFFSHROOM, c.CARD_POTATOMINE, c.CARD_SQUASH, c.CARD_SPIKEWEED,
  16. c.CARD_JALAPENO, c.CARD_SCAREDYSHROOM, c.CARD_SUNSHROOM, c.CARD_ICESHROOM,
  17. c.CARD_HYPNOSHROOM, c.CARD_WALLNUT, c.CARD_REDWALLNUT]
  18. # 植物名称列表
  19. plant_name_list = [c.SUNFLOWER, c.PEASHOOTER, c.SNOWPEASHOOTER, c.WALLNUT,
  20. c.CHERRYBOMB, c.THREEPEASHOOTER, c.REPEATERPEA, c.CHOMPER,
  21. c.PUFFSHROOM, c.POTATOMINE, c.SQUASH, c.SPIKEWEED,
  22. c.JALAPENO, c.SCAREDYSHROOM, c.SUNSHROOM, c.ICESHROOM,
  23. c.HYPNOSHROOM, c.WALLNUTBOWLING, c.REDWALLNUTBOWLING]
  24. # 植物所需阳光值列表
  25. plant_sun_list = [50, 100, 175, 50, 150, 325, 200, 150, 0, 25, 50, 100, 125, 25, 25, 75, 75, 0, 0]
  26. # 植物冷冻时间列表
  27. plant_frozen_time_list = [7500, 7500, 7500, 30000, 50000, 7500, 7500, 7500, 7500, 30000,
  28. 30000, 7500, 50000, 7500, 7500, 50000, 30000, 0, 0]
  29. # 所有卡片索引列表
  30. all_card_list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
  31. # 获取阳光值图片
  32. def getSunValueImage(sun_value):
  33. font = pg.font.SysFont(None, 22)
  34. width = 32
  35. msg_image = font.render(str(sun_value), True, c.NAVYBLUE, c.LIGHTYELLOW)
  36. msg_rect = msg_image.get_rect()
  37. msg_w = msg_rect.width
  38. image = pg.Surface([width, 17])
  39. x = width - msg_w
  40. image.fill(c.LIGHTYELLOW)
  41. image.blit(msg_image, (x, 0), (0, 0, msg_rect.w, msg_rect.h))
  42. image.set_colorkey(c.BLACK)
  43. return image
  44. # 获取卡片池
  45. def getCardPool(data):
  46. card_pool = []
  47. for card in data:
  48. tmp = card['name']
  49. for i, name in enumerate(plant_name_list):
  50. if name == tmp:
  51. card_pool.append(i)
  52. break
  53. return card_pool
  54. # 卡片类
  55. class Card():
  56. def __init__(self, x, y, name_index, scale=0.78):
  57. self.loadFrame(card_name_list[name_index], scale)
  58. self.rect = self.orig_image.get_rect()
  59. self.rect.x = x
  60. self.rect.y = y
  61. self.name_index = name_index
  62. self.sun_cost = plant_sun_list[name_index]
  63. self.frozen_time = plant_frozen_time_list[name_index]
  64. self.frozen_timer = -self.frozen_time
  65. self.refresh_timer = 0
  66. self.select = True
  67. # 加载卡片帧
  68. def loadFrame(self, name, scale):
  69. frame = tool.GFX[name]
  70. rect = frame.get_rect()
  71. width, height = rect.w, rect.h
  72. self.orig_image = tool.get_image(frame, 0, 0, width, height, c.BLACK, scale)
  73. self.image = self.orig_image
  74. # 检查鼠标点击位置
  75. def checkMouseClick(self, mouse_pos):
  76. x, y = mouse_pos
  77. if(x >= self.rect.x and x <= self.rect.right and
  78. y >= self.rect.y and y <= self.rect.bottom):
  79. return True
  80. return False
  81. # 检查是否可以点击
  82. def canClick(self, sun_value, current_time):
  83. if self.sun_cost <= sun_value and (current_time - self.frozen_timer) > self.frozen_time:
  84. return True
  85. return False
  86. # 检查是否可选中
  87. def canSelect(self):
  88. return self.select
  89. # 设置是否选中
  90. def setSelect(self, can_select):
  91. self.select = can_select
  92. if can_select:
  93. self.image.set_alpha(255)
  94. else:
  95. self.image.set_alpha(128)
  96. # 设置冷冻时间
  97. def setFrozenTime(self, current_time):
  98. self.frozen_timer = current_time
  99. # 创建卡片图片以显示冷却状态或阳光值不足状态
  100. def createShowImage(self, sun_value, current_time):
  101. time = current_time - self.frozen_timer
  102. if time < self.frozen_time: # 冷却状态
  103. image = pg.Surface([self.rect.w, self.rect.h])
  104. frozen_image = self.orig_image.copy()
  105. frozen_image.set_alpha(128)
  106. frozen_height = (self.frozen_time - time)/self.frozen_time * self.rect.h
  107. image.blit(frozen_image, (0,0), (0, 0, self.rect.w, frozen_height))
  108. image.blit(self.orig_image, (0,frozen_height),
  109. (0, frozen_height, self.rect.w, self.rect.h - frozen_height))
  110. elif self.sun_cost > sun_value: # 阳光值不足状态
  111. image = self.orig_image.copy()
  112. image.set_alpha(192)
  113. else:
  114. image = self.orig_image
  115. return image
  116. # 更新卡片状态
  117. def update(self, sun_value, current_time):
  118. if (current_time - self.refresh_timer) >= 250:
  119. self.image = self.createShowImage(sun_value, current_time)
  120. self.refresh_timer = current_time
  121. # 绘制卡片
  122. def draw(self, surface):
  123. surface.blit(self.image, self.rect)
  124. # 菜单栏类
  125. class MenuBar():
  126. def __init__(self, card_list, sun_value):
  127. self.loadFrame(c.MENUBAR_BACKGROUND)
  128. self.rect = self.image.get_rect()
  129. self.rect.x = 10
  130. self.rect.y = 0
  131. self.sun_value = sun_value
  132. self.card_offset_x = 32
  133. self.setupCards(card_list)
  134. # 加载背景帧
  135. def loadFrame(self, name):
  136. frame = tool.GFX[name]
  137. rect = frame.get_rect()
  138. frame_rect = (rect.x, rect.y, rect.w, rect.h)
  139. self.image = tool.get_image(tool.GFX[name], *frame_rect, c.WHITE, 1)
  140. # 更新菜单栏状态
  141. def update(self, current_time):
  142. self.current_time = current_time
  143. for card in self.card_list:
  144. card.update(self.sun_value, self.current_time)
  145. # 创建图片
  146. def createImage(self, x, y, num):
  147. if num == 1:
  148. return
  149. img = self.image
  150. rect = self.image.get_rect()
  151. width = rect.w
  152. height = rect.h
  153. self.image = pg.Surface((width * num, height)).convert()
  154. self.rect = self.image.get_rect()
  155. self.rect.x = x
  156. self.rect.y = y
  157. for i in range(num):
  158. x = i * width
  159. self.image.blit(img, (x,0))
  160. self.image.set_colorkey(c.BLACK)
  161. # 设置卡片
  162. def setupCards(self, card_list):
  163. self.card_list = []
  164. x = self.card_offset_x
  165. y = 8
  166. for index in card_list:
  167. x += 55
  168. self.card_list.append(Card(x, y, index))
  169. # 检查卡片点击
  170. def checkCardClick(self, mouse_pos):
  171. result = None
  172. for card in self.card_list:
  173. if card.checkMouseClick(mouse_pos):
  174. if card.canClick(self.sun_value, self.current_time):
  175. result = (plant_name_list[card.name_index], card)
  176. break
  177. return result
  178. # 检查菜单栏点击
  179. def checkMenuBarClick(self, mouse_pos):
  180. x, y = mouse_pos
  181. if(x >= self.rect.x and x <= self.rect.right and
  182. y >= self.rect.y and y <= self.rect.bottom):
  183. return True
  184. return False
  185. # 减少阳光值
  186. def decreaseSunValue(self, value):
  187. self.sun_value -= value
  188. # 增加阳光值
  189. def increaseSunValue(self, value):
  190. self.sun_value += value
  191. # 设置卡片冷冻时间
  192. def setCardFrozenTime(self, plant_name):
  193. for card in self.card_list:
  194. if plant_name_list[card.name_index] == plant_name:
  195. card.setFrozenTime(self.current_time)
  196. break
  197. # 绘制阳光值
  198. def drawSunValue(self):
  199. self.value_image = getSunValueImage(self.sun_value)
  200. self.value_rect = self.value_image.get_rect()
  201. self.value_rect.x = 21
  202. self.value_rect.y = self.rect.bottom - 21
  203. self.image.blit(self.value_image, self.value_rect)
  204. # 绘制菜单栏
  205. def draw(self, surface):
  206. self.drawSunValue()
  207. surface.blit(self.image, self.rect)
  208. for card in self.card_list:
  209. card.draw(surface)
  210. # 面板类
  211. class Panel():
  212. def __init__(self, card_list, sun_value):
  213. self.loadImages(sun_value)
  214. self.selected_cards = []
  215. self.selected_num = 0
  216. self.setupCards(card_list)
  217. # 加载图片
  218. def loadFrame(self, name):
  219. frame = tool.GFX[name]
  220. rect = frame.get_rect()
  221. frame_rect = (rect.x, rect.y, rect.w, rect.h)
  222. return tool.get_image(tool.GFX[name], *frame_rect, c.WHITE, 1)
  223. # 加载图片及设置
  224. def loadImages(self, sun_value):
  225. self.menu_image = self.loadFrame(c.MENUBAR_BACKGROUND)
  226. self.menu_rect = self.menu_image.get_rect()
  227. self.menu_rect.x = 0
  228. self.menu_rect.y = 0
  229. self.panel_image = self.loadFrame(c.PANEL_BACKGROUND)
  230. self.panel_rect = self.panel_image.get_rect()
  231. self.panel_rect.x = 0
  232. self.panel_rect.y = PANEL_Y_START
  233. self.value_image = getSunValueImage(sun_value)
  234. self.value_rect = self.value_image.get_rect()
  235. self.value_rect.x = 21
  236. self.value_rect.y = self.menu_rect.bottom - 21
  237. self.button_image = self.loadFrame(c.START_BUTTON)
  238. self.button_rect = self.button_image.get_rect()
  239. self.button_rect.x = 155
  240. self.button_rect.y = 547
  241. # 设置卡片
  242. def setupCards(self, card_list):
  243. self.card_list = []
  244. x = PANEL_X_START - PANEL_X_INTERNAL
  245. y = PANEL_Y_START + 43 - PANEL_Y_INTERNAL
  246. for i, index in enumerate(card_list):
  247. if i % 8 == 0:
  248. x = PANEL_X_START - PANEL_X_INTERNAL
  249. y += PANEL_Y_INTERNAL
  250. x += PANEL_X_INTERNAL
  251. self.card_list.append(Card(x, y, index, 0.75))
  252. # 检查卡片点击
  253. def checkCardClick(self, mouse_pos):
  254. delete_card = None
  255. for card in self.selected_cards:
  256. if delete_card: # 当删除卡片时,将右边的卡片左移
  257. card.rect.x -= 55
  258. elif card.checkMouseClick(mouse_pos):
  259. self.deleteCard(card.name_index)
  260. delete_card = card
  261. if delete_card:
  262. self.selected_cards.remove(delete_card)
  263. self.selected_num -= 1
  264. if self.selected_num == CARD_LIST_NUM:
  265. return
  266. for card in self.card_list:
  267. if card.checkMouseClick(mouse_pos):
  268. if card.canSelect():
  269. self.addCard(card)
  270. break
  271. # 添加卡片
  272. def addCard(self, card):
  273. card.setSelect(False)
  274. y = 8
  275. x = 78 + self.selected_num * 55
  276. self.selected_cards.append(Card(x, y, card.name_index))
  277. self.selected_num += 1
  278. # 删除卡片
  279. def deleteCard(self, index):
  280. self.card_list[index].setSelect(True)
  281. # 检查开始按钮点击
  282. def checkStartButtonClick(self, mouse_pos):
  283. if self.selected_num < CARD_LIST_NUM:
  284. return False
  285. x, y = mouse_pos
  286. if (x >= self.button_rect.x and x <= self.button_rect.right and
  287. y >= self.button_rect.y and y <= self.button_rect.bottom):
  288. return True
  289. return False
  290. # 获取选中卡片
  291. def getSelectedCards(self):
  292. card_index_list = []
  293. for card in self.selected_cards:
  294. card_index_list.append(card.name_index)
  295. return card_index_list
  296. # 绘制面板
  297. def draw(self, surface):
  298. self.menu_image.blit(self.value_image, self.value_rect)
  299. surface.blit(self.menu_image, self.menu_rect)
  300. surface.blit(self.panel_image, self.panel_rect)
  301. for card in self.card_list:
  302. card.draw(surface)
  303. for card in self.selected_cards:
  304. card.draw(surface)
  305. if self.selected_num == CARD_LIST_NUM:
  306. surface.blit(self.button_image, self.button_rect)
  307. # 移动卡片类
  308. class MoveCard():
  309. def __init__(self, x, y, card_name, plant_name, scale=0.78):
  310. self.loadFrame(card_name, scale)
  311. self.rect = self.orig_image.get_rect()
  312. self.rect.x = x
  313. self.rect.y = y
  314. self.rect.w = 1
  315. self.image = self.createShowImage()
  316. self.card_name = card_name
  317. self.plant_name = plant_name
  318. self.move_timer = 0
  319. self.select = True
  320. # 加载帧
  321. def loadFrame(self, name, scale):
  322. frame = tool.GFX[name]
  323. rect = frame.get_rect()
  324. width, height = rect.w, rect.h
  325. self.orig_image = tool.get_image(frame, 0, 0, width, height, c.BLACK, scale)
  326. self.orig_rect = self.orig_image.get_rect()
  327. self.image = self.orig_image
  328. # 检查鼠标点击位置
  329. def checkMouseClick(self, mouse_pos):
  330. x, y = mouse_pos
  331. if(x >= self.rect.x and x <= self.rect.right and
  332. y >= self.rect.y and y <= self.rect.bottom):
  333. return True
  334. return False
  335. # 创建图片
  336. def createShowImage(self):
  337. '''create a part card image when card appears from left'''
  338. if self.rect.w < self.orig_rect.w: #create a part card image
  339. image = pg.Surface([self.rect.w, self.rect.h])
  340. image.blit(self.orig_image, (0, 0), (0, 0, self.rect.w, self.rect.h))
  341. self.rect.w += 1
  342. else:
  343. image = self.orig_image
  344. return image
  345. # 更新卡片位置
  346. def update(self, left_x, current_time):
  347. if self.move_timer == 0:
  348. self.move_timer = current_time
  349. elif (current_time - self.move_timer) >= c.CARD_MOVE_TIME:
  350. if self.rect.x > left_x:
  351. self.rect.x -= 1
  352. self.image = self.createShowImage()
  353. self.move_timer += c.CARD_MOVE_TIME
  354. # 绘制卡片
  355. def draw(self, surface):
  356. surface.blit(self.image, self.rect)
  357. # 移动菜单栏类
  358. class MoveBar():
  359. def __init__(self, card_pool):
  360. self.loadFrame(c.MOVEBAR_BACKGROUND)
  361. self.rect = self.image.get_rect()
  362. self.rect.x = 90
  363. self.rect.y = 0
  364. self.card_start_x = self.rect.x + 8
  365. self.card_end_x = self.rect.right - 5
  366. self.card_pool = card_pool
  367. self.card_list = []
  368. self.create_timer = -c.MOVEBAR_CARD_FRESH_TIME
  369. # 加载背景帧
  370. def loadFrame(self, name):
  371. frame = tool.GFX[name]
  372. rect = frame.get_rect()
  373. frame_rect = (rect.x, rect.y, rect.w, rect.h)
  374. self.image = tool.get_image(tool.GFX[name], *frame_rect, c.WHITE, 1)
  375. # 创建卡片
  376. def createCard(self):
  377. if len(self.card_list) > 0 and self.card_list[-1].rect.right > self.card_end_x:
  378. return False
  379. x = self.card_end_x
  380. y = 6
  381. index = random.randint(0, len(self.card_pool) - 1)
  382. card_index = self.card_pool[index]
  383. card_name = card_name_list[card_index] + '_move'
  384. plant_name = plant_name_list[card_index]
  385. self.card_list.append(MoveCard(x, y, card_name, plant_name))
  386. return True
  387. # 更新状态
  388. def update(self, current_time):
  389. self.current_time = current_time
  390. left_x = self.card_start_x
  391. for card in self.card_list:
  392. card.update(left_x, self.current_time)
  393. left_x = card.rect.right + 1
  394. if(self.current_time - self.create_timer) > c.MOVEBAR_CARD_FRESH_TIME:
  395. if self.createCard():
  396. self.create_timer = self.current_time
  397. # 检查卡片点击
  398. def checkCardClick(self, mouse_pos):
  399. result = None
  400. for index, card in enumerate(self.card_list):
  401. if card.checkMouseClick(mouse_pos):
  402. result = (card.plant_name, card)
  403. break
  404. return result
  405. # 检查菜单栏点击
  406. def checkMenuBarClick(self, mouse_pos):
  407. x, y = mouse_pos
  408. if(x >= self.rect.x and x <= self.rect.right and
  409. y >= self.rect.y and y <= self.rect.bottom):
  410. return True
  411. return False
  412. # 删除卡片
  413. def deleateCard(self, card):
  414. self.card_list.remove(card)
  415. # 绘制
  416. def draw(self, surface):
  417. surface.blit(self.image, self.rect)
  418. for card in self.card_list:
  419. card.draw(surface)

七、自定义

在PythonPlantsVsZombies-master\source\data,我们可以进行自定义配置,例如僵尸的位置和时间,背景信息。

7.1plant.json

  1. {
  2. "plant_image_rect":{
  3. "PeaNormal":{"x":28, "y":0, "width":28, "height":34},
  4. "PeaIce":{"x":26, "y":0, "width":30, "height":34},
  5. "Chomper":{"x":0, "y":0, "width":100, "height":114},
  6. "PuffShroom":{"x":0, "y":28, "width":35, "height":38},
  7. "PuffShroomSleep":{"x":1, "y":0, "width":39, "height":65},
  8. "BulletMushRoom":{"x":0, "y":1, "width":55, "height":21},
  9. "PotatoMine":{"x":0, "y":0, "width":75, "height":55},
  10. "Squash":{"x":10, "y":140, "width":80, "height":86},
  11. "SquashAim":{"x":10, "y":140, "width":80, "height":86},
  12. "Spikeweed":{"x":3, "y":0, "width":80, "height":35}
  13. }
  14. }

7.2zombie.json

  1. {
  2. "zombie_image_rect":{
  3. "Zombie":{"x":62, "width":90},
  4. "ZombieAttack":{"x":62, "width":90},
  5. "ZombieLostHead":{"x":62, "width":90},
  6. "ZombieLostHeadAttack":{"x":62, "width":90},
  7. "ZombieDie":{"x":0, "width":164},
  8. "BoomDie":{"x":68, "width":80},
  9. "ConeheadZombie":{"x":80, "width":80},
  10. "ConeheadZombieAttack":{"x":79, "width":87},
  11. "BucketheadZombie":{"x":54, "width":90},
  12. "BucketheadZombieAttack":{"x":46, "width":90},
  13. "FlagZombie":{"x":56, "width":110},
  14. "FlagZombieAttack":{"x":60, "width":100},
  15. "FlagZombieLostHead":{"x":55, "width":110},
  16. "FlagZombieLostHeadAttack":{"x":55, "width":110},
  17. "NewspaperZombie":{"x":48, "width":92},
  18. "NewspaperZombieAttack":{"x":48, "width":92},
  19. "NewspaperZombieNoPaper":{"x":40, "width":98},
  20. "NewspaperZombieNoPaperAttack":{"x":48, "width":92},
  21. "NewspaperZombieLostHead":{"x":44, "width":96},
  22. "NewspaperZombieLostHeadAttack":{"x":48, "width":92},
  23. "NewspaperZombieDie":{"x":0, "width":100}
  24. }
  25. }

参考:

https://blog.csdn.net/m0_68089732/article/details/137202714
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/687504
推荐阅读
相关标签
  

闽ICP备14008679号