I figure I would write "insert_town_name_" as the filename under a package called "town".
Anybody do things differently?
I am writing the game in Java.
I figure I would write "insert_town_name_" as the filename under a package called "town".
Anybody do things differently?
I am writing the game in Java.
That would really depend on what the town names are for. Are you talking about towns as locations in your game? A list of towns that come up in NPC chatter? A list of default names for a Civilization clone? Is there any other data associated with the names like nation, population, resources or climate?
I always name my children after GUIDs, if you save each town by name everyone is going to cal their town "cocktown"... or is that just me.
That would really depend on what the town names are for. Are you talking about towns as locations in your game? A list of towns that come up in NPC chatter? A list of default names for a Civilization clone? Is there any other data associated with the names like nation, population, resources or climate?
I am writing a small scale version of Legend of Zelda similar to the NES version using the Java language.
Say, if I was to make a small scale Pokemon game with towns: would the naming conventions apply to Legend of Zelda.
Short answer: it doesn't matter if you name the towns yourself and it is a single player game. (You could call them town01, town02, etc.)
If it's a multilplayer game and anyone can name a town use a GUID.
Short answer: it doesn't matter if you name the towns yourself and it is a single player game. (You could call them town01, town02, etc.)
If it's a multilplayer game and anyone can name a town use a GUID.
What do you mean by GUID?
Did some research and apparently it says: Globally Unique Identifier. Is this what you are referring to? Referring a town name by 128 bit number?
I'm not even sure what that means.
I figure I would write "insert_town_name_" as the filename under a package called "town".
Ok, so I guess it means you have a stored file "New York.resource" for modelling New York city.
This will come handy for managing the assets but I would never, ever pull a resource name from a file name.
Just have a property in the data structure and use it as a city name. It's pure data and really irrelevant to the game as long as it's coherent.
I have no idea what most messages are talking about either... referring to towns by GUID? That's nonsense, in Java we can just have a reference to each city we need, every time we need, or an index to the resource slot. GUIDs are often overkill.
I have no idea what most messages are talking about either... referring to towns by GUID? That's nonsense, in Java we can just have a reference to each city we need, every time we need, or an index to the resource slot. GUIDs are often overkill.
Ah ok, I guess I understand now. In that case however I'd suggest the use of serialization slot indices (UIDs local to the resource being streamed).
Hmm... Well, you could serialize your town objects. In that case, each town would have a name field. So then the actual name of the file wouldn't matter, you would load your twn01.dat file, transforming it to an object, and read its name field.