fix:update level file format

This commit is contained in:
Kylin_on_Mac 2023-10-10 23:13:56 +08:00
parent d7252f60d6
commit a6fcbbe55f
13 changed files with 26 additions and 27 deletions

View File

@ -13,7 +13,7 @@
["scene_info['ball_y']", "y coordinate of ball", "球的 y 座標"],
["scene_info['score']", "score", "目前的分數"],
["scene_info['foods']", "list of foods positions", "點點的位置清單"],
// TODO
["scene_info['score_to_pass']", "the score for next level", "通關分數"],
["scene_info", "dictionary of all information", "包含所有資訊的字典"]
],
"CONSTANT": [
@ -23,9 +23,9 @@
[600, "bottom boundary", "下邊界"],
[30, "ball width", "球身的寬度"],
[30, "ball height", "球身的高度"],
// TODO
[8, "food width", "食物的寬度"],
[8, "food height", "食物的高度"]
[8, "food lv1 size", "等級一食物的寬高度"],
[12, "food lv2 size", "等級二食物的高度"],
[16, "food lv3 size", "等級三食物的高度"]
],
"ACTION": [
["['UP']", "moving up", "向上移動"],

View File

@ -6,5 +6,5 @@
],
"score_to_pass": 10,
"green_food_count": [3,0,0],
"black_food_count": [1,0,0]
"black_food_count": [0,0,0]
}

View File

@ -5,6 +5,6 @@
200
],
"score_to_pass": 15,
"green_food_count": 5,
"black_food_count": 0
"green_food_count": [5,0,0],
"black_food_count": [0,0,0]
}

View File

@ -5,6 +5,6 @@
300
],
"score_to_pass": 15,
"green_food_count": 10,
"black_food_count": 0
"green_food_count": [10,0,0],
"black_food_count": [0,0,0]
}

View File

@ -5,6 +5,6 @@
300
],
"score_to_pass": 15,
"green_food_count": 7,
"black_food_count": 3
"green_food_count": [7,0,0],
"black_food_count": [3,0,0]
}

View File

@ -5,6 +5,6 @@
300
],
"score_to_pass": 15,
"green_food_count": 7,
"black_food_count": 7
"green_food_count": [7,0,0],
"black_food_count": [7,0,0]
}

View File

@ -5,6 +5,6 @@
400
],
"score_to_pass": 15,
"green_food_count": 7,
"black_food_count": 10
"green_food_count": [7,0,0],
"black_food_count": [10,0,0]
}

View File

@ -5,6 +5,6 @@
400
],
"score_to_pass": 20,
"green_food_count": 7,
"black_food_count": 13
"green_food_count": [7,0,0],
"black_food_count": [13,0,0]
}

View File

@ -5,6 +5,6 @@
500
],
"score_to_pass": 20,
"green_food_count": 10,
"black_food_count": 15
"green_food_count": [10,0,0],
"black_food_count": [15,0,0]
}

View File

@ -5,6 +5,6 @@
500
],
"score_to_pass": 25,
"green_food_count": 15,
"black_food_count": 30
"green_food_count": [15,0,0],
"black_food_count": [30,0,0]
}

View File

@ -5,6 +5,6 @@
600
],
"score_to_pass": 25,
"green_food_count": 20,
"black_food_count": 40
"green_food_count": [20,0,0],
"black_food_count": [40,0,0]
}

View File

@ -5,9 +5,7 @@
200
],
"score_to_pass": 10,
"green_food_count": 3,
"black_food_count": 0,
"green_food_list": [3,2,1],
"black_food_list": [5,2,0]
"green_food_count": [3,0,0],
"black_food_count": [0,0,0]
}

View File

@ -149,6 +149,7 @@ class EasyGame(PaiaGame):
"ball_y": self.ball.rect.centery,
"foods": foods_data,
"score": self.score,
"score_to_pass":self._score_to_pass,
"status": self.get_game_status()
}