11 Replies - 1044 Views - Last Post: 09 April 2008 - 04:25 PM Rate Topic: -----

#1 yanom  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 70
  • Joined: 05-April 08

Language decision problem

Posted 05 April 2008 - 06:29 PM

I was thinking of creating a 2d space shooter game. I have a friend who is doing the art and another friend doing music.Our goal is to be better than Galaga (The retro arcade space shooter they always have at pizza restaurants), so I was wondering what language it would be best to program it in. I know a little of Python, C++, and Java, but can someone please tell me what language is best in this situation??
Is This A Good Question/Topic? 0
  • +

Replies To: Language decision problem

#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 3872
  • View blog
  • Posts: 11,405
  • Joined: 18-April 07

Re: Language decision problem

Posted 05 April 2008 - 06:43 PM

It is a toss up between C++ and Java. C++ has the speed advantage but both are equally good for such a game design. You may find Java to be a little more productive and good for getting you to a demo stage, but usually game developers language choice is C++ because of the performance.

But in the end it really depends on one thing... which language you find more comfortable and you enjoy using the most. Since you will be writing a lot of code for standard games it has to be the language you like to use the most or you will get bored/frustrated.

I hope that answers your question. :)
Was This Post Helpful? 0
  • +
  • -

#3 Tom9729  Icon User is offline

  • Segmentation fault
  • member icon

Reputation: 178
  • View blog
  • Posts: 2,636
  • Joined: 30-December 07

Re: Language decision problem

Posted 05 April 2008 - 06:53 PM

Java with the Slick 2D library would be a good combination I think.

I never finished it, but I wrote quite a bit of a freeform 2d space fighter game with the above combination.

Take a look here.
Was This Post Helpful? 0
  • +
  • -

#4 yanom  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 70
  • Joined: 05-April 08

Re: Language decision problem

Posted 05 April 2008 - 06:54 PM

Will python work?
Was This Post Helpful? 0
  • +
  • -

#5 Tom9729  Icon User is offline

  • Segmentation fault
  • member icon

Reputation: 178
  • View blog
  • Posts: 2,636
  • Joined: 30-December 07

Re: Language decision problem

Posted 05 April 2008 - 07:07 PM

Any language will work. I was just recommending one that had an easy-to-pickup graphics library. I don't know if there is anything similar to Slick 2D for Python.

Edit: Some graphics libraries/bindings for Python.
http://g2.sourceforge.net/
http://pyopengl.sourceforge.net
http://www.pygame.org/

This post has been edited by Tom9729: 05 April 2008 - 07:11 PM

Was This Post Helpful? 0
  • +
  • -

#6 yanom  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 70
  • Joined: 05-April 08

Re: Language decision problem

Posted 06 April 2008 - 07:04 PM

What's a good tutorial/book on graphic programming in python?


And what do you mean by "graphics library"? Whats a "graphics library"?

This post has been edited by yanom: 06 April 2008 - 07:05 PM

Was This Post Helpful? 0
  • +
  • -

#7 .Maleficus.  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 129
  • Joined: 07-March 08

Re: Language decision problem

Posted 06 April 2008 - 07:43 PM

View Postyanom, on 6 Apr, 2008 - 07:04 PM, said:

What's a good tutorial/book on graphic programming in python?


And what do you mean by "graphics library"? Whats a "graphics library"?

This ought to get you started.

A graphics library is an engine. It has classes and methods that you use to create your game instead of writing them all yourself. PyOpenGL is a Python binding for OpenGL; instead of figuring out your own way to implement OpenGL, PyOpenGL is already made and ready for download.

Any reason you want to use Python though? Java would be great for this and there are tons of great Java 2D libraries.
Was This Post Helpful? 0
  • +
  • -

#8 yanom  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 70
  • Joined: 05-April 08

Re: Language decision problem

Posted 07 April 2008 - 02:33 PM

Quote

Any reason you want to use Python though? Java would be great for this and there are tons of great Java 2D libraries.


Java's so complicated. I mean, this is hello world in Python
print "Hello World"
and this is hello world in Java
class myfirstjavaprog
{  
		public static void main(String args[])
		{
		   System.out.println("Hello World!");
		}
}


Seriously.
Was This Post Helpful? 0
  • +
  • -

#9 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 3872
  • View blog
  • Posts: 11,405
  • Joined: 18-April 07

Re: Language decision problem

Posted 07 April 2008 - 02:43 PM

Then why in the world did you ask about C++ and Java and not just ask about designing games with Python? You obviously have a bias towards Python so just use it for what you want to do. All I suggested, as well as Tom, is that you might want to go with a more robust and widely accepted language for game design.

But like I said before, go with what you know. I am just not sure why you even mentioned C++ or Java if apparently it wasn't on your radar as a real choice.

:)
Was This Post Helpful? 0
  • +
  • -

#10 Tom9729  Icon User is offline

  • Segmentation fault
  • member icon

Reputation: 178
  • View blog
  • Posts: 2,636
  • Joined: 30-December 07

Re: Language decision problem

Posted 07 April 2008 - 04:53 PM

Writing a game, or just about any program for that matter, is quite a bit different from doing "hello world". The reason that you can get off with so little in Python is because it's a scripting language, and it doesn't force you to use classes (unlike Java). Once you start using classes in Python the two are pretty much the same length.

Once you start writing any decently sized program, all the code is going to start looking the same no matter what language you chose.
Was This Post Helpful? 0
  • +
  • -

#11 KYA  Icon User is offline

  • su wtf -am -i /doing/with/my/life
  • member icon

Reputation: 2978
  • View blog
  • Posts: 19,031
  • Joined: 14-September 07

Re: Language decision problem

Posted 07 April 2008 - 05:01 PM

View Postyanom, on 7 Apr, 2008 - 03:33 PM, said:

Quote

Any reason you want to use Python though? Java would be great for this and there are tons of great Java 2D libraries.


Java's so complicated. I mean, this is hello world in Python
print "Hello World"
and this is hello world in Java
class myfirstjavaprog
{  
		public static void main(String args[])
		{
		   System.out.println("Hello World!");
		}
}


Seriously.


You can't compare the two. Apples and oranges.
Was This Post Helpful? 0
  • +
  • -

#12 yanom  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 70
  • Joined: 05-April 08

Re: Language decision problem

Posted 09 April 2008 - 04:25 PM

Quote

I am just not sure why you even mentioned C++ or Java if apparently it wasn't on your radar as a real choice.

My problem is with Java. I don't mind C++ if it would make the game better (or easier).

This post has been edited by yanom: 09 April 2008 - 04:26 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1