RetroX
|
|
Reply #15 Posted on: April 26, 2011, 04:50:07 pm |
|
|
Master of all things Linux
Location: US Joined: Apr 2008
Posts: 1055
|
Bump. Format proposal: - ZIP Archive
- First file that's added to the archive is named enigma-package and is empty. Used for unique ID. By "first," I don't mean just in the root; I mean the actual file in the file table, and added into the format first before anything else.
- enigma-settings.ey (in the root dir) contains basic game settings without definitions and kin (stored in separate files, maybe a conf dir?). Specific systems can be provided for use (for example, if the game requires OpenGL or must build to Windows), or "native" to indicate the default. When loaded, if the systems cannot be built to, an error is returned on load, but the project is still loaded.
- In the root, there is one directory for each resource type. Inside each directory are two directories - one named "data" and one named "settings," where the "settings" directory stores .ey files for the resources and the "data" directory stores the actual resources. For things like objects or rooms, the settings would hold basic information and the data would hold code and object locations. Resource directory names are specified by each LGM resource plugin, when they're made. The defaults are built-in already.
- In the "data" directory, data for individual resources are grouped into directories. For example, the multiple frames of a sprite are in a subdirectory.
|
|
« Last Edit: April 26, 2011, 06:39:46 pm by IsmAvatar »
|
Logged
|
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)Why do all the pro-Microsoft people have troll avatars?
|
|
|
|
RetroX
|
|
Reply #17 Posted on: April 26, 2011, 06:50:57 pm |
|
|
Master of all things Linux
Location: US Joined: Apr 2008
Posts: 1055
|
Well, I was assuming that whitespace definitions would only be temporary; in the end, it would end up being just another resource. But that's not the case now.
I think that the best thing to do would be to create a config directory that has the icon/progress bar images as PNGs and a whitespace definitions.h. In addition, I think that each resource should be modular; in other words, iteratively looped through. I think that, eventually, it might be a good idea to make "Systems" modular as opposed to the ugly system that we have of the *_Systems folders.
|
|
« Last Edit: April 26, 2011, 07:27:12 pm by IsmAvatar »
|
Logged
|
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)Why do all the pro-Microsoft people have troll avatars?
|
|
|
Josh @ Dreamland
|
|
Reply #18 Posted on: April 26, 2011, 08:21:03 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Why do we need a data and settings directory? They should just be thrown into the resource's directory, with a manifest file.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|
Josh @ Dreamland
|
|
Reply #21 Posted on: April 26, 2011, 11:21:57 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
If they had the contents sorted by name, they would open the directory to find a list of pairs of text and binary files. sprite0.ey, sprite0.png, sprite1.ey, sprite1.png. It'd look fine, and it'd save moving back and forth between folders to make sure both are correct.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
Josh @ Dreamland
|
|
Reply #23 Posted on: April 27, 2011, 12:23:16 am |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Or, say, a layered PNG? Most of the reasoning behind the PNG spec is how extensible it is. We could easily invest in a reader-friendly way to animate PNG.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|
|
|