noob question about programming language

Discussion and feedback on Construct 2

Post » Fri Mar 13, 2015 12:03 pm

I am not programmer, but would it be possible to use the event system and to be tranlated into pure java code so it can export natively . Why they are all using html5? Sorry for noob question
B
11
S
3
G
1
Posts: 419
Reputation: 1,782

Post » Fri Mar 13, 2015 1:04 pm

It's all HTML5 so you can easily export to all different kind of platforms, as html5 is widely supported. Search the forum, there are already a lot of topics about native exporters. If you need a good java game engine try libGDX http://libgdx.badlogicgames.com/
B
11
S
2
Posts: 213
Reputation: 1,266

Post » Fri Mar 13, 2015 2:12 pm

Hello @ex32,

I am a programmer. I mainly work in Java and Javascript. To answer your question, it is possible. However, it is quite difficult and time consuming to create native exporters. The overhead of creating an exporter that could handle all the different systems Construct 2 supports would really take away from the progress of the program. All the great features getting added all the time would have to be put on hold each time a new feature was added just to ensure it worked properly with all supported languages. While Java and Javascript kind of sound like the same thing, they really aren't. In many instances they use completely different methods to accomplish the same tasks. Also, you specifically mentioned making a Java exporter to handle different systems natively. Even just a Java exporter would still take a lot of effort because many devices (Android, Blackberry, PC) that use Java require different code libraries. An Android device is programmed using Java but it has very different ways of accessing it's features than a PC and thus needs a different code base.

Since an Html5 game can be supported on all these devices using their built in browsers (or a wrapper that makes the browser look like a native program), the devs decided it would be better and/or easier to create an Html5 game engine. That is all Construct has ever claimed to be and, at least for the foreseeable future, all it will be.

Since you asked specifically about Java, I have just one more point to make. Java programs are not "native" programs. They require a Java Virtual Machine (JVM) to run. A native program is compiled directly to computer language where it can be run directly. Java isn't compiled to computer language. The reason Java can run on so many different systems is because of this intermediary program. In truth, the way Construct 2 exports to different systems is exactly the same. Java has just had more years to optimize it's performance.
B
40
S
12
G
11
Posts: 331
Reputation: 7,752


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests