feat: update levels
This commit is contained in:
11
src/game.py
11
src/game.py
@ -75,7 +75,7 @@ class EasyGame(PaiaGame):
|
||||
|
||||
self._score_to_pass = game_params.score_to_pass
|
||||
self._frame_limit = game_params.time_to_play
|
||||
self.playground.center = (WIDTH / 2, HEIGHT / 2)
|
||||
self.playground.center = ((WIDTH-200) / 2, HEIGHT / 2)
|
||||
|
||||
# init game
|
||||
self.ball = Squid()
|
||||
@ -220,9 +220,9 @@ class EasyGame(PaiaGame):
|
||||
create_asset_init_data("garbage03", FOOD_LV3_SIZE,FOOD_LV3_SIZE, GARBAGE03_PATH, GARBAGE03_URL),
|
||||
],
|
||||
"background": [
|
||||
create_image_view_data(
|
||||
'bg', self.playground.x, self.playground.y,
|
||||
self.playground.w, self.playground.h)
|
||||
# create_image_view_data(
|
||||
# 'bg', self.playground.x, self.playground.y,
|
||||
# self.playground.w, self.playground.h)
|
||||
]
|
||||
# "audios": {}
|
||||
}
|
||||
@ -243,6 +243,9 @@ class EasyGame(PaiaGame):
|
||||
# create_rect_view_data(
|
||||
# "playground", self.playground.x, self.playground.y,
|
||||
# self.playground.w, self.playground.h, PG_COLOR)
|
||||
create_image_view_data(
|
||||
'bg', self.playground.x, self.playground.y,
|
||||
self.playground.w, self.playground.h)
|
||||
]
|
||||
foregrounds = [
|
||||
|
||||
|
@ -38,7 +38,7 @@ class Squid(pygame.sprite.Sprite):
|
||||
self.origin_image = pygame.Surface([SQUID_W, SQUID_H])
|
||||
self.image = self.origin_image
|
||||
self.rect = self.image.get_rect()
|
||||
self.rect.center = (400, 300)
|
||||
self.rect.center = (350, 300)
|
||||
self._score = 0
|
||||
self._vel = SQUID_VEL
|
||||
self._lv = 1
|
||||
|
Reference in New Issue
Block a user