Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reimplement resource storage and loading #2

Open
Kiriller12 opened this issue Feb 28, 2024 · 1 comment
Open

Reimplement resource storage and loading #2

Kiriller12 opened this issue Feb 28, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@Kiriller12
Copy link
Owner

We need to reimplement resource storage and loading methods since it is not clear and simple enough to support new features at the moment.

@Kiriller12 Kiriller12 added the enhancement New feature or request label Feb 28, 2024
@Kiriller12 Kiriller12 self-assigned this Feb 28, 2024
@Kiriller12
Copy link
Owner Author

Kiriller12 commented Mar 5, 2024

I think, this directory and file structure might be a good fit for this project.

Directory structure
	Data
		Shaders
			geometry.vert
			geometry.frag
			pointLighting.vert
			pointLighting.frag
			final.frag
			...
		Levels
			<name> folder or <name>.lvl zip archive
				metadata.json
		Models
			<name> folder or <name>.mdl zip archive
				metadata.json
				model.<3D model extension>
		Textures
			fallback.png
			texture.<image extension>
			...
		Animations
			animation.<animation extension>
			...
		Musics
			music.<sound extension>
			...
		Sounds
			sound.<sound extension>
			...
		Scripts
			script.lua
			script.luac
			...
		Videos
			video.<video extension>
		Localizations
			<name> folder or <name>.lng zip archive
				metadata.json
				font.<font extension>
				texture.<image extension>
				...
		<package name>.dgp zip archive
			Packed data archive. Can contain various data using directory structure mentioned above.
			For example:
				common.dgp
					Shaders
						geometry.vert
						geometry.frag
						pointLighting.vert
						pointLighting.frag
						final.frag
						...
					Textures
						fallback.png
						...
				game.dgp
					Levels
						...
					Models
						...
					Textures
						...
					Musics
						...
					Sounds
						...
					Scripts
						...
					Videos
						...
				localizations.dgp
					Localizations
						...
				mod1.dgp
					...
				mod2.dgp
					...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant