Solved

Is javax.swing good enough for pro quality RTS?

Posted on 2014-07-26
4
186 Views
Last Modified: 2014-08-06
Hi
Many of you know I am working on an RTS

All current RTS games are in 3D.

In my senior year, I made a 2D RTS, which was no problem in java.awt. But, I didn't have units on top of scenery graphics, just on a white Frame, as it was a networking exercise, really.

Even tho I am on the indy RTS trajectory, is javax.swing powerful enough to handle full screen 3D animated game graphics? I'm sure I don't even anticipate how amazingly complicated it is, but is it doable? for all platforms the same quality, Windows, Mac?
Thanks
0
Comment
Question by:beavoid
  • 2
  • 2
4 Comments
 
LVL 27

Accepted Solution

by:
dpearson earned 500 total points
ID: 40221756
The simple answer is "no".

The only professional grade game I know of that uses a Java front end client is Runescape (http://www.runescape.com/).
They initially did it as a Java applet - not sure what tech the front end is today.  But it's definitely the exception, not the rule and it's an RPG not an RTS (so much lower processing requirements).

Doug
0
 

Author Comment

by:beavoid
ID: 40227816
Really.
Thanks
What would your instinct say?
RTS unit mpeg and jpeg tile handling scenery is doable in a JFrame?
Maybe if I personally flip through the animation frames in code?
0
 
LVL 27

Expert Comment

by:dpearson
ID: 40233405
You can certainly build it and make it run using Swing.  But will it be high quality?  I would think not - at least you'll need to work very very hard to make the frame rates reasonable.

Doug
0
 

Author Comment

by:beavoid
ID: 40237860
Hi Doug. Thanks for the sobering truth!

Also, :) read this..
I have been reexamining this cunning plan to do state on the server (safe server). I have all the build-up pre-game parts working.

Does a safe server need to run on its own machine? My safe servers always explode if I mix server and client on one machine. Will I have enough machines to run servers on for all my players globally?
Let's say, unlikely, but even so, if I got 1,000 simultaneous games in play. I'd need 1,000 server machines? That sucks, what about millions of games? I guess that's why Blizzard and Microsoft do server on one of the client machines, for a packet distributing server gameplay - which is how my first RTS worked, btw, and it was relatively uncomplicated. What if my game created, in web-start, from my own code in a certain server.class file on my web-server-directory , the client's play-window? - So that that player had to play from my code?

Is there any way to stifle hackable play? without needing thousands of server machines!
If I create my SAFE server on a client machine, it explodes with so much networking. So, that's no good.
This is hopeless.
:)
Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Artificial Intelligence comes in many forms, and for game developers, Path-Finding is an important ability for making an NPC (Non-Playable Character) maneuver through terrain.  A* is a particularly easy way to approach it.  I’ll start with the algor…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question