diff --git a/main.py b/main.py index 529420f..462dcba 100644 --- a/main.py +++ b/main.py @@ -34,22 +34,14 @@ return True if pos_number == 2: - # Pos2 は Pos1 より左(背面の場合は右) - if view_mode == 1: # 正面 - return x < centers[0][0] - else: # 背面 - return x > centers[0][0] + return x < centers[0][0] + if pos_number == 3: - # Pos3 は Pos1,2 より下 return y > centers[0][1] and y > centers[1][1] if pos_number == 4: - # Pos4 は Pos3 より左(背面の場合は右) - if view_mode == 1: # 正面 - return x < centers[2][0] - else: # 背面 - return x > centers[2][0] + return x < centers[2][0] if pos_number == 5: # Pos5 は Pos2 の近くで、より上