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 Space Invaders Game with Turtle Module
Rating: 4.8 out of 5(8 ratings)
2,035 students

Python Course - Doing Space Invaders Game with Turtle Module

Space Invaders Game with Python Turtle Module, Python Game Development
Last updated 2/2022
English
English [Auto],

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 section10 lectures1h 21m total length
  • Setup the Screen2:53

    Set up turtle screen for space invaders game by creating a screen object, sizing it to 600 by 600, and choosing a background color before adding the player and missiles.

  • Create Player7:28

    Create a player class using the turtle module and inherit from turtle, set its shape, color, and heading, then position it and enable space key shooting.

  • Using Tracer method3:53

    Hide the turtle, use screen tracer to control updates, and pace the game with time.sleep(0.1) as invaders spawn at the center and move downward, with keyboard controls for direction.

  • Change the Direction with Keypress6:25

    Learn to change a turtle's direction in a space invaders game by defining turn right and turn left methods in the player class and binding right and left keys.

  • Fire Missiles9:05

    Create and fire missiles in a turtle-based Python game by attaching missiles to the player, spawning multiple missiles on space, assigning heading, and updating positions to move upward.

  • Create Invaders at random location18:33

    Create invaders as enemies at random positions using a dedicated invader class in turtle, spawn with random coordinates, color them randomly, and animate movement toward the player while handling collisions.

  • Kill the Invaders9:48

    Detect collisions between missiles and invaders in the space invaders game by measuring distance; remove the missile and invader from lists when distance is under 20, keeping the game fast.

  • Detect Collision with invader4:03

    Detect collisions between the turtle player and invaders using distance checks; when distance falls below a threshold, the game ends and the score can update.

  • Add scoreboard to the game12:14

    Learn how to add a scoreboard to a space invaders game using turtle, display and update the score, customize fonts, and show game over text.

  • Convert Py file to Executable file7:15

    Convert python files to an executable using pyinstaller, packaging a turtle-based game into a single file, and verify gameplay with scoring, player, and scoreboard features.

Requirements

  • You should know the basic 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 do Space Invaders 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.