new 2P image

add README.md
This commit is contained in:
yanshaoting
2024-02-02 13:33:23 +08:00
parent e1c7db77ca
commit 697b5f3ff6
5 changed files with 55 additions and 20 deletions

View File

@ -55,7 +55,7 @@ MUSIC_PATH = path.join(path.dirname(__file__), "..", "asset", "music")
BG_PATH = path.join(ASSET_IMAGE_DIR, "background.png")
SQUID_PATH = path.join(ASSET_IMAGE_DIR, "squid.png")
SQUID2_PATH = path.join(ASSET_IMAGE_DIR, "squid2_02.png")
SQUID2_PATH = path.join(ASSET_IMAGE_DIR, "squid2.png")
IMG_ID_FOOD01_L = "food_01_L"
IMG_ID_FOOD02_L = "food_02_L"

View File

@ -186,6 +186,7 @@ class SwimmingSquid(PaiaGame):
data_to_1p = {
"frame": self.frame_count,
"collision_mode": self._collision_mode,
"self_x": self.squid1.rect.centerx,
"self_y": self.squid1.rect.centery,
"self_w": self.squid1.rect.width,
@ -204,6 +205,7 @@ class SwimmingSquid(PaiaGame):
data_to_2p = {
"frame": self.frame_count,
"collision_mode": self._collision_mode,
"self_x": self.squid2.rect.centerx,
"self_y": self.squid2.rect.centery,
"self_w": self.squid2.rect.width,