+ // some simplified npc files do not define animation frames
+ // render size and offset are given instead, and we
+ // assume, that we can just loop horizontally over the image
+ if (!info[animation].frame){
+ info[animation].frame = [];
+ let rs = info.render_size.split(/,/); rs = [ rs[0] * 1, rs[1] * 1 ];
+ let ro = info.render_offset.split(/,/); ro = [ ro[0] * 1, ro[1] * 1 ];
+
+ for (let i = 0; i < info[animation].frames; i++ )
+ info[animation].frame[i] = [[ i * rs[0], 0, rs[0], rs[1], ro[0], ro[1]]];
+ }
+