Welcome to Dream.In.Code
Become an Expert!

Join 149,609 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,859 people online right now. Registration is fast and FREE... Join Now!




2D games aspirant

 
Reply to this topicStart new topic

2D games aspirant, What is the quickest Language to create 2D games; C++, Java or C# ?

KoolDa
13 Sep, 2007 - 01:16 PM
Post #1

New D.I.C Head
*

Joined: 13 Sep, 2007
Posts: 4


My Contributions

Hello Pros,
What is the quickest Language for a newbie to create 2D games for Windows-98 or Windows-2000 platform; C++, Java or C# ?

How long should it take using C++ ?
I have minimal experience in C++ (upto but not including Classes).
I have an old Visual C++ (version 4.0) development set.

Thanks
KoolD
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: 2D Games Aspirant
13 Sep, 2007 - 01:24 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,655



Thanked: 313 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
You have to remember that Java and C# both have their basics mounted in the world of C++. I find that Java might be more beginner friendly but C++ will be the most useful to you in the future since many games and apps are built either directly using C++ or using languages which are based on C++ indirectly.

Since DIC supports all three, any language you chose would be easy! wink2.gif
User is offlineProfile CardPM
+Quote Post

corliss
RE: 2D Games Aspirant
13 Sep, 2007 - 01:25 PM
Post #3

D.I.C Head
Group Icon

Joined: 25 Oct, 2006
Posts: 126



Thanked: 1 times
Dream Kudos: 50
My Contributions
I would use either c++ due to the openGL or java.
User is offlineProfile CardPM
+Quote Post

1lacca
RE: 2D Games Aspirant
13 Sep, 2007 - 11:15 PM
Post #4

code.rascal
Group Icon

Joined: 11 Aug, 2005
Posts: 3,822



Thanked: 12 times
My Contributions
Java has an extensive set of image and graphics manipulation functions built-in, which makes it quite straightforward what to use (just quite, because there are many extensions that shade the picture a bit). Anyway, very good documentation and tutorials are available, so I would recommend it.
For C++ there are many libraries, so you can probably find one that suits your needs, however documentation quality is very fluctuating.
However if portability and platform independence is a goal, Java it is easier to implement in Java - not impossible with C++ either, but a little bit more work.
C# is an interesting option, but I think it's somewhere inbetween, but I've never used it for such purposes, so I can't talk about my experiences here.

Finally, you've asked about 2D, but it can still indicate that you need hardware acceleration to look nice. OpenGL is clearly a way to go for platform agnostic things, and it can be used in any of the languages mentioned above. DirectX (afaik) is not available in Java, and if it would be it wouldn't make any sense, because it would run on windows only. It is a bit harder maybe to learn, and it wouldn't have much advantage in 2D anyway.
For sounds and music OpenAL is also a platform independent solution, and it is available for each of these languages.
User is offlineProfile CardPM
+Quote Post

Daiken
RE: 2D Games Aspirant
23 Sep, 2007 - 02:18 AM
Post #5

New D.I.C Head
*

Joined: 22 Sep, 2007
Posts: 27


My Contributions
QUOTE(KoolDa @ 13 Sep, 2007 - 02:16 PM) *

I have minimal experience in C++ (upto but not including Classes).


I doubt you will get around classes or any object oriented concepts for that matter, if you want to design an entire game in an object oriented language like c#.

If you are serious about this and you start writing code without knowing these concepts you will find a few weeks down the road that you will have to re-do everything.
It will be so much easier to create a basic entity/monster class and then have let's say a skeleton or spider class inherit the properties and methods from that base class.

Otherwise you'll have to re-teach every single entity in your game how to move and so forth.

This post has been edited by Daiken: 23 Sep, 2007 - 02:19 AM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 12:14AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month