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