retains crashing
Technically, nope.
each time it exhibits a black display after which after a second says “not responding”
Your script is technically freezing or stalling.
it exhibits a black scree
On this piece of code
def loadKraft(x, y):
arcade.draw_line(x, y + 25, x - 14, y - 18, arcade.coloration.RED, 6)
arcade.draw_line(x, y + 25, x + 14, y - 18, arcade.coloration.RED, 6)
arcade.draw_line(x - 14, y - 18, x, y - 12, arcade.coloration.RED, 6)
arcade.draw_line(x + 14, y - 18, x, y - 12, arcade.coloration.RED, 6)
attempt to exchange x and y with the values you provide right here:
loadKraft(0, -59)
You may notice that the y
coordinates you provide are all the time destructive. This seemingly signifies that you attempt to attract exterior your viewport and so, properly, you do not see it.
To repair this, attempt to attract every little thing utilizing optimistic coordinates.
arcade.pause(60)
This can pause your recreation for 60 seconds. I do not know what’s the intention right here, however in case you began your script and didn’t wait these 60 seconds, it seemingly signifies that you ask your recreation to freeze throughout this time period till it finishes.
So to repair this concern, attempt to make it pause for a smaller period of time.
Any method I can get the script to maintain displaying the render with out making it appear unresponsive?
I believe what you are lacking, from taking a look at examples (I have not tried it myself), is to name this
arcade.run()
as a substitute of
arcade.pause(60)