Jump to content

Need suggestion about C++ game


tipforeveryone
 Share

Recommended Posts

I want to create a game in which

  1. I can choose Weapons and add them into player's inventory in a sperated map (call "loadout.map")
  2. That loadout can be saved (player can name the saved one as "recon kit", "assault kit" etc..) or select as active loadout.
  3. When a mission map is loaded, player will load saved loadout to play

Which is the best way to achieve this ? please give me a direction, and yes, C++ way. :)

The main question is about save and load process, should I use database ?

Link to comment
Share on other sites

I'd use a class to store the information;

class LoadOut
{
private:
	string saveTitle = "Assault Pack";
	vector<(type)> weaponsList;
public:
};

This will work for saving between map loads.  If you want to save between games you can use the Leadwerks FileSystem to save the list to a file.

Is your players inventory in LUA though?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...