Tilengine - The 2D retro graphics engine forum
Tilengine 2.3.0 adds encrypted package loader - Printable Version

+- Tilengine - The 2D retro graphics engine forum (http://tilengine.org/forum)
+-- Forum: Tabloid (http://tilengine.org/forum/forumdisplay.php?fid=4)
+--- Forum: News & Announcements (http://tilengine.org/forum/forumdisplay.php?fid=6)
+--- Thread: Tilengine 2.3.0 adds encrypted package loader (/showthread.php?tid=275)



Tilengine 2.3.0 adds encrypted package loader - megamarc - 03-20-2019

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/tilengine-gets-support-for-asset-packager-with-encryption/2150714234964512/


RE: Tilengine 2.3.0 adds encrypted package loader - daltomi - 03-20-2019

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");



RE: Tilengine 2.3.0 adds encrypted package loader - megamarc - 03-20-2019

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