forked from Eddy34743/Corona-Comics-SDK-2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPage2.lua
41 lines (34 loc) · 1.13 KB
/
Page2.lua
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
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 = "b2-1.png",
spriteColorRect = { x = 0, y = 0, width = 84, height = 98 },
textureRect = { x = 0, y = 0, width = 84, height = 98 },
spriteSourceSize = { width = 84, height = 98 },
spriteTrimmed = true,
textureRotated = false
},
{
name = "b2-2.png",
spriteColorRect = { x = 0, y = 0, width = 154, height = 91 },
textureRect = { x = 85, y = 0, width = 154, height = 91 },
spriteSourceSize = { width = 154, height = 91 },
spriteTrimmed = true,
textureRotated = false
},
}
}
return sheet
end