Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 348 lines (306 sloc) 10.805 kB
cc261ca first commit.
Gilbert authored
1 module(...)
2
3
4 -- This file is for use with Corona Game Edition
5 --
6 -- The function getSpriteSheetData() returns a table suitable for importing using sprite.newSpriteSheetFromData()
7 --
8 -- Usage example:
9 -- local zwoptexData = require "ThisFile.lua"
10 -- local data = zwoptexData.getSpriteSheetData()
11 -- local spriteSheet = sprite.newSpriteSheetFromData( "Untitled.png", data )
12 --
13 -- For more details, see http://developer.anscamobile.com/content/game-edition-sprite-sheets
14
15 function getSpriteSheetData()
16
17 local sheet = {
18 frames = {
19
20 {
21 name = "redBall_0000_36.png",
22 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
23 textureRect = { x = 116, y = 40, width = 36, height = 36 },
24 spriteSourceSize = { width = 36, height = 36 },
25 spriteTrimmed = true,
26 textureRotated = false
27 },
28
29 {
30 name = "redBall_0001_35.png",
31 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
32 textureRect = { x = 2, y = 78, width = 36, height = 36 },
33 spriteSourceSize = { width = 36, height = 36 },
34 spriteTrimmed = true,
35 textureRotated = false
36 },
37
38 {
39 name = "redBall_0002_34.png",
40 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
41 textureRect = { x = 154, y = 40, width = 36, height = 36 },
42 spriteSourceSize = { width = 36, height = 36 },
43 spriteTrimmed = true,
44 textureRotated = false
45 },
46
47 {
48 name = "redBall_0003_33.png",
49 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
50 textureRect = { x = 78, y = 116, width = 36, height = 36 },
51 spriteSourceSize = { width = 36, height = 36 },
52 spriteTrimmed = true,
53 textureRotated = false
54 },
55
56 {
57 name = "redBall_0004_32.png",
58 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
59 textureRect = { x = 2, y = 40, width = 36, height = 36 },
60 spriteSourceSize = { width = 36, height = 36 },
61 spriteTrimmed = true,
62 textureRotated = false
63 },
64
65 {
66 name = "redBall_0005_31.png",
67 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
68 textureRect = { x = 154, y = 154, width = 36, height = 36 },
69 spriteSourceSize = { width = 36, height = 36 },
70 spriteTrimmed = true,
71 textureRotated = false
72 },
73
74 {
75 name = "redBall_0006_30.png",
76 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
77 textureRect = { x = 154, y = 192, width = 36, height = 36 },
78 spriteSourceSize = { width = 36, height = 36 },
79 spriteTrimmed = true,
80 textureRotated = false
81 },
82
83 {
84 name = "redBall_0007_29.png",
85 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
86 textureRect = { x = 78, y = 40, width = 36, height = 36 },
87 spriteSourceSize = { width = 36, height = 36 },
88 spriteTrimmed = true,
89 textureRotated = false
90 },
91
92 {
93 name = "redBall_0008_28.png",
94 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
95 textureRect = { x = 116, y = 154, width = 36, height = 36 },
96 spriteSourceSize = { width = 36, height = 36 },
97 spriteTrimmed = true,
98 textureRotated = false
99 },
100
101 {
102 name = "redBall_0009_27.png",
103 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
104 textureRect = { x = 40, y = 2, width = 36, height = 36 },
105 spriteSourceSize = { width = 36, height = 36 },
106 spriteTrimmed = true,
107 textureRotated = false
108 },
109
110 {
111 name = "redBall_0010_26.png",
112 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
113 textureRect = { x = 2, y = 2, width = 36, height = 36 },
114 spriteSourceSize = { width = 36, height = 36 },
115 spriteTrimmed = true,
116 textureRotated = false
117 },
118
119 {
120 name = "redBall_0011_25.png",
121 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
122 textureRect = { x = 40, y = 154, width = 36, height = 36 },
123 spriteSourceSize = { width = 36, height = 36 },
124 spriteTrimmed = true,
125 textureRotated = false
126 },
127
128 {
129 name = "redBall_0012_24.png",
130 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
131 textureRect = { x = 116, y = 116, width = 36, height = 36 },
132 spriteSourceSize = { width = 36, height = 36 },
133 spriteTrimmed = true,
134 textureRotated = false
135 },
136
137 {
138 name = "redBall_0013_23.png",
139 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
140 textureRect = { x = 192, y = 116, width = 36, height = 36 },
141 spriteSourceSize = { width = 36, height = 36 },
142 spriteTrimmed = true,
143 textureRotated = false
144 },
145
146 {
147 name = "redBall_0014_22.png",
148 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
149 textureRect = { x = 192, y = 154, width = 36, height = 36 },
150 spriteSourceSize = { width = 36, height = 36 },
151 spriteTrimmed = true,
152 textureRotated = false
153 },
154
155 {
156 name = "redBall_0015_21.png",
157 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
158 textureRect = { x = 192, y = 2, width = 36, height = 36 },
159 spriteSourceSize = { width = 36, height = 36 },
160 spriteTrimmed = true,
161 textureRotated = false
162 },
163
164 {
165 name = "redBall_0016_20.png",
166 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
167 textureRect = { x = 40, y = 116, width = 36, height = 36 },
168 spriteSourceSize = { width = 36, height = 36 },
169 spriteTrimmed = true,
170 textureRotated = false
171 },
172
173 {
174 name = "redBall_0017_19.png",
175 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
176 textureRect = { x = 40, y = 78, width = 36, height = 36 },
177 spriteSourceSize = { width = 36, height = 36 },
178 spriteTrimmed = true,
179 textureRotated = false
180 },
181
182 {
183 name = "redBall_0018_18.png",
184 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
185 textureRect = { x = 40, y = 192, width = 36, height = 36 },
186 spriteSourceSize = { width = 36, height = 36 },
187 spriteTrimmed = true,
188 textureRotated = false
189 },
190
191 {
192 name = "redBall_0019_17.png",
193 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
194 textureRect = { x = 192, y = 192, width = 36, height = 36 },
195 spriteSourceSize = { width = 36, height = 36 },
196 spriteTrimmed = true,
197 textureRotated = false
198 },
199
200 {
201 name = "redBall_0020_16.png",
202 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
203 textureRect = { x = 154, y = 2, width = 36, height = 36 },
204 spriteSourceSize = { width = 36, height = 36 },
205 spriteTrimmed = true,
206 textureRotated = false
207 },
208
209 {
210 name = "redBall_0022_14.png",
211 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
212 textureRect = { x = 78, y = 2, width = 36, height = 36 },
213 spriteSourceSize = { width = 36, height = 36 },
214 spriteTrimmed = true,
215 textureRotated = false
216 },
217
218 {
219 name = "redBall_0022_15.png",
220 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
221 textureRect = { x = 78, y = 154, width = 36, height = 36 },
222 spriteSourceSize = { width = 36, height = 36 },
223 spriteTrimmed = true,
224 textureRotated = false
225 },
226
227 {
228 name = "redBall_0023_13.png",
229 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
230 textureRect = { x = 116, y = 192, width = 36, height = 36 },
231 spriteSourceSize = { width = 36, height = 36 },
232 spriteTrimmed = true,
233 textureRotated = false
234 },
235
236 {
237 name = "redBall_0024_12.png",
238 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
239 textureRect = { x = 2, y = 192, width = 36, height = 36 },
240 spriteSourceSize = { width = 36, height = 36 },
241 spriteTrimmed = true,
242 textureRotated = false
243 },
244
245 {
246 name = "redBall_0025_11.png",
247 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
248 textureRect = { x = 154, y = 116, width = 36, height = 36 },
249 spriteSourceSize = { width = 36, height = 36 },
250 spriteTrimmed = true,
251 textureRotated = false
252 },
253
254 {
255 name = "redBall_0026_10.png",
256 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
257 textureRect = { x = 78, y = 192, width = 36, height = 36 },
258 spriteSourceSize = { width = 36, height = 36 },
259 spriteTrimmed = true,
260 textureRotated = false
261 },
262
263 {
264 name = "redBall_0027_9.png",
265 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
266 textureRect = { x = 40, y = 40, width = 36, height = 36 },
267 spriteSourceSize = { width = 36, height = 36 },
268 spriteTrimmed = true,
269 textureRotated = false
270 },
271
272 {
273 name = "redBall_0028_8.png",
274 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
275 textureRect = { x = 2, y = 154, width = 36, height = 36 },
276 spriteSourceSize = { width = 36, height = 36 },
277 spriteTrimmed = true,
278 textureRotated = false
279 },
280
281 {
282 name = "redBall_0029_7.png",
283 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
284 textureRect = { x = 192, y = 40, width = 36, height = 36 },
285 spriteSourceSize = { width = 36, height = 36 },
286 spriteTrimmed = true,
287 textureRotated = false
288 },
289
290 {
291 name = "redBall_0030_6.png",
292 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
293 textureRect = { x = 116, y = 2, width = 36, height = 36 },
294 spriteSourceSize = { width = 36, height = 36 },
295 spriteTrimmed = true,
296 textureRotated = false
297 },
298
299 {
300 name = "redBall_0031_5.png",
301 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
302 textureRect = { x = 192, y = 78, width = 36, height = 36 },
303 spriteSourceSize = { width = 36, height = 36 },
304 spriteTrimmed = true,
305 textureRotated = false
306 },
307
308 {
309 name = "redBall_0032_4.png",
310 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
311 textureRect = { x = 2, y = 116, width = 36, height = 36 },
312 spriteSourceSize = { width = 36, height = 36 },
313 spriteTrimmed = true,
314 textureRotated = false
315 },
316
317 {
318 name = "redBall_0033_3.png",
319 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
320 textureRect = { x = 154, y = 78, width = 36, height = 36 },
321 spriteSourceSize = { width = 36, height = 36 },
322 spriteTrimmed = true,
323 textureRotated = false
324 },
325
326 {
327 name = "redBall_0034_2.png",
328 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
329 textureRect = { x = 78, y = 78, width = 36, height = 36 },
330 spriteSourceSize = { width = 36, height = 36 },
331 spriteTrimmed = true,
332 textureRotated = false
333 },
334
335 {
336 name = "redBall_0035_1.png",
337 spriteColorRect = { x = 0, y = 0, width = 36, height = 36 },
338 textureRect = { x = 116, y = 78, width = 36, height = 36 },
339 spriteSourceSize = { width = 36, height = 36 },
340 spriteTrimmed = true,
341 textureRotated = false
342 },
343
344 }
345 }
346
347 return sheet
348 end
Something went wrong with that request. Please try again.