Can anybody help me with my code?(Python)
tremoroffcial (0)

Hi there I have an error message and its is this:
Traceback (most recent call last):
File "C:\Users\jaine\OneDrive\Desktop\Python Maze Game2.py", line 142, in <module>
setupmaze(levels[1])
File "C:\Users\jaine\OneDrive\Desktop\Python Maze Game2.py", line 132, in setup_maze
treasures.append(Treasure(screen_x, screen_y))
File "C:\Users\jaine\AppData\Local\Programs\Python\Python37-32\lib\turtle.py", line 3816, in _init

visible=visible)
File "C:\Users\jaine\AppData\Local\Programs\Python\Python37-32\lib\turtle.py", line 2545, in init
self.turtle = TurtleImage(screen, shape)
File "C:\Users\jaine\AppData\Local\Programs\Python\Python37-32\lib\turtle.py", line 2488, in _init

self._setshape(shapeIndex)
File "C:\Users\jaine\AppData\Local\Programs\Python\Python37-32\lib\turtle.py", line 2502, in _setshape
self._type = screen._shapes[shapeIndex]._type
KeyError: 240
Code Link:
https://pastebin.com/ESPdSg2t

You are viewing a single comment. View All
jwangtcsyl (2)

Well, what coding language is this?