# I’ve Never Used Python Before… Can It Make Games?

## Метаданные

- **Канал:** Dani Krossing
- **YouTube:** https://www.youtube.com/watch?v=2uJXI-1gZRY

## Содержание

### [0:00](https://www.youtube.com/watch?v=2uJXI-1gZRY) Segment 1 (00:00 - 05:00)

So, we're getting into 2026 now, and I have thought to myself, what exactly could I make for the channel? One of the things that has been widely requested has been Python. I thought to myself, well, if you have to do Python, like what should I make in Python? Cuz that is like why should I learn it? Why should other people learn it? People watching this, you know what? What exactly is Python? What is Python? Python is a highle generalpurpose programming language designed to be easy to read, easy to write and powerful at the same time. Okay. So basically Python is used to make web development, artificial intelligence and machine learning, data science, automation and scripting and games and apps. Okay, so you can make it for all sorts of things. I do also think you can make uh like mobile apps with Python. I'm pretty sure that's a thing too, even though it doesn't say it here, I think. And you can actually see I have something on my screen here, which is Unity, because I was thinking to myself, well, okay, I know you can make games inside Python. Um, but why would I want to learn Python to make games when you have something like Unity, which is a very polished game engine that is very popular for anyone who wants to get started on making video games because it is a beginner friendly thing. And then I thought, well, Unity kind of had that thing, what was it like a year ago, one and a two years ago? It had a thing a couple of years ago where basically they kind of screwed over. Everyone who uh who had used Unity for game development even in the past had to pay up in order to have used their engine to make their games in the past. Like they had to pay a fee for it per download of the game made inside Unity. Not per purchase, per download. So, if I uninstalled a game inside my uh Steam library and I download it again and I uninstalled it again, the developers had to keep paying Unity in order for that to happen. Like, there was something crazy like that. And I thought to myself, well, okay, so if I want to make a game, it would be really awesome to try and find out if Python might be fun to make a game in. So, that's why I have Unity open here. Basically, there's also this fun thing that people like keep commenting on my uh PHP tutorial. Oh, why would you want to learn PHP? You should learn Python. It's much more popular. Like everyone uses Python today. And it's kind of like this weird thing where okay, so Python is the most popular programming language today, but not when it comes to websites. But that was just kind of like a side thing that I keep getting on my channel. 83% of websites, by the way, use PHP? I think Python is like 1%. Okay. How difficult is it to make a game using Python? That's my question cuz I like should I make a custom game using Python? What how do I restrict I can't talk right now. In what kind of way do I restrict myself if I want to use Python for game development? Like there has to be some restrictions, right? because you have a graphics user interface inside Unity, which basically means that if I want to do something that is very visual where I click something and I drag it inside my inspector or something like that, it has already been made inside Unity. So if I want to make a game using Python, I would have to make the game engine first and then I can make a game. Or do we just have a framework that I can use to make games inside Python? probably like that's probably like the obvious solution here. Pygame I I've heard about that before. So we need to install Python 3, a text editor like uh VS Code or PyCharm and then we need to have a terminal so we can install Pygame. You can make most beginner games once you understand these game loop runs every frame. I understand that from Unity. input update draw render sprite shapes and text and collision detects hits and overlaps. So that is from my experience in Unity like most of what you need to use most like what if you want to animate something like animate a sprite how do you do that it doesn't say here but there's probably a way to do that using pygame so basically you create a new file and you import pygame so you can use it you import the system so we can actually uh I guess run the program once we've created it I do think that maybe what I'm seeing here is a little bit more for if you want to make a 2D game because 3D is a little bit different, right? You're going to have three dimensions, which is different than two. Uh, but basically, if I just want to like have my character move up and down, left and

### [5:00](https://www.youtube.com/watch?v=2uJXI-1gZRY&t=300s) Segment 2 (05:00 - 07:00)

right. I think I can do it like this. Do I even have Python installed on my machine? I do think I do cuz I have installed Python a couple of years ago to just kind of see what it is. So I think basically my conclusion here is that it should be possible to make a game using Python, right? At least according to what Chat TPT tells me. So I think I will try to make a Python game just like based on the project that Chat TPT wants me to kind of like learn here. Let's go ahead or at least let me go ahead and start learning how to build a game using Python cuz it does seem doable. I was kind of thinking if I should do a Unity series where I just like build a game using Unity cuz I have some experience in Unity. I'm not an expert but I do have experience using Unity. It's been some time since I did Unity, right? And one of the things I hate about Unity, it changes constantly. Like if you learn PHP for example or if I teach PHP okay well maybe a newer way of doing things may become available but it doesn't overwrite the old way of doing things otherwise website would break essentially like all the websites online today would just break if they changed PHP so they don't do that instead they just add to PHP a good example is JavaScript when they added the let variable instead of a regular va variable right? They just added to it because the original V variable didn't do what they wanted it to. We're going to do this. I'm going to try this and it's just going to be fun to see how that's going to work out. Me trying to build a game using Python. It's definitely going to be a challenge cuz like I said, I'm completely new to this. I hope you guys will enjoy the series here. It is a little bit different than what I usually do. I am trying to move away from this very dry teaching sort of path because it is uh what is the best way to say this? Uh it's pretty much being overtaken on YouTube by AI. Some people prefer having a person sitting there teaching cuz it's much more warm and welcoming. And if you already know programming beforehand and you don't need to like learn it for the first time, then instead of using a YouTube video, it might be a little bit easier just to like look things up on Chat DPT just like how I would just Google things. Like if I want to learn Python and AI wasn't available, I would just Google it. I wouldn't use a YouTube video. So I'm going to be using Chat GPT in order to help me out learning this sort of thing. So, thanks for watching and I'll see you guys next time when I think we're going to learn run the square example change color speed. That's all we're going to do, I guess. Or set up Python. I don't know. We'll find out. That was so awkward. Sorry. [snorts]

---
*Источник: https://ekstraktznaniy.ru/video/39436*