Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tilengine 2.3.0 adds encrypted package loader
#1
Hi folks,

I've just released Tilengine 2.3.0 with the ability to load assets from a pre-packaged and optionally encrypted resource package. Packages are created with a new general purpose open source packager I've published here:
https://github.com/megamarc/ResourcePacker

I haven't yet published any example documenting it's usage, but it certainly works and it's pretty easy to use. Read full note here:
https://www.facebook.com/notes/tilengine...234964512/
#2
Thank you very much, it is very useful.
It is already tested in Linux, it works perfect.

"assets/list.txt"
Code:
color/beach.png
color/beach.sqx

Code:
 $ ~/Code/ResourcePacker/respack/a.out list.txt  
pack - packages resources with optional AES-128 encryption
built on Mar 19 2019 21:17:09
(c) 2019 megamarc                                                                                                                     

2 assets packed

Example "ColorCycle.c"
Code:
/* load resources */
 TLN_OpenResourcePack("assets/list.dat", NULL);
TLN_SetLoadPath ("color");
background = TLN_LoadBitmap ("beach.png");
palette    = TLN_GetBitmapPalette (background);
sp    = TLN_LoadSequencePack ("beach.sqx");
sequence   = TLN_FindSequence (sp, "beach");
#3
Congratulations for testing it so quickly without any example :-) it's just as you did in your post. I'm glad it works on linux out of the box too


Forum Jump:


Users browsing this thread: 2 Guest(s)