Ninja Boss Wrestle said:
I acquired here to a conclusion that there Want to be a method for me to correctly arrange and shield my recreation assets such That they are simply accessible, troublesome to tamper with, simply independently replaceable And mightbe environment nice. Evaluation has launched me to custom-made binary file codecs which I am Considering about for the java platform.

I would like To raised understand:

  • How I can outline a custom-made format with Java code For event
  • How I can convert my knowledge in to a file that makes use of this format and again with Java
  • What ought to I Watch out for

So studying that slowly, I see You are Looking for 7 gadgets.

1> arrange and shield my recreation assets So as that they are simply accessible

Organize in a construction that works properly In your recreation. Precisely The way you arrange your belongings will Rely upon your recreation.

You’d possibly primarytain them arranged by object, so mightbe a per-creature basis, with textual content materialures, sounds, animations, and completely different assets in a listing per creature. In any other case you might do it by diploma, the ice diploma having all their textual content materialures, sounds, animations, and completely different assets, The hearth diploma having its personal listing, the water diploma having its personal listing, and comparable.

Many devices have organizational patterns That are widespstudy, and properly documented inside these devices. For event, Unity has frequently-used patterns that primarytain animations, audio, supplies, fashions, textual content materialures, scenes, and so on., all Within Their very personal timber. Unreal has It is personal frequently-used patterns for the content material folder, …….

Source: https://www.gamedev.net/forums/topic/711961-creating-and-using-custom-binary-file-formats-in-java/5446391/