Jump to content

  • Log In with Google      Sign In   
  • Create Account


ChainedHollow

Member Since 16 Aug 2012
Offline Last Active Jan 29 2014 12:44 PM

#5125253 Pass entire vector of objects to constructor by reference?

Posted by ChainedHollow on 21 January 2014 - 12:07 AM

Thank you so much! It hit me after you asked what the type was. Pointers and references do still confuse me a bit but I am trying! Thanks for the help!




#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