|
by Mysterio 08/13/2014, 3:17am PDT |
|
 |
|
 |
|
Ice Cream Jonsey wrote:
At this point in my life, the "rush" is coming from getting an engine going. I'm a little mentally drained on Cyberganked because, having created an RPG engine in a text adventure language, I want to do it in a proper language like Java. But I don't know how to get tiles up on the screen in Java. Maybe people use Swing for that. It seems like it shouldn't be too hard. I dunno.
Swing/AWT gives you a "canvas" to draw on and a window to put it in, but you need something more to actually do the drawing. "Java 2D" is the standard Java API for drawin stuff. It works and is powerful enough to do probably more than enough for your purposes. But it would probably be much slower than something like OpenGL. This may or may not matter to you.
If you wanted to gain skills that you could use with many other languages/platforms, and also make your program easier to port, and just generally be cooler and less like TDARCOS, then you would maybe use OpenGL. Java isn't an ideal language to work with OpenGL in but it's good enough. You'd need an OpenGL library to make it work, beyond just the standard Java libraries. JOGL and LWJGL are well-known ones and either would probably work fine for you. These days, OpenGL is strongly focused around shaders, which are little programs for your graphics card that you also have to write. You would write them in the language GLSL, not in Java. GLSL is somewhat like C and shouldn't be terribly hard to deal with. To make a 2D grid of tiles or whatever would take a pretty simple set of shaders.
In either case, Swing/AWT gives you a way to accept keyboard/mouse input from your drawing window, and to put buttons and textboxes and crap alongside it if you want to.
Maybe SDL is also a thing worth considering? http://www.libsdl.org/ I don't know I never used it but it's popular? And apparently some recent indie games use it http://en.wikipedia.org/wiki/List_of_games_using_SDL but maybe it wouldn't offer a lot in Java, which already gives you a cross-platform standard library that does some of the same stuff |
|
 |
|
 |
|
|
|
RPG Maker VX thoughts: the thread NT by Ice Cream Jonsey 03/21/2014, 1:36pm PDT 
Re: RPG Maker VX thoughts: the thread by Ice Cream Jonsey 03/22/2014, 1:04pm PDT 
Re: RPG Maker VX thoughts: the thread by Ice Cream Jonsey 03/22/2014, 10:55pm PDT 
Watch the videos people make. Infinitely better at answering questions. by Ice Cream Jonsey 08/11/2014, 11:06pm PDT 
There's A LOT of amazing scripts out there by Lurker 15954 08/12/2014, 3:19am PDT 
Also! by Lurker 15954 08/12/2014, 3:23am PDT 
NICE by Ice Cream Jonsey 08/12/2014, 12:04pm PDT 
I recently bought that Tales of Heroes JRPG by Lurker 15954 08/12/2014, 10:16pm PDT 
I would enjoy being on a podcast! by Lurker 15954 08/12/2014, 10:17pm PDT 
Re: I would enjoy being on a podcast! by Ice Cream Jonsey 08/15/2014, 11:49am PDT 
Re: NICE by Mysterio 08/13/2014, 3:17am PDT 
Lemme explain where I'm coming from by Lurker 410942 08/13/2014, 7:26pm PDT 
Protip: never touch swing. Ever. NT by Entropy Stew 08/13/2014, 11:24pm PDT 
I agree with Entropy Stew. Its time has passed. NT by Grebble 09/09/2014, 6:50am PDT 
Shoebox is free. by Gutsby 08/16/2014, 9:41am PDT 
|
|