hi I am a 11 year old kid trying to learn python so please do not be too hard I understand most of the basics but I am trying to make a 3D game I can make 2D games but I am struggling making 3D game so can you please help me?
Googling for Python 3D game engine shows a couple of libraries, including Panda3D.
I’d start there. But if you’re posting here, surely you’ve already tried that?
Hey Jimmy, that’s awesome. If you’ve already made 2D games, some early 3D games that were super fun used isometric layouts, which are simpler to implement than true 3D. Isometric video game graphics - Wikipedia
When I was even younger than you, I loved: Head over Heels (video game) - Wikipedia
In general true 3D graphics, e.g. for FPS games, use Ray Tracing (to figure out what’s in front of what, and closest to the camera). Modern 3D graphics engines could use different light sources, textures, shadows, rendering, clouds, flames, fur, not to mention compiling code to use the user’s graphics card… …basically it all gets complicated - fast. But the good news is, there’s no need to build everything yourself from first principles (if you don’t want to).
As you get further with your programming, you will encounter many people like me, who when asked a question they don’t have experience of, will suggest a framework or library. However, as above, 3D it gets complicated fast. But:
Firstly, all the big games studios use Frameworks for 3D games, even AAA titles, such as Unity or Unreal. So at the very least there’s no shame in it. And at the very best, if you get good with an in demand framework, it could lead to a job. They’re not based on Python though, but it is well worth your time to dip into C#, or even C++ when you feel ready
Secondly, if PyGame hasn’t got a 3D add on, there’s an alternative powerful 3D framework, that uses a “Python like syntax”, called Godot: Godot (game engine) - Wikipedia
Some people are big fans of it, and it’s been used on some major titles.
Godot has its own built-in scripting language, GDScript,[30] a high-level, gradually typed programming language which is syntactically similar to Python. Unlike Python, GDScript is optimized for Godot’s scene-based architecture and can specify strict typing of variables. Godot’s developers have stated that many alternative third-party scripting languages such as Lua, Python, and Squirrel were tested before deciding that using a custom language allowed for superior optimization and editor integration.
Check out Blender too for creating your models and scenes - it’s always had fantastic support for Python scripting, and has come on in leaps and bounds over the last 10 years too. There’s no need for Maya or 3DS Max when you’re just getting started.
Also, ask your folks if they’ll take you to a Game Jam near you one weekend. Being an indie games developer is fantastic. But you’ll learn so much more from working with other game devs.
Panda3d is another 3d game engine.