1-- Sprite animation file descriptor 2-- This file will describe the frames used to load the sprite animations 3 4-- This files is following a special format compared to other animation scripts. 5 6local ANIM_SOUTH = vt_map.MapMode.ANIM_SOUTH; 7local ANIM_NORTH = vt_map.MapMode.ANIM_NORTH; 8local ANIM_WEST = vt_map.MapMode.ANIM_WEST; 9local ANIM_EAST = vt_map.MapMode.ANIM_EAST; 10 11sprite_animation = { 12 13 -- The file to load the frames from 14 image_filename = "data/entities/map/npcs/npc_woman02_spritesheet.png", 15 -- The number of rows and columns of images, will be used to compute 16 -- the images width and height, and also the frames number (row x col) 17 rows = 4, 18 columns = 6, 19 -- The frames duration in milliseconds 20 frames = { 21 [ANIM_SOUTH] = { 22 [0] = { id = 0, duration = 150 } 23 }, 24 [ANIM_NORTH] = { 25 [0] = { id = 6, duration = 150 } 26 }, 27 [ANIM_WEST] = { 28 [0] = { id = 12, duration = 150 } 29 }, 30 [ANIM_EAST] = { 31 [0] = { id = 18, duration = 150 } 32 } 33 } 34} 35