This commit is contained in:
yanshaoting 2024-03-14 11:16:14 +08:00
commit 452adedecd
4 changed files with 4 additions and 2 deletions

View File

@ -64,6 +64,7 @@ game = SwimmingSquid(
| GARBAGE_1 | 30 | -1 | | GARBAGE_1 | 30 | -1 |
| GARBAGE_3 | 40 | -4 | | GARBAGE_3 | 40 | -4 |
| GARBAGE_3 | 50 | -10 | | GARBAGE_3 | 50 | -10 |
3. 食物數量會隨遊戲時間增加
2. 玩家相撞: 2. 玩家相撞:
1. 當地圖長寬皆大於 500 pixels 時,遊戲將增加碰撞機制。 1. 當地圖長寬皆大於 500 pixels 時,遊戲將增加碰撞機制。

BIN
asset/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -1,6 +1,7 @@
{ {
"game_name": "swimming-squid", "game_name": "swimming-squid",
"version": " 1.0.5",
"version": " 1.0.7",
"url": "https://github.com/PAIA-Playful-AI-Arena/swimming-squid-battle", "url": "https://github.com/PAIA-Playful-AI-Arena/swimming-squid-battle",
"description": "這是一個魷魚吃東西小遊戲,你需要找到正確的食物、避開海中的垃圾,還要提防敵人的攻擊!(當然你也可以主動攻擊他人)", "description": "這是一個魷魚吃東西小遊戲,你需要找到正確的食物、避開海中的垃圾,還要提防敵人的攻擊!(當然你也可以主動攻擊他人)",
"logo": [ "logo": [

View File

@ -129,7 +129,7 @@ class SwimmingSquid(PaiaGame):
revise_ball(self.squid1, self.playground) revise_ball(self.squid1, self.playground)
revise_ball(self.squid2, self.playground) revise_ball(self.squid2, self.playground)
# create new food # create new food
if self.frame_count - self._new_food_frame > 300: if self.frame_count - self._new_food_frame > 150:
for i in range(6): for i in range(6):
if self._foods_max_num[i] > self._foods_num[i]: if self._foods_max_num[i] > self._foods_num[i]:
self._foods_num[i] += 1 self._foods_num[i] += 1