Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (686)
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 3547 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 »


- 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;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 »

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 Devvie

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
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:

Offline nonnus29

Senior Devvie

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 Devvie

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

« Reply #9 - Posted 2005-01-06 17:33:12 »
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.

Dwinin (63 views)
2015-11-07 13:29:08

Rems19 (77 views)
2015-10-31 01:36:56

Rems19 (69 views)
2015-10-31 01:32:37

williamwoles (103 views)
2015-10-23 10:42:59

williamwoles (91 views)
2015-10-23 10:42:45

Jervac_ (105 views)
2015-10-18 23:29:12

DarkCart (131 views)
2015-10-16 00:58:11

KaiHH (114 views)
2015-10-11 14:10:14

KaiHH (153 views)
2015-10-11 13:26:18

BurntPizza (167 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 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‑
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!