This repo contains useful file loaders and writers for the Usagi game engine
- PPM (image):
RW - PNG (image): Planned
RW - NBT (data): Planned
RW - WAV (audio): Planned
R - MIDI (audio): Planned
R
Each loader has a loader.save([filename], args) and a loader.load([filename], args) function.
- Loaded images are represented as a 2D table matrix
- Loaded sounds are represented as a table of pitches, that can be played back at 60sps (sample per second), using any short sound sfx
- Loaded melodies are represented as a table of notes, that can be played back using some custom sfx sounds, or the above mentioned method of playing audio.
- Loaded NBT data is stored as a lua table