Jump to content

Should i program games in python or in C++?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
12 replies to this topic

#1
chinog9

chinog9

    Newbie

  • Members
  • Pip
  • 6 posts
Hello! I am new here at Code Call!
I love programming but I'm not a veteran, actually I'm kind of new, but i love it. I know Java at an intermediate level. I want to start programing video games, start with basic ones but i want to eventually program some fun and complex 3D games. So my question is: What language do you recommend me to use? I like programing in python but many people have told me to program games in C++. What do you think about it? should i stick with python at the beginning or do i need to go to C++ if i want to develop some good games?

Thank you!

I am sorry i think o post this on the wrong section. my bad!... pardon me... im kind of new at this

Edited by TkTech, 06 October 2009 - 11:36 AM.


#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
You can stick with python for now, but will probably want to learn other languages as well.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
marwex89

marwex89

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 10,720 posts
For anything serious you can throw Pygame in the garbage can.. Complex 3D games is, and has been for a long time, C++ territory.
Hey! Check out my new Toyota keyboaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

#4
Guest

Guest

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,414 posts
Since you already know Python, start programming some simple games with it and get a feel for what game programming is about and what is required. Then you should learn some C++ and start programming. C++ is harder, but you can make much better games with it, so it is definitely worth learning. ( I prefer C, but most people use C++ when it comes to game programming.) You can also check out this website. I usually recommend it to people who want to program games, because it is a pretty good resource you can contribute to.
Root Beer == System Administrator's Beer
Download the new operating system programming kit! (some assembly required)

#5
skipetom

skipetom

    Newbie

  • Members
  • Pip
  • 1 posts

chinog9 said:

Hello! I am new here at Code Call!
I love programming but I'm not a veteran, actually I'm kind of new, but i love it. I know Java at an intermediate level. I want to start programing video games, start with basic ones but i want to eventually program some fun and complex 3D games. So my question is: What language do you recommend me to use? I like programing in python but many people have told me to program games in C++. What do you think about it? should i stick with python at the beginning or do i need to go to C++ if i want to develop some good games?

Thank you!

I am sorry i think o post this on the wrong section. my bad!... pardon me... im kind of new at this


Since you already know Python, start programming some simple games with it and get a feel for what game programming is about and what is required.

Edited by WingedPanther, 29 October 2009 - 03:28 PM.
delete spam link


#6
manux

manux

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 234 posts
I personally usually write the low level code in C++ and the "controlers", lets say the logical part, in Python, so your Engine is easy to understand, and its core is powerful, and fast.

#7
Natrobius

Natrobius

    Programmer

  • Members
  • PipPipPipPip
  • 166 posts

manux said:

I personally usually write the low level code in C++ and the "controlers", lets say the logical part, in Python, so your Engine is easy to understand, and its core is powerful, and fast.

This is probably the best solution.

#8
Tinlau

Tinlau

    Newbie

  • Members
  • Pip
  • 1 posts
stick with python

#9
huumingh

huumingh

    Newbie

  • Members
  • Pip
  • 1 posts

skipetom said:

Since you already know Python, start programming some simple games with it and get a feel for what game programming is about and what is required.

Great ideas here - thanks for sharing peeps.
________________

kites for sale|kite store

#10
Davide

Davide

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 506 posts
You can use OpenGL with C++, and it will work without any problem on multiple platforms. Python is a high-level programming language, that means:
Write Python Code -> Compile -> Convert to C++ -> Convert to Assembler -> Convert to Machine Code -> Execute.
That's one long way, that means you game will be slower. Also, it is easier to write it in C++, and also easier to deploy, remember that the users will have to have Python installed to run your game.
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics

#11
Guest

Guest

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,414 posts

Davide said:

You can use OpenGL with C++, and it will work without any problem on multiple platforms. Python is a high-level programming language, that means:
Write Python Code -> Compile -> Convert to C++ -> Convert to Assembler -> Convert to Machine Code -> Execute.
That's one long way, that means you game will be slower. Also, it is easier to write it in C++, and also easier to deploy, remember that the users will have to have Python installed to run your game.

Python isn't compiled, it's interpreted. Also I would say it's much easier to write in Python than in C++.
Root Beer == System Administrator's Beer
Download the new operating system programming kit! (some assembly required)

#12
Davide

Davide

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 506 posts

Guest said:

Python isn't compiled, it's interpreted. Also I would say it's much easier to write in Python than in C++.

Easier, yes, faster, no. Python is written in C++, it's a high-level programming language.
Are you a newbie programmer trying to learn C#? Check out my small tutorial: Visual C# Programming Basics