This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- load in our spritesheet | |
local sheetInfo = require("spritesheet") | |
local sheetArray = sheetInfo:getSheet() | |
-- pick the sprite data we're going to use from the sheet | |
local options = sheetArray['frames'][sheetInfo:getFrameIndex("amg1")] | |
-- set the frame count, and the width of each individual frame | |
options.width = options.sourceWidth/8 | |
options.numFrames = 8 |
NewerOlder