• Master Hun

Python Game Dev: Lesson 002

You can run, re-mix, and share this lesson's Python code with Trinket.io

Python code for this lesson is accessible through the link below:

Link: https://trinket.io/python/07b191f037

Date: 03/10/2020

Topic: Game Dev (with Python & the turtle module) Title: Lesson 002

In this lesson, we learn how to accept user input and change the player object's speed and direction from the user's mouse clicks or taps on a touchscreen.

This lesson's code demonstrates how to use the following methods available from the turtle module:





Also, the following functions (not methods) from the math module:



If you want to learn more about the turtle module and its many methods, use the following link: https://docs.python.org/3.3/library/turtle.html?highlight=turtle


Thanks to Christian Thompson (YouTube: Christian Thompson) for having created many, many Python game development tutorials.

7 views0 comments

Recent Posts

See All