• 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:

onclick()

setposition()

towards()

setheading()


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

pow()

sqrt()


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

Credits:


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

(646) 902 - 5486

©2019 by PythonFuMasters. Proudly created with Wix.com