Can I write a browser game only using Java?

Started by
11 comments, last by WoopsASword 7 years, 10 months ago

I just finished my first year in College where we each made a simple platformer game as our final project using Java.

I aspire to make a browser game that I have planned out well, but I don't know any other languages (except for HTML and CSS basics).

At the moment I have no idea how to transfer my current knowledge to a browser based game but I'm sure I'll find plenty of tutorials, but what I first would like to know is this even possible. What other languages do I need to know, or should I drop Java and try to learn another language for the process? And most importantly, what kind of topics should I research first.

Thank you.

Advertisement

Please don't. JRE (and plugins) is a huge annoyance for users. You may want to look into JS and the HTML5 canvas instead. There's plenty of material available for that. Just google HTML5 game development and see what comes up.

void hurrrrrrrr() {__asm sub [ebp+4],5;}

There are ten kinds of people in this world: those who understand binary and those who don't.

http://www.gwtproject.org/

And libGDX supports it, which is a game development framework for Java.

EDIT: God the GWT site sucks at explaining what it is, its a toolchain in which you can code in Java (under some restrictions), then compile that to JS/HTML/etc to deploy a web application.

[randomrant] All web-related libraries have sites that spew 90% fluff and no actual "Here is the actual stuff this fucking thing does" explanation [/randomrant]

"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"

My journals: dustArtemis ECS framework and Making a Terrain Generator

As Khatharr said, HTML5's canvas system, and JS are the way to got for front end, however if you are looking to make it multiplayer you could use your Java knowledge there for the server. I am a lead dev on WarIn.Space, and this is the system that we used for this. Bare bones, only basic libraries. if you would like any help with it let me know.

Yes you can, using the built in Java Applet

Please note that a lot of folks do not have Java enabled in their web browser.

I cannot remember the books I've read any more than the meals I have eaten; even so, they have made me.

~ Ralph Waldo Emerson

As Khatharr said, HTML5's canvas system, and JS are the way to got for front end, however if you are looking to make it multiplayer you could use your Java knowledge there for the server. I am a lead dev on WarIn.Space, and this is the system that we used for this. Bare bones, only basic libraries. if you would like any help with it let me know.

You really are a white knight

Yes you can, using the built in Java Applet

Please note that a lot of folks do not have Java enabled in their web browser.

I strongly advise against this. Java Applets are a huge security hole, not to mention the negative reputation they have. Much better just to go with LibGDX. Code everything in Java and deploy to HTML5/JS, Android, iOS, PC, Mac, Linux and who knows what else.

Yes you can, using the built in Java Applet

Please note that a lot of folks do not have Java enabled in their web browser.

I strongly advise against this. Java Applets are a huge security hole, not to mention the negative reputation they have. Much better just to go with LibGDX. Code everything in Java and deploy to HTML5/JS, Android, iOS, PC, Mac, Linux and who knows what else.

^^^ This

I wrote the book on Java game programming, and even I say don't try this. Your time is better spent literally doing anything else.

I think, therefore I am. I think? - "George Carlin"
My Website: Indie Game Programming

My Twitter: https://twitter.com/indieprogram

My Book: http://amzn.com/1305076532

Oracle will Kill applet browser plugin with java 9...

"Recursion is the first step towards madness." - "Skegg?ld, Skálm?ld, Skildir ro Klofnir!"
Direct3D 12 quick reference: https://github.com/alessiot89/D3D12QuickRef/

Thanks for the replies guys.

EDIT: God the GWT site sucks at explaining what it is, its a toolchain in which you can code in Java (under some restrictions), then compile that to JS/HTML/etc to deploy a web application.

Are you saying that this is an okay way to go about this, converting a Java game into different languages using GWT, or should I just suck it up and learn JS + HTML?

This topic is closed to new replies.

Advertisement