Game Development Community

Storage, banking, or whatever you wanna call it

by Charlie Higdon · in Game Design and Creative Issues · 01/19/2009 (2:22 pm) · 1 replies

I've tried looking up storage and the likes, and I can't seem to find any mention of it anywhere.

I was looking for some sort of "leave your items in this box/container/whatever" resource. Has anyone seen or heard of a resource, or thread about this? Maybe storage, and banking aren't the best search terms.

Just a basic banking type deal.

#1
01/19/2009 (3:56 pm)
You could do this in a couple of ways. You could just store records of this information up above the levels, so when the levels are destroyed, the items aren't. Also, you could just save it to a file and open it when needed (such as if the bank is not going to be accessed frequently. The former would be faster and takes RAM, the latter is slower, takes less RAM.

It's important to not look at problems in such specific terms. When you distill this problem, you're looking to hold onto some game data and that's it. That it's in a bank is no different than most other data except that you want to keep it longer.