-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtexturepacker.lua
More file actions
71 lines (69 loc) · 2.43 KB
/
texturepacker.lua
File metadata and controls
71 lines (69 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
-- This file is for use with Corona Game Edition
--
-- The function getSpriteSheetData() returns a table suitable for importing using sprite.newSpriteSheetFromData()
--
-- This file is automatically generated with TexturePacker (http://texturepacker.com). Do not edit
-- $TexturePacker:SmartUpdate:b2eafcc24ae0464e25c48dc570583786$
--
-- Usage example:
-- local sheetData = require "ThisFile.lua"
-- local data = sheetData.getSpriteSheetData()
-- local spriteSheet = sprite.newSpriteSheetFromData( "Untitled.png", data )
--
-- For more details, see http://developer.anscamobile.com/content/game-edition-sprite-sheets
local SpriteSheet = {}
SpriteSheet.getSpriteSheetData = function ()
return {
frames = {
{
name = "AntWalkSpriteSheet-1.png",
spriteColorRect = { x = 66, y = 37, width = 62, height = 52 },
textureRect = { x = 2, y = 2, width = 62, height = 52 },
spriteSourceSize = { width = 192, height = 128 },
spriteTrimmed = true,
textureRotated = false
},
{
name = "AntWalkSpriteSheet-2.png",
spriteColorRect = { x = 66, y = 39, width = 62, height = 48 },
textureRect = { x = 66, y = 2, width = 62, height = 48 },
spriteSourceSize = { width = 192, height = 128 },
spriteTrimmed = true,
textureRotated = false
},
{
name = "AntWalkSpriteSheet-3.png",
spriteColorRect = { x = 65, y = 37, width = 62, height = 50 },
textureRect = { x = 130, y = 2, width = 62, height = 50 },
spriteSourceSize = { width = 192, height = 128 },
spriteTrimmed = true,
textureRotated = false
},
{
name = "AntWalkSpriteSheet-4.png",
spriteColorRect = { x = 64, y = 40, width = 62, height = 50 },
textureRect = { x = 2, y = 56, width = 62, height = 50 },
spriteSourceSize = { width = 192, height = 128 },
spriteTrimmed = true,
textureRotated = false
},
{
name = "AntWalkSpriteSheet-5.png",
spriteColorRect = { x = 65, y = 39, width = 62, height = 50 },
textureRect = { x = 66, y = 56, width = 62, height = 50 },
spriteSourceSize = { width = 192, height = 128 },
spriteTrimmed = true,
textureRotated = false
},
{
name = "AntWalkSpriteSheet-6.png",
spriteColorRect = { x = 66, y = 40, width = 62, height = 50 },
textureRect = { x = 130, y = 56, width = 62, height = 50 },
spriteSourceSize = { width = 192, height = 128 },
spriteTrimmed = true,
textureRotated = false
},
}
}
end
return SpriteSheet