|
@@ -388,9 +388,8 @@ class Main: |
|
|
|
|
|
|
|
|
screen.blit (bg_grass, (0, 0)) |
|
|
screen.blit (bg_grass, (0, 0)) |
|
|
|
|
|
|
|
|
@classmethod |
|
|
|
|
|
|
|
|
@staticmethod |
|
|
def get_jojoko ( |
|
|
def get_jojoko ( |
|
|
cls, |
|
|
|
|
|
jojoko_original: pygame.Surface, |
|
|
jojoko_original: pygame.Surface, |
|
|
moon_days_old: float) \ |
|
|
moon_days_old: float) \ |
|
|
-> pygame.Surface: |
|
|
-> pygame.Surface: |
|
@@ -399,14 +398,10 @@ class Main: |
|
|
jojoko.set_colorkey ((0, 255, 0)) |
|
|
jojoko.set_colorkey ((0, 255, 0)) |
|
|
|
|
|
|
|
|
for i in range (200): |
|
|
for i in range (200): |
|
|
if 1 <= moon_days_old < 7: |
|
|
|
|
|
|
|
|
if 1 <= moon_days_old < 15: |
|
|
pygame.gfxdraw.bezier (jojoko, ((0, 100 + i), (100, 180 * moon_days_old / 7 - 80 + i), (200, 100 + i)), 3, (0, 255, 0)) |
|
|
pygame.gfxdraw.bezier (jojoko, ((0, 100 + i), (100, 180 * moon_days_old / 7 - 80 + i), (200, 100 + i)), 3, (0, 255, 0)) |
|
|
elif moon_days_old < 14: |
|
|
|
|
|
pygame.gfxdraw.bezier (jojoko, ((0, 100 + i), (100, 180 * moon_days_old / 7 - 80 + i), (200, 100 + i)), 3, (0, 255, 0)) |
|
|
|
|
|
elif moon_days_old < 15: |
|
|
|
|
|
|
|
|
elif moon_days_old < 16: |
|
|
pass |
|
|
pass |
|
|
elif moon_days_old < 22: |
|
|
|
|
|
pygame.gfxdraw.bezier (jojoko, ((0, 100 - i), (100, 180 * (moon_days_old - 15) / 7 - 80 - i), (200, 100 - i)), 3, (0, 255, 0)) |
|
|
|
|
|
elif moon_days_old < 30: |
|
|
elif moon_days_old < 30: |
|
|
pygame.gfxdraw.bezier (jojoko, ((0, 100 - i), (100, 180 * (moon_days_old - 15) / 7 - 80 - i), (200, 100 - i)), 3, (0, 255, 0)) |
|
|
pygame.gfxdraw.bezier (jojoko, ((0, 100 - i), (100, 180 * (moon_days_old - 15) / 7 - 80 - i), (200, 100 - i)), 3, (0, 255, 0)) |
|
|
else: |
|
|
else: |
|
|