feat:update blockly.json

This commit is contained in:
Kylin_on_Mac
2023-11-10 16:08:10 +08:00
parent ca649971ce
commit 5ce4c0c3d9
3 changed files with 16 additions and 14 deletions

View File

@ -136,7 +136,11 @@ class EasyGame(PaiaGame):
to_players_data = {}
foods_data = []
for food in self.foods:
foods_data.append({"x": food.rect.centerx, "y": food.rect.centery, "type": food.type, "score": food.score})
foods_data.append(
{"x": food.rect.centerx, "y": food.rect.centery,
"w":food.rect.width,"h":food.rect.height,
"type": str(food.type), "score": food.score}
)
data_to_1p = {
"frame": self.frame_count,