Question:
how are the more complicated programs made, I'm learning python from scratch?
2012-06-27 18:49:20 UTC
I decided to pick up programing in my spare time, only been at it for a few days. Any ways I was wondering about programs like computer games, the stuff i learn is like print this string, or add these variables... How does that make a game? Aren't those big games like diablo and star craft written in a fundamental program like python or c ???
Four answers:
husoski
2012-06-27 20:38:15 UTC
Large programs are usually made of lots of small programs, more complicated than what you're learning at first, but not as much as you might think.



Python is a good language for a lot of things. It's got a huge standard library, plus many independent platforms.



You mentioned gaming. Python is the scriping language for the Blender game engine. Blender is a pro-quality suite for 3D design, modeling, rendering and animation. Check out http://www.blender.org for more information. Also, look at http://www.pygame.org for a more traditional game development library, using SDL for OpenGL-based access to video, audio and game controller hardware.



Nobody shows source code for the big Blizzard, but I stood in line at DMV with a Blizzard employee for about 40 minutes. He told me that they use multiple languages. (I suspect that C++ is dominant.) The guy was a QA engineer, not a game coder or designer, for what it's worth. Also FWIW is that he mentioned that Python was one of the languages. That surprised me, because I was fairly new to Python at the time, and didn't think of it as a language for game developers.



So, use your imagination. You can do a lot in Python, Even if you decide that you need more performance and recode in another language, Python is good for prototyping and proof-of-concept projects.
j A L
2012-06-28 02:48:26 UTC
I disagree with C not being useful for programming games, c++ is still one of the most popular in the community. It is because its compiled and has great overall performance. Python is like the beginners version of that, and most use that because its much easier to learn than c++ and even so, you need to really know a lot about a language before you can just start programming games. C++ is really hard one for most out there. Any OOP language will be good powerful languages to program games in.
2012-06-28 01:56:26 UTC
Games are not made from python or C not really maybe fundamentals strings.

Mainly C# or java prolog, flash for online games C is for building stuff from scratch like the linux kernel.
Sg_Bk
2012-06-28 02:06:21 UTC
Welcome to python, you can learn the basics from the documentation of www.python.org. After that you can refer to pygame for game development.



Python is an easy and fast language to pick up, it has many extended free libraries that helps it achieve many powerful functions that fundamental language like c is awkward in designing.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...