Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

ChainedHollow

Member Since 16 Aug 2012
Offline Last Active Apr 21 2013 03:03 AM
-----

#5055386 Using a database in a game or just multiple objects?

Posted by ChainedHollow on 20 April 2013 - 09:35 PM

I'm working on a game in SDL and C++ with RPG aspects, such as stats, and gear. What I am confused about is how to implement so many different types of gear with different stats. Such as , should each different type of item be a new object in the programming, or should is it somehow possible to create a database I can use and update at later times when I want to add new items to the game. I've also heard about scripting and XML but I am just not sure where to go with this. (I'm still pretty new to all this, all I've done so far is Blackjack, tetris, and pong.)

 

Basically I just need a way to describe an item. Give it a name, what type of clothing it is(head piece, gloves, etc.), and what stat changes it provides. Then in the game be able to grab the information and use it to alter the player's stats. 

 

If someone can point me in the right direction I'm sure I can figure out some way to implement this properly. 

This is my first original game idea and I'm still in the planning stages really. Thank you for any advice and help!




PARTNERS