Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Python Course - Doing PONG Game with Turtle Module
Rating: 4.8 out of 5(8 ratings)
2,039 students

Python Course - Doing PONG Game with Turtle Module

Pong Game with Python, Python Turtle Module, Python Game Development
Last updated 2/2022
English

What you'll learn

  • You will be able to do games by using Turtle Module.
  • Can use "Class" to make projects.
  • Learn how to write your own Python programs.
  • Be confident in your Python programming abilities and knowledge so that you may apply for Python programming jobs.
  • Use Python to make your daily life easier.
  • You will learn Turtle Module very well.

Course content

1 section12 lectures1h 5m total length
  • Setup the Screen2:16

    Import screen from turtle, define the screen object, and set the background color to black. Resize the window to 800 by 600 to begin creating paddles.

  • Create Paddle3:37
  • Move the Paddle with keypress5:05
  • Using "tracer" and "update" Function3:50
  • Create the Paddle Class9:56

    Create a paddle class using turtle, initialize with positions, define go up and go down methods, instantiate left and right paddles, and assign keyboard controls to move them.

  • Create the Ball class2:23

    Learn to create a ball class in Python with the turtle module, import necessary classes, define a Paul class, set color and circle shape, and instantiate the ball object.

  • Make the ball move6:31

    Move the ball by updating its x and y coordinates each loop, increasing them to travel rightward, adjust speed with sleep, and set up wall collision in the next video.

  • Make the ball bounce5:54

    Learn how to make the ball bounce in a turtle-based pong game by reversing its direction on wall collisions and updating x and y coordinates with a dedicated bounce function.

  • Detect Collision with the Paddle9:52
  • Detect when the ball go out4:21

    Learn to detect when pong ball goes out of the screen, check x coordinate, reposition to center, flip direction, and update the scoreboard with boundary checks and if statements.

  • Score Keeping9:06
  • Fixing a bug with colliding ball2:17

    Fix a bug in the turtle-based pong game where the ball penetrates the paddle at corners by adjusting collision parameters and ball thickness, and invite questions.

Requirements

  • You should know the basics of Python knowledge.

Description

Python is a programming language that is intended for both total beginners who have never coded before and experienced programmers who wish to broaden their career choices by learning Python. Python is, in reality, one of the most widely used programming languages in the world, with major corporations such as Google using it in mission-critical systems such as Google Search to great effect. Python, on the other hand, is the most popular programming language for machine learning, data science, and artificial intelligence. If you want to get one of those high-paying positions, you'll need to be an expert in Python, which is exactly what you'll learn from this course.

You will master the Turtle module with Python programming language in this course. Firstly, we will learn the basics about the Turtle module, then we will make PONG Game by using "Turtle Module". In this way, you will understand how the "class" work in Python.

Once you've completed the course, you'll be ready to submit applications with confidence for Python programming positions. And, sure, this is true even if you have never coded in your life before to now. You may become employable and useful in the eyes of future employers if you have the appropriate abilities, which you will acquire in this course and practice.

If you have any questions about this course, please contact me as soon as possible and I will respond to you the same day. With the help of this course, you will learn how to make your lives simpler by becoming familiar with the Python programming language. This will keep you motivated on a daily basis and prevent you from becoming bored while studying Python.

Who this course is for:

  • Who want to learn Turtle Module.
  • Who want to learn OOP very well.
  • Who want to learn Python in an effective way.
  • Who want to communicate with computer.
  • Who want to use Python skills to get better jobs.