merge
This commit is contained in:
commit
452adedecd
|
@ -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 時,遊戲將增加碰撞機制。
|
||||||
|
|
Binary file not shown.
|
@ -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": [
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue