chot
11-03-2005, 11:28 AM
hi, im considering two choices for loading and storing a map/level into my game;
1. have all containers "global" in the game, like if you (theoreticly then) would load two levels at the same time, all their objects would be put in the same storage and nothing would work
2. have a "map" object that stores all the information of the map, so that (again theoritcly, one would never actually do this) your able to load two maps at the same time
now, its a bit more work to implement the second approach, but its more general, but since two levels is never ever going to be loaded simultaniously its quite useless.
on the other hand, the second approach would most certanly make the programming more general and easy to understand
i would like to hear your point of view of this problem, and is there any third approach that ive forgotten?
thanx in advance
/chot
1. have all containers "global" in the game, like if you (theoreticly then) would load two levels at the same time, all their objects would be put in the same storage and nothing would work
2. have a "map" object that stores all the information of the map, so that (again theoritcly, one would never actually do this) your able to load two maps at the same time
now, its a bit more work to implement the second approach, but its more general, but since two levels is never ever going to be loaded simultaniously its quite useless.
on the other hand, the second approach would most certanly make the programming more general and easy to understand
i would like to hear your point of view of this problem, and is there any third approach that ive forgotten?
thanx in advance
/chot