Jump to content
  • Advertisement
Sign in to follow this  
Electronaut

Another X vs. Y thread: Java + GWT vs. JavaScript

This topic is 2047 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

I have recently come up with an idea for a game. I am more of an instant gratification type of person, so I realize that it may be best to start making the game by myself in a basic form rather than applying for a game tester job and trying to work my way up the ranks, especially since this is more of a hobby at this point.

Anyway, my goal is to make a browser based text RPG with artwork from a friend implemented later on. I'd like it to be functional in most web browsers and smartphones. After doing a little research, I found that the Google Web Toolkit would be a great way of doing that. However, it seems to be using Java, and from what I understand, JavaScript is a language better suited for web design when it comes to a beginner like me. I have very basic knowledge of programming (HTML) and I have started going through the Java tutorial, but I am afraid it may end up being something that may be outside of my learning capabilities. Right now I have 3 day weekends and nothing better to do, so I have a good chunk of time available and I'd like to fill it as soon as possible.

So my question for those who may be experienced with one or both of these languages is: What would be a better option for what I intend to do?

Thank you

Share this post


Link to post
Share on other sites
Advertisement

Java is better for beginners than JavaScript because you don't have to learn HTML and you get consistent compilation to bytecode instead of randomly not working on a certain browser with a certain combination of plugins.

Share this post


Link to post
Share on other sites

If you like instant gratification you may be better off with something simpler to use and more visual such as Construct 2 or Game Maker (or perhaps the free alternative ENIGMA, but I don't know much about it).  These types of packages are pretty capable and would be more than able to handle a text based RPG with simple graphics, and they're able to target all the platforms you're interested in.  You would also find it much more approachable, especially if you've been struggling with your initial programming efforts.  Both have free trial versions and are pretty reasonably priced.

 

Otherwise if that doesn't interest you I'd probably agree with the above that Java may be the simpler of the two options for you to get started with.

 

 

Hope that helps! smile.png

Share this post


Link to post
Share on other sites

I would like to point out that if you create the game with javascript, you can run it in the browser. If you go with something like libGDX then you are writing it in Java and converting it into javascript, so there are more layers to confuse you, but you can support many different platforms.

However, this doesn't address the problem of creating a fun game. I am of the belief that if your prototype game with crappy graphics and hacked UI is not fun, no amount of polish is going to help. So going with a framework like libGDX or GameMaker to prototype as easily as possible is a good idea. Once you have the game it is a lot easier to port it to different platforms. Until you know what you've got you might not even be sure which platforms should be supported.

Just my two cents.

Share this post


Link to post
Share on other sites

Learn JavaScript.  It's a pretty easy language to learn because it has loose typing, and it is the "native" browser langauge.  I've used GWT and found it to be cumbersome and annoying.  Do things the right way.  Also, if you do it in JavaScript, it will be supported in mobile browsers.

Share this post


Link to post
Share on other sites

Thank you so much for the replies, everyone. I'm trying out Construct 2 right now, it's pretty fun. This is a lot more encouraging than drudging through those Oracle tutorials, haha. I really appreciate everyone's input.

 

If I end up making something interesting I'll keep this thread bookmarked and post it here.

 

Cheers and thanks again.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!