Done!
(log in to comment)
Comments
- The track image files are somehow corrupted.
- The image is not loading properly.
- There is some difference in how colour in Pygame surfaces is handled on OS X.
for checkpoint in checkpoints:
checks[checkpoint[0]].append(checkpoint[1])
print([checks, checkpoints, CHECK_COLS, mapsize]) # ADDED LINE
leave = False
The output might be useful.
[[[], [(2862, 4544), (2903, 4460)], [(17, 99), (97, 146)], [(4482, 620), (4571, 594)], [], []], [(2, (17, 99)), (2, (97, 146)), (1, (2862, 4544)), (1, (2903, 4460)), (3, (4482, 620)), (3, (4571, 594))], {-256: 0, 65280: 1, 16776960: 2, 16711680: 3, -65536: 4, -16777216: 5}, (7053, 4556)]
I don't get a load screen at all: I click on the track and the screen straight away freezes: same happens on all tracks.
```
File "main.py", line 200, in <module>
main()
File "main.py", line 55, in main
if level_select(LOADING):
File "main.py", line 126, in level_select
game.play_level(S, level, leveldata[level][2], scores[level], leveldata[level][1], int(leveldata[level][0]), LOADING)
File "/Users/naly/Downloads/SixthGear/game.py", line 79, in play_level
pos = [(checks[0][0][i] + checks[0][1][i]) / 2 for i in range(2)]
File "/Users/naly/Downloads/SixthGear/game.py", line 79, in <listcomp>
pos = [(checks[0][0][i] + checks[0][1][i]) / 2 for i in range(2)]
IndexError: list index out of range File "main.py", line 200, in <module>
main()
File "main.py", line 55, in main
if level_select(LOADING):
File "main.py", line 126, in level_select
game.play_level(S, level, leveldata[level][2], scores[level], leveldata[level][1], int(leveldata[level][0]), LOADING)
File "/Users/naly/Downloads/SixthGear/game.py", line 79, in play_level
pos = [(checks[0][0][i] + checks[0][1][i]) / 2 for i in range(2)]
File "/Users/naly/Downloads/SixthGear/game.py", line 79, in <listcomp>
pos = [(checks[0][0][i] + checks[0][1][i]) / 2 for i in range(2)]
IndexError: list index out of range
```
mit-mit on 2019/04/04 10:49:
Hi LeopardShark,I'm getting a crash when trying to click on a level to start "choose a level": the game hangs for about 20 seconds, then:
Traceback (most recent call last):
File "main.py", line 200, in <module>
main()
File "main.py", line 55, in main
if level_select(LOADING):
File "main.py", line 126, in level_select
game.play_level(S, level, leveldata[level][2], scores[level], leveldata[level][1], int(leveldata[level][0]), LOADING)
File "game.py", line 79, in play_level
pos = [(checks[0][0][i] + checks[0][1][i]) / 2 for i in range(2)]
File "game.py", line 79, in <listcomp>
pos = [(checks[0][0][i] + checks[0][1][i]) / 2 for i in range(2)]
IndexError: list index out of range
Any pointers? I'm running on osx 10.13, python 3.6.2.