hey i am making a game and decided that i want to put a load/save option in it and was wondering if anyone here knew how to do this, (the program has to be able to close, open again and load the progress from before). I am running in windows using Borland editor 3.
evilsilver
0
Junior Poster in Training
Recommended Answers
Jump to PostIt depends heavily on how your game works. For the most part, all you need to do is save relevant information about the player such as stats, items, and location. Then you can rebuild the current game state upon load.
Jump to PostThere is a very nice fstream tutorial right here on DaniWeb at:
http://www.daniweb.com/tutorials/tutorial6542.htmlIt shows in detail how to write and read data to a file.
All 7 Replies
Narue
5,707
Bad Cop
Team Colleague
evilsilver
0
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
prog-bman
4
Junior Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
evilsilver
0
Junior Poster in Training
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.