Python Game Coding: Close the Turtle Window With No Error

Опубликовано: 16 Октябрь 2024
на канале: TokyoEdtech
8,696
137

Here's another question I get ALL THE TIME. "How do I close the window without that weird error message popping up?" Here ya go - it takes 6 lines of code. Thanks to Sebastian for the code in this video !    / @sebastian-42-69  

Note, I haven't created the projectile motion tutorial yet, but the code is linked down below.

Links:
Starting Code: https://github.com/wynand1004/Project...

Global vs. Local:    • Python Coding Basics: Global vs. Local  



▶▶NEED HELP?◀◀

Watch this first and then let me know in the comments below:    • Help Me Help You  

▶▶▶▶LINKS◀◀◀◀
▶▶Follow me on Twitter:   / tokyoedtech  
▶▶Subscribe to my Newsletter: http://eepurl.com/dKgM8k
▶▶Check out my Blog: https://christianthompson.com
▶▶Download Geany Editor: https://www.geany.org

▶▶▶▶LEARN MORE PYTHON◀◀◀◀
▶▶Space Invaders:    • Python Game Programming Tutorial: Spa...  
▶▶Snake Game:    • Python Game Programming Tutorial: Sna...  
▶▶Pong:    • Python Game Programming Tutorial: Pon...  
▶▶Space War:    • Python Game Programming Tutorial: Spa...  
▶▶Intro to Python (for Java Coders):    • Intro to Python for Java Coders: Comm...  

*AND*

▶▶Space Arena◀◀ - The Ultimate Python Turtle Graphics Game Tutorial:    • Ultimate Python Turtle Graphics Tutor...  

▶▶▶▶LEARN MORE JAVA◀◀◀◀
▶▶Basic Java for Beginners:    • Basic Java 1&2: Comments and Printing  
▶▶Intro to AP Computer Science A:    • AP Computer Science Unit 1: Primitive...