Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Java Programman

Name: Anonymous 2011-03-21 8:36

So, I've played around with the Properties class in Java to set defined variables in a file.

I am making a console based RPG with multiple classes.
I was wondering, how would I keep stuff like monster and item attributes as files, instead of generating them every time I run the program? Would make it easy to add items just by adding a file and some attributes. I guess I could use properties for that too, but, no, I don't think I'd like that.

Things like text, inventories and what not.

How do you achieve this with Java, or other programming languages?

Name: Anonymous 2011-03-21 8:39

Java
ONE WORD FACTORYFACTORY THREAD OVER

Name: Anonymous 2011-03-21 8:42

>>2
goddamn, that actually is a class isn't it

Name: Anonymous 2011-03-21 8:58

Use serialization.

Name: Anonymous 2011-03-21 9:02

>>4
Well, that's obvious, but how do you format the files?

Any good pointers?

inb4 "however u like hurdurr"

Name: Anonymous 2011-03-21 9:39

>>5

0xFFFFFFFFF

Name: Anonymous 2011-03-21 9:53

>>4
Java
$Use sterialization.

Name: Anonymous 2011-03-21 9:59

>>6
Fuck off, Rand-- actually that's from when xkcd wasn't totally abhorrent, I'll let you off.

Name: Anonymous 2011-03-21 10:02

>>1
You could try studying existing works such as Stendhal Online http://arianne.sourceforge.net/game/stendhal.html

Name: Anonymous 2011-03-21 10:27

Great suggestions, will read.

Name: Anonymous 2011-03-21 10:43

console based RPG
Java
How?

Name: Anonymous 2011-03-21 10:44

>>10
I am penetrating your anus with my hard black dick. take this, white boy! take my black load oh yeahhhhhh

fucking fag

Name: Anonymous 2011-03-21 12:05

>>12
|implying I'm white

Name: Anonymous 2011-03-21 12:39

>>13
cool quoting, bro

Name: Anonymous 2011-03-21 12:54

| | | | | | | | | | OMG IM AN FAGET I SPAM U'RE BOARD

Name: Anonymous 2012-11-25 14:09


Don't change these.
Name: Email:
Entire Thread Thread List