change Player.move
This commit is contained in:
@@ -41,7 +41,7 @@ class Block:
|
||||
top = real_y - (PLAYER_SIZE + BLOCK_SIZE) / 2
|
||||
bottom = real_y + (PLAYER_SIZE + BLOCK_SIZE) / 2
|
||||
# 判碰撞:
|
||||
return left < player.x < right and top < player.y < bottom
|
||||
return left < player.x < right and top < player.y < bottom and self.collision
|
||||
|
||||
def get_collision_surface(self) -> tuple[int, int, int, int]:
|
||||
# 获得方块表面界限(碰撞面)
|
||||
|
||||
Reference in New Issue
Block a user