Game crashes when loading "Full Screen 2"
I will correct if I has the correct result, I will write to you
Log:
C:\Users\user\Desktop\ADayInFall>C:\Users\user\Desktop\ADayInFall\ADayInFall.py
pygame 2.1.2 (SDL 2.0.18, Python 3.10.1)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\random.py", line 303, in randrange
istart = _index(start)
TypeError: 'float' object cannot be interpreted as an integer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\user\Desktop\ADayInFall\ADayInFall.py", line 1042, in <module>
spawning(spawnNum, scaling)
File "C:\Users\user\Desktop\ADayInFall\ADayInFall.py", line 690, in spawning
spawnX = random.randint (0 + fullscreenMoveX, 756 + fullscreenMoveX)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\random.py", line 370, in randint
return self.randrange(a, b+1)
File "C:\Users\user\AppData\Local\Programs\Python\Python310\lib\random.py", line 309, in randrange
raise ValueError("non-integer arg 1 for randrange()")
ValueError: non-integer arg 1 for randrange()
C:\Users\user\Desktop\ADayInFall>