Let's say you have a game where people challenge others to some kind of deathmatch. When two people decide to have a duel, they get teleported to a separate map.
A problem with that however, is that if there are already some people dueling in that map, you have to wait until they're done before those people can start.
The solution is to dynamically create a new map to the heap. So when someone challenges another to a battle, a variable holding the map they play in gets dynamically allocated so they get teleported to an empty map. But how?
Say you have the maps:
Lobby.dmp
Arena.dmp
If you're currently in Lobby, how would you write a verb so that a new map of Arena will be created and teleport you to it?
ID:164759
Apr 20 2007, 9:17 am
|
|
- GhostAnime