A downloadable tool

Download NowName your own price

AssPack is a small tool I wrote for combining game assets into a single file (asset pack) and load them at runtime. I use this myself with AmiBlitz3 but you can easily use this with other development languages too.

Check out the AssPack.guide for more information.

INCLUDE "asspack.ab3"
; use the read_chunk{} function to read a chunk from an AssPack file.
; read_chunk{fn.s,chunkname.s,id.w}
; Parameters:
;   1) name of the source AssPack file
;   2) name of the chunk to be loaded
;   3) id of the object that will be created on successful load. (Only applies to images, sounds and modules)
; Return value is True or False, depending on the success of the loading.
; If load was successful the global chunk variable (chunk.chunkdata) is populated with the loaded chunk details.
; -
; Example 1:
success.b = read_chunk{"mygameassets.bin","sound1.8svx",0}
If success
  Sound 0,15
Endif
; -
; Example 2:
success.b = read_chunk{"mygameassets.bin","image1.iff",0}
If success
  Use Bitmap 0
  GetaShape 0,0,0,chunk\width,chunk\height
  Free Bitmap 0
Endif 
Published 1 day ago
StatusReleased
CategoryTool
Authorzooperdan

Download

Download NowName your own price

Click download now to get access to the following files:

AssPack.lha (1.0) 81 kB

Leave a comment

Log in with itch.io to leave a comment.