Jump to content

View more

Image of the Day

#indiedev  #indiegame #screenshotsaturday https://t.co/IwVbswGrhe
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

Sign up now

Python or C#?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 Brotato   Members   


Posted 28 February 2012 - 07:54 PM

I'm just learning how to program and I'm wondering if it would be wiser to learn Python or C# for game development? I already know some Python, enough to make a game of hangman; but it seems like learning C#, and thus being able to use XNA and other utilities would be more useful later on.

#2 Serapth   Members   


Posted 28 February 2012 - 08:10 PM

Make Hangman in C#, then decide.

Me, i'd take C#, but then if I'm perfectly honest, I don't really like Python that much.

#3 SiCrane   Moderators   


Posted 28 February 2012 - 08:43 PM

While I like Python, I find that the mainstream game development libraries for C# tend to be of higher quality with better documentation, etc. So between the two, for game development, I'd recommend C#. But honestly, sticking with Python for a while won't hurt you in the long run either.

#4 daviangel   Members   


Posted 28 February 2012 - 11:06 PM

I remember when there was a lack of info on XNA and everyone argued over the what the best way to code a game loop for it Posted Image
But it seems Microsoft poured a ton of money into it the last couple of years so there is actually so much XNA info out there that is seems the question everyone has now is where to start.

I still find Python/PyGame to be just as good of a choice as before XNA hit the big time since it's still as simple and straight forward to get simple 2D games up and running whereas with XNA it such a fast moving target that you'll have to take care with some of the older code information out there in regards to XNA. For example some XNA examples include the following Note: This item is no longer supported. It may demonstrate techniques that are no longer valid in current versions of XNA Game Studio. The item is archived here, but will not be updated.

Bottom line is the sooner you start writing games in either the easier it will be for you to adapt to any changes in the future since you will be experienced.
Don't talk about writing games, don't write design docs, don't spend your time on web boards. Sit in your house write 20 games when you complete them you will either want to do it the rest of your life or not * Andre Lamothe

#5 Black-Rook   Members   


Posted 29 February 2012 - 12:52 AM

You will never loose by picking C# over Python, or Python over C#. Once you understand programming fundamentals, and get fimlair with game programming, you will be in a better position to pick up any language you would like to use.

C# uses XNA for games, or SlimDX, ect...
Python uses PyGame.

The key is to pick one language and just learn as much as you can! Keep on learning languages as time progresses! I was crazy enough to start with C/C++, but heck, 10 years later I've never really left C++ regardless of using VB/C#/BASIC/JAVA ect...
GameDev Journal: http://www.gamedev.n...-rooks-journal/

OpenChess - 1.0 done!

Classic RPG #1 - Task 9 -> January 1st 2013

#6 stormwarestudios   Members   


Posted 29 February 2012 - 10:55 PM

Your development language of choice demands more criteria than just the language itself. You need to look at:
- Development IDE.
- Debuggers.
- Community support.
- Availability of complimentary libraries.

Do some research, and your answer becomes simple.

#7 Memories are Better   Prime Members   


Posted 02 March 2012 - 04:22 PM

Picking the language really has to be your own choice, you cant really pick a language based on what others have suggested as you will get pro's and con's for both languages.

I have only used python once and that really was to see what all the fuss was about, I personally didnt like it but I could see why people do like it, im a .net fanboi and would make out with visual studios if I could, rather than listing all the things about C# / .net that make me drool and contradicting my initial comment I will say experiment with both languages and pick whatever you feel comfortable with.

For game development, C# has XNA, SlimDX (DX wrapper), OpenTK (OpenGL wrapper) etc, not sure if theres a wrapper or whatever for python but if your game agenda ever involves or includes DX / OpenGL then you might want to consider using C#. But then you could always use C++ for either DX / OpenGL and use python to script.

For everything else, go look at the million of comparison threads where both languages get flamed / complimented to death. If you consider doing any web related work, you might want to consider C#, because ASP.NET MVC and SL are too awesome for words.

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.