-
Notifications
You must be signed in to change notification settings - Fork 22
59 lines (50 loc) · 1.69 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
module(...)
-- This file is for use with CoronaSDK™ and was generated by Zwoptex (http://zwoptexapp.com/)
--
-- The function getSpriteSheetData() returns a table suitable for importing using sprite.newSpriteSheetFromData()
--
-- Usage example:
-- local zwoptexData = require "ThisFile.lua"
-- local data = zwoptexData.getSpriteSheetData()
-- local spriteSheet = sprite.newSpriteSheetFromData( "Untitled.png", data )
--
-- For more details, see http://developer.anscamobile.com/content/game-edition-sprite-sheets
function getSpriteSheetData()
local sheet = {
frames = {
{
name = "b8-1.png",
spriteColorRect = { x = 0, y = 0, width = 752, height = 366 },
textureRect = { x = 0, y = 0, width = 752, height = 366 },
spriteSourceSize = { width = 752, height = 366 },
spriteTrimmed = true,
textureRotated = false
},
{
name = "b8-2.png",
spriteColorRect = { x = 0, y = 0, width = 264, height = 160 },
textureRect = { x = 0, y = 1200, width = 264, height = 160 },
spriteSourceSize = { width = 264, height = 160 },
spriteTrimmed = true,
textureRotated = false
},
{
name = "b8-3.png",
spriteColorRect = { x = 0, y = 0, width = 475, height = 258 },
textureRect = { x = 0, y = 940, width = 475, height = 258 },
spriteSourceSize = { width = 475, height = 258 },
spriteTrimmed = true,
textureRotated = false
},
{
name = "b8-4.png",
spriteColorRect = { x = 0, y = 0, width = 706, height = 570 },
textureRect = { x = 0, y = 368, width = 706, height = 570 },
spriteSourceSize = { width = 706, height = 570 },
spriteTrimmed = true,
textureRotated = false
},
}
}
return sheet
end