Hello~!
I’m new to Game Programming using Java, and I’m sort of kind of just playing around with various tutorials to grasp the concepts of using Java to create Games.
There is one thing I’m having a little trouble with, and I was hoping someone could shed some light for me.
[b]First[b]
Are there any tutorials specifically to learn how to create RPG games using Java?
I’ve tried to use Google, but of the 1928390182630916208 billion websites on game programming, only about 200 are written in Java, and of those 200, only about 3 are specific to RPG games >.< (common sense, and yes, im exaggerating)
Disclaimer: Yes, I do realize Java is already not the best option for creating games, let alone RPGs. I simply enjoy the challenge; and yes, I do have knowledge of the Java (and many other) language(s).
[b]Second[b]
I realize that’s a TON of code (well, at least a good chunk), so I won’t ask anyone to “code for me”, but can someone perhaps give me a detailed, step by step explanation on how I should go about creating an inventory class that is easy and effective?
I suppose I could create an inventory method:
inventory( ADD, “Herb”, 1); //add or delete, name, quantity
To add the item, I would create an object of class Item:
Item item = new Item( “Herb”, “Description of Herb”, 50, 200, 0 ); //name, description, buy value, baseValue, type
How would I go about deleting that?
Item item = new Item( “”, “”, 0, 0, 0 ); <== override object item?
^ that wouldn’t delete it though right? If I were to view the player’s inventory, I think I’d just see a blank line. rawr