Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  a JAVA RPG?  (Read 2932 times)
0 Members and 1 Guest are viewing this topic.
Offline Alakazam

Senior Newbie




Java games rock!


« Posted 2004-11-02 16:13:56 »

Hello, though I am new to creating games with JAVA, I'm not new to game creation or Java.  Tongue

My goal is to create a 2D RPG using JAVA. I'm not exactly sure how to go about it, so far I've just been working on my class hierarchies.

I've got a few questions:

-Can you/ how can you save data in such a game?

-Should I use an applet to run this?

-how do I begin to go about setting up 2d graphics?


I have a bit of experience with 2D graphics using C++; I've just never done it in JAVA.
Offline guigui

Junior Newbie




Java games rock!


« Reply #1 - Posted 2004-11-02 16:26:38 »

Hi,

- For saving data, the easiest way is to use the Serializable interface for your game state, you will solve this problem in 1 minute, really
- It is quite easy to make your main class to run as an applet or as an application
- For an intro to 2d graphics, there is a Great tutorial at
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=cluebies;action=display;num=1085398125

ps: sorry about my broken english
Offline Alakazam

Senior Newbie




Java games rock!


« Reply #2 - Posted 2004-11-02 16:34:05 »

I'd perfer it to run as an application: do you know where I can find a tutorial on that, or how would I do it?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline guigui

Junior Newbie




Java games rock!


« Reply #3 - Posted 2004-11-02 16:46:18 »

Quote
I'd perfer it to run as an application: do you know where I can find a tutorial on that, or how would I do it?


If you do not know java at all you'd better to start with the java tutorial or look on google for 'thinking in java', it is a great free book that willl get you started.
btw to run you game as an application you have to declare a method like this :
public static void main(String args[]) {}
Your class has to be public too I think.
Offline Alakazam

Senior Newbie




Java games rock!


« Reply #4 - Posted 2004-11-02 16:48:05 »

I do know a bit of JAVA, but I'm still learning.

I do know how to create a main  :-/ I just thought there may be a different decleration to make it an application, like an exe.
Offline Malohkan

Senior Member




while (true) System.out.println("WOO!!!!");


« Reply #5 - Posted 2004-11-02 23:30:13 »

archiving your application in a .jar file is the step you'll go through after creating your application.  With the proper contents, it'll run by double-clicking it on any machine with Java properly installed.

Admin and Game Developer at
GameLizard.com
Play Rimscape!    |    Play Conquer!
Offline mikera

Senior Newbie




Hear me roar!


« Reply #6 - Posted 2004-11-21 12:26:26 »

I wrote a 2D graphical roguelike RPG to tach myself how to code in Java.

It's now reasonably well developed, and it's fully open source if you want to have a look at some internals:

http://tyrant.sourceforge.net

Offline nonnus29

Senior Member




Giving Java a second chance after ludumdare fiasco


« Reply #7 - Posted 2004-11-21 13:34:36 »

Ahh,  now thats the good stuff!
Offline Lupusdei

Junior Newbie




L'etat, c'est moi


« Reply #8 - Posted 2005-01-05 22:06:52 »

I have been looking for a thread like this for two weeks. Cheesy  I have an application and wanted to be able to run it on a computer with out a compilier. I asked on two other forums but you guys just answered it.  I archive it into a .jar file not a .exe, now I know what I am looking for I can I can finish my program.  Thanks. Oh and I know about applets I can jsut never get them to publish on my page correctly.
Offline Raghar

Junior Member




Ue ni taete 'ru hitomi ni kono mi wa dou utsuru


« Reply #9 - Posted 2005-01-06 17:33:12 »

http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html
And of course a famous command line "java -jar program.jar"
Don't forget to setup manifest properly.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CopyableCougar4 (24 views)
2014-08-22 19:31:30

atombrot (34 views)
2014-08-19 09:29:53

Tekkerue (30 views)
2014-08-16 06:45:27

Tekkerue (28 views)
2014-08-16 06:22:17

Tekkerue (18 views)
2014-08-16 06:20:21

Tekkerue (27 views)
2014-08-16 06:12:11

Rayexar (65 views)
2014-08-11 02:49:23

BurntPizza (41 views)
2014-08-09 21:09:32

BurntPizza (33 views)
2014-08-08 02:01:56

Norakomi (42 views)
2014-08-06 19:49:38
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!