diff --git a/examples/go_over_there.py b/examples/go_over_there.py index 9b538bc359..d4b9b59bcf 100644 --- a/examples/go_over_there.py +++ b/examples/go_over_there.py @@ -40,7 +40,7 @@ def reset(): balls = [] for x in range(MAX_BALLS): pos = pygame.Vector2( - random.randint(0, SCREEN_SIZE.x), random.randint(0, SCREEN_SIZE.y) + random.randint(0, int(SCREEN_SIZE.x)), random.randint(0, int(SCREEN_SIZE.y)) ) speed = random.uniform(MIN_SPEED, MAX_SPEED)