Hot answers tagged

3 votes
Accepted

Is it possible to store ALL game data on the sever side

It's not an approach worth to use. For a normal player it may not be a big deal but some people may try looking into the game files to find various information. Even if you download the content at ...
Ferreira da Selva's user avatar
3 votes
Accepted

What is the optimal way to store customisation options?

With the notable exception of massive-multiplayer games (persistent world shared by thousands of players), relational databases are very rarely used in game development. In a single-player game, there ...
Philipp's user avatar
  • 119k
3 votes

Disc based storage medium

Many games get bought on the internet. Stuff like the Call of Duty Infinite Warfare and Modern Warfare bundle simply won't fit on a CD (They take up together around 200Gb), or the new version of GTA ...
Bálint's user avatar
  • 14.9k
3 votes
Accepted

What tile storage method is best for tile-based game?

There is never one best method. Only the method which works best for you and your game. But most tile-oriented game engines I know use a 2d array of integer values for each static map layer where ...
Philipp's user avatar
  • 119k
2 votes
Accepted

Best practice to store level data in a rhythm based game

Well, either one of them can be authored with existing tools, which is always a good thing. When I was making a rhythm game, I determined that it would be easier for me to just make my own format with ...
Nox's user avatar
  • 890
2 votes
Accepted

How should I store a procedurally generated grid level of an infinite size?

Break the grid into chunks of 2d map. If you have some bounds theb store these chunks in a higher level grid and read/write the chunks to disk as they come in and out of the active area. If you truly ...
Steven's user avatar
  • 3,062
2 votes
Accepted

How to securely store xml/json information about actors in a game?

You could use JSON and zip it with a password (encrypt), then use a runtime zip library like DotNetZip to extract it for inspection by the game only, no-one else. Or you could access it on a secured ...
Engineer's user avatar
  • 29.4k
2 votes
Accepted

Disc based storage medium

I'm sure there are any number of approaches, these are some of them: Compression: reduce the space need on the disc at the cost of retrieval+decompression later which costs cpu usage and time ...
Jeremy Harton's user avatar
1 vote

Error using Asset Manager for loading files from Android temp directory (libgdx)

I solved it. The problem was the FileHandleResolver asociated with the Asset Manager. The default is internal. What I did is create two Asset Managers inside my MyAssetManager class. One for absolute ...
Pablo Ajo's user avatar
1 vote

Client Side Game Local Storage

Local Storage is very similar to how cookies work. It's basically saving some data locally. These data are only accessible to the same browser on the same machine only. It may be possible for some ...
Tom Tsagkatos's user avatar
1 vote

How to store information about a simulated sport match in a browser game?

Most pseudorandom number generators can be initialized with a seed value. When you initialize it with the same seed, you get the same sequence of random numbers. That means even an algorithm which ...
Philipp's user avatar
  • 119k
1 vote

Redux-like storage in GD

Yes, I'm currently making a game using React + Redux (check it out here). It would be better for a variety of reasons to using something like Unity in the long term, but for now, this is just my ...
AndrewSteinheiser's user avatar
1 vote

How can I boost cache performance when storing objects in a scene with managed languages?

Ordering the data is going to depend on existing data access patterns for your application. Profile first, and see what areas of execution are taking the longest as a result of cache misses. Once you'...
Engineer's user avatar
  • 29.4k
1 vote
Accepted

Storing large amounts of voxels in file

I store the voxel values(-1 to 1 range) in a volume texture 512 x 512 x 48 and just convert the 16bit floats to a byte like this value*255 and then write that out to disk and then when I come to ...
Justin William Stanley Bryant's user avatar
1 vote

How flat-file and databases compare in games development?

I'll focus on answerable bit of the question: I can't see why an entire database system would be implemented just to read a few saved variables, but at the same time, if it's more efficient or ...
Kromster's user avatar
  • 10.6k
1 vote

Is std::deque the best option for storing my graphics objects?

I am assuming you are using something like OpenGL for your graphics (Correct me if I am wrong about this), so a typical, minimal data structure for rendering a game object would be: ...
Ian Young's user avatar
  • 2,649

Only top scored, non community-wiki answers of a minimum length are eligible