Page 1 of 1

Why learn another language?

Posted: Sat Jul 19, 2014 3:38 am
by Script47
Well this may seem like a weird thread but I was considering this and I wanted some insight off some of you. I packaged up an HTML, CSS and JavaScript application which I made for the web as an EXE file format (I've ran it and it works fine). Now my question is, why learn languages like C++ or Java for game development when you can use these? I would compare CubicVerse (made by A_B). Lets say he wished to make it for PC (and executable file), why not just package it all up like I did? Why rewrite it all in another language? Not saying A_B is doing this, just giving an example as his game which is impressive, big and uses the above languages came to my head. I get that you wouldn't be using the full PC's available hardware but in terms off 3D you have loads of library's one can use. So why learn those hard and sometimes annoying languages like C++ or Java?

Re: Why learn another language?

Posted: Sat Jul 19, 2014 12:26 pm
by a_bertrand
Java besides for android development is quite certainly a bad choice for game development. Anyhow you would pick C++ to be as fast as possible. Also the big game engines are all written in C++.

HTML and js while being much better lately they are far far away from offering what you would want. Sure you can make games with it. But that doesn't mean it's a comfortable solution.

Re: Why learn another language?

Posted: Sat Jul 19, 2014 12:57 pm
by vitinho444
Yeah well HTML is made for web for a reason ( i like to think ), and that EXE compact is not "natural" imo, so you may have some performance issues no?
So yeah each thing has its focus, let it be i guess :)

Re: Why learn another language?

Posted: Sat Jul 19, 2014 1:44 pm
by Script47
vitinho444 wrote:Yeah well HTML is made for web for a reason ( i like to think ), and that EXE compact is not "natural" imo, so you may have some performance issues no?
So yeah each thing has its focus, let it be i guess :)
Yeah, it needs to be optimized a little bit more but then after that you wouldn't be able to tell a difference.

Re: Why learn another language?

Posted: Sat Jul 19, 2014 3:09 pm
by hallsofvallhalla
HTML5 is no where near where it needs to be to compete with C++ or even .NET when it comes to 3d and shaders.

Re: Why learn another language?

Posted: Sat Jul 19, 2014 3:24 pm
by Script47
hallsofvallhalla wrote:HTML5 is no where near where it needs to be to compete with C++ or even .NET when it comes to 3d and shaders.
Maybe not, but in terms of 2D games it is fine right? So why don't people use it?

Re: Why learn another language?

Posted: Sat Jul 19, 2014 4:06 pm
by vitinho444
Script47 wrote:
hallsofvallhalla wrote:HTML5 is no where near where it needs to be to compete with C++ or even .NET when it comes to 3d and shaders.
Maybe not, but in terms of 2D games it is fine right? So why don't people use it?
I think C++ and a graphics lib should be faster than html5 :)

Re: Why learn another language?

Posted: Sun Jul 20, 2014 12:33 am
by Jackolantern
Script47 wrote:
hallsofvallhalla wrote:HTML5 is no where near where it needs to be to compete with C++ or even .NET when it comes to 3d and shaders.
Maybe not, but in terms of 2D games it is fine right? So why don't people use it?
They do use it for 2D games. Lots and lots of them. It is probably the most popular game development platform in the world today. An estimated 25% of all mobile apps are being made with HTML5 today, including games, Flash took a pretty fast nosedive after Adobe Edge was announced so HTML5 owns browser-based games, pretty much all mobile OS after Android use HTML5 as a first-class development platform, etc.

Re: Why learn another language?

Posted: Sun Jul 20, 2014 2:27 pm
by a_bertrand
There is still a huge difference in terms of speed between C++ and HTML even for 2D. Sure it depends on your requirements.

Re: Why learn another language?

Posted: Sun Jul 20, 2014 9:27 pm
by Chris
A programmer should never restrict themselves to one language. Do not question this, that's the way it is.