0
votes
1answer
239 views

Where to save enemy positions in C++?

I'm wondering how and where to save the positions my enemies should spawn. My idea was to use a struct such as: struct enemy{ int x,y,type; } And save an array of it in a .dat with fwrite() ...
21
votes
3answers
2k views

Should I use text files for my save data?

My question is whether or not I should use text files to save my game data. I have some basic concerns over doing this: There's really no way to protect the data, and thus, the user could screw up ...
0
votes
1answer
438 views

C++ formatted serialization [closed]

I've decided it's time to implement serialization in my simple engine but this has caused me many headaches for the past couple of days/weeks. My engine uses an entity/component based approach similar ...
20
votes
6answers
12k views

How do I create a save file for a C++ game?

I am coding my final for a Video game Programming course, and I want to know how to create a save file for my game, so that a user can play, and then come back later. Any idea how this is done, every ...
6
votes
5answers
1k views

What is Serialization?

I have been around programming for a while as a hobby, but I did not start seeing this concept until recently. I have google'd "what is serialization" numerous times, but I never actually get any sort ...
11
votes
5answers
15k views

What are good solutions for serialization in C++?

I'm curious what solutions game developers have come up with for serializing the different types of data that they deal with for their games. Do you guys use some monolithic GameObject hierarchy that ...