playdate 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #------------------------------------------------------------------------------
  2. # $File: playdate,v 1.1 2022/11/04 13:34:48 christos Exp $
  3. #
  4. # Various native file formats for the Playdate portable video game console.
  5. #
  6. # These are unofficially documented at
  7. # https://github.com/jaames/playdate-reverse-engineering
  8. #
  9. # The SDK is a source for many test files, and can be used to
  10. # create others. https://play.date/dev/
  11. # pdi: static image
  12. 0 string Playdate\ IMG Playdate image data
  13. >12 belong&0x80 0x80 (compressed)
  14. >>20 lelong x %d x
  15. >>24 lelong x %d
  16. >12 belong&0x80 0x00 (uncompressed)
  17. >>16 leshort x %d x
  18. >>18 leshort x %d
  19. # pdt: multiple static images
  20. 0 string Playdate\ IMT Playdate image data set
  21. >12 belong&0x80 0x80 (compressed)
  22. >>20 lelong x %d x
  23. >>24 lelong x %d,
  24. >>28 lelong x %d cells
  25. >12 belong&0x80 0x00 (uncompressed)
  26. >>20 lelong x tile grid %d x
  27. >>24 lelong x %d
  28. # pds: string tables
  29. 0 string Playdate\ STR Playdate localization strings
  30. >12 belong&0x80 0x80 (compressed)
  31. >12 belong&0x80 0x00 (uncompressed)
  32. # pda: audio
  33. 0 string Playdate\ AUD Playdate audio file
  34. >12 lelong&0xffffff x %d Hz,
  35. >15 byte 0 unsigned, 8-bit PCM, 1 channel
  36. >15 byte 1 unsigned, 8-bit PCM, 2 channel
  37. >15 byte 2 signed, 16-bit little-endian PCM, 1 channel
  38. >15 byte 3 signed, 16-bit little-endian PCM, 1 channel
  39. >15 byte 4 4-bit ADPCM, 1 channel
  40. >15 byte 5 4-bit ADPCM, 2 channel
  41. # pda: video
  42. 0 string Playdate\ VID Playdate video file
  43. >24 leshort x %d x
  44. >26 leshort x %d,
  45. >16 leshort x %d frames,
  46. >20 lefloat x %.2f FPS
  47. # pdz: executable package
  48. # Not a lot we can do, as it's a stream of entries with no summary information.
  49. 0 string Playdate\ PDZ Playdate executable package