Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo contains useful file loaders and writers for the Usagi game engine

Available file loaders:

  • PPM (image): RW
  • PNG (image): Planned RW
  • NBT (data): Planned RW
  • WAV (audio): Planned R
  • MIDI (audio): Planned R

Loader structure

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

About

This repo contains some useful file loaders Usagi, a small game engine for LUA

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages