-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSPRITER.8xp
478 lines (478 loc) · 9.33 KB
/
SPRITER.8xp
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
:"Spriter v1.5
:"EEDDEEDDEEDDEEDDEEEEEEEEEEEEEEEDDEE77EEEEEEEEEEEDE777FEEEEEEEEEEEE77F66EEEEEEEEDEEEF6666EEEEEEEDDEEE66666EEEEEEEDEEEE66666EEEEEEEEEEEE66666EEEEDEEEEEEE66666EEEDDEEEEEEE66666EEEDEEEEEEEE66663EEEEEEEEEEEE6633EDEEEEEEEEEEE333EDDEEEEEEEEEEEEEEEDDEEDDEEDDEEDDEE
If 90>det([[20:Then
Disp "Get Celtic CE to run this:","bit.ly/CelticCE
Pause :Return
End
det(16,MedGray
det(15,DarkGray,102,89,116,62
det(15,MedGray,104,91,112,18
det(15,MedGray,104,111,112,18
det(15,MedGray,104,131,112,18
"xLibC"->Str9
det(13,1,DarkGray,MedGray,106,93
det(15,0,104,91,112,18
"BufSprite"->Str9
det(13,1,DarkGray,MedGray,106,113
"About"->Str9
det(13,1,DarkGray,MedGray,106,133
0->O
Ans->P
det(73->K
If K=4:Then
If O:Then
O-1->O
Else
2->O
End
End
If K=1:Then
If O=2:Then
0->O
Else
O+1->O
End
End
If K=15:det(79,478
If K=9 or K=54:det(79,45
If O!=P:Then
det(15,0,104,91+20P,112,18
det(15,0,104,91+20O,112,18
O->P
Wait .1
End
det(79,21
If O=2:Then
det(15,DarkGray,48,180,224,54
det(15,MedGray,50,182,220,50
"Spriter v1.5->Str9
det(13,1,DarkGray,MedGray,88,184
"A small project by->Str9
det(13,1,DarkGray,MedGray,52,200
"TIny_Hacker->Str9
det(13,1,DarkGray,MedGray,94,216
Wait .5
0->K
While K!=9 and K!=54 and K!=15
det(73->K
End
det(15,MedGray,48,180,224,54
0->K
Wait .5
End
If O=2:det(79,21
1->W
Ans->L
O->Q
det(16,MedGray
det(15,DarkGray,90,190,140,42
det(15,MedGray,92,192,136,18
det(15,MedGray,92,212,136,18
1->W
Ans->L
0->P
While det(73):End
While 1
det(73
Ans->K
If K=1:Then
If L>1:Then
L-1->L
Else
128->L
End
End
If K=4:Then
If L<128:Then
L+1->L
Else
1->L
End
End
If K=2:Then
If W>1:Then
W-1->W
Else
128->W
End
End
If K=3:Then
If W<128:Then
W+1->W
Else
1->W
End
End
If K=15:det(79,478
If K=9 or K=54:det(79,121
If L!=iPart(P) or W!=fPart(P)1000:Then
L->P
P+0.001W->P
det(15,MedGray,191,192,37,18
det(15,MedGray,191,212,37,18
"Length: "+eval(L->Str9
det(13,1,DarkGray,MedGray,94,194
"Width: "+eval(W->Str9
det(13,1,DarkGray,MedGray,94,214
det(15,MedGray,94,45,132,132
det(60,DarkGray,160-W/2,110-L/2,W+2,L+2
End
End
While det(73):End
det(15,MedGray,94,45,132,132
det(60,DarkGray,160-W/2,110-L/2,W+2,L+2
If not(Q:"FF->Str1
If Q:"0->Str1
1->A
det(15,MedGray,90,190,140,42
"Loading..\.->Str9
det(13,1,DarkGray,MedGray,100,194
det(15,DarkGray,100,212,120,20
det(15,MedGray,102,214,116,16
While A<W*L
det(15,DarkGray,104,216,A/(W*L)*112,12
If A!=W*L:Then
If not(Q:Str1+"FF->Str1
If Q:Str1+"0->Str1
End
A+1->A
End
1.1->R
0->X
0->Y
0->U
0->V
1->S
If not(Q:0->C
If Q:Black->C
While 1
det(73->K
X->U
Y->V
If K=1 or K=5 or K=6:Then
If Y<L-1:Then
Y+1->Y
1->R
End
End
If K=4 or K=7 or K=8:Then
If Y:Then
Y-1->Y
1->R
End
End
If K=2 or K=5 or K=7:Then
If X:Then
X-1->X
1->R
End
End
If K=3 or K=6 or K=8:Then
If X<W-1:Then
X+1->X
1->R
End
End
If K=15:det(79,478
If K=10 and W(S+1)<=128 and L(S+1)<=128:S+1->S
If K=11 and S>1:S-1->S
If K=10 or K=11:1.1->R
If K=48:Then
If not(Q:Then
"FF
det(42
Str9
det(47
det(49,1,(Y*W+X)2,theta
Else
"0
det(42
Str9
det(47
det(44,1,Y*W+X,theta
End
End
If K=9 or K=54:Then
If not(Q:Then
det(48,C
If C<=15:"0"+Str9->Str9
Str9
det(42
sub(Str9,3,2)+sub(Str9,1,2)
det(47
det(49,1,(Y*W+X)2,theta
Else
sub("0123456789ABCDEF",C-8,1
det(42
Str9
det(47
det(44,1,Y*W+X,theta
End
End
If K=52:Then
0->G
det(15,DarkGray,120,99,80,42
det(15,MedGray,122,101,76,18
det(15,MedGray,122,121,76,18
"String->Str9
det(13,1,DarkGray,MedGray,124,103
"Icon->Str9
det(13,1,DarkGray,MedGray,124,123
det(15,0,122,101,76,18
0->O
det(73->K
If K=4 or K=1:Then
1-O->O
det(15,0,122,101,76,18
det(15,0,122,121,76,18
Wait .1
End
If K=15:det(79,324
If K!=9 and K!=54:det(79,223
Str1->Str5
det(15,MedGray,81,101,158,18
"Saved!->Str9
det(13,1,DarkGray,MedGray,124,103
Wait .1
While K!=9 and K!=54 and K!=15:det(73->K:End
Else
det(15,DarkGray,73,99,174,42
det(15,MedGray,75,101,170,18
det(15,MedGray,75,121,170,18
"Add to:"->Str9
det(13,1,DarkGray,MedGray,121,103
0:det(33,0
Str9->Str8
1->R
1->O
det(73->K
If K=2:Then
1->R
If O=1:length(Str8)+1->O
O-2->O
While O!=1 and sub(Str8,O,1)!="
O-1->O
End
If O>1:O+1->O
End
If K=3:Then
1->R
1+inString(Str8," ",O->O
If not(inString(Str8," ",O:1->O
End
If R:Then
0->R
det(15,MedGray,75,121,170,18
"<prgm"+sub(Str8,O,inString(Str8," ",O)-O->Str9
det(13,1,DarkGray,MedGray,77,123
det(66,1,DarkGray,MedGray,233,123,62
End
If K!=9 and K!=54 and K!=15:det(79,249
If K!=15:Then
If not(Q) or W!=16 or L!=16:Then
det(15,DarkGray,18,85,284,70
det(15,MedGray,20,87,280,66
"Error:->Str9
det(13,1,DarkGray,MedGray,22,89
"The icon is invalid.->Str9
det(13,1,DarkGray,MedGray,22,105
"Ensure it uses->Str9
det(13,1,DarkGray,MedGray,22,121
"BufSprite and is 16xmark16.->Str9
det(13,1,DarkGray,MedGray,22,137
Wait .1
While K!=9 and K!=54 and K!=15:det(73->K:End
Else
sub(Str8,O,inString(Str8," ",O)-O->Str0
det(27
If theta!=2:Then
det(15,DarkGray,42,92,236,56
det(15,MedGray,44,94,232,52
"Error:->Str9
det(13,1,DarkGray,MedGray,46,96
"You need to select->Str9
det(13,1,DarkGray,MedGray,46,112
"a TI-BASIC program.->Str9
det(13,1,DarkGray,MedGray,46,128
Wait .1
While K!=9 and K!=54 and K!=15:det(73->K:End
Else
det(8
0->N
If sub(Str9,1,1)="A":Then
det(5
1->N
End
det(3
sub(Str9,2,1)+Str1->Str9
1
det(2
":DCS->Str9
1
det(2
If N:det(5
det(15,MedGray,75,101,170,18
"Saved!->Str9
det(13,1,DarkGray,MedGray,124,103
Wait .1
While K!=9 and K!=54 and K!=15:det(73->K:End
End
End
End
End
1.1->R
End
If K=51:Then
If length(Str5)<length(Str1:Then
Str5+sub(Str1,length(Str5)+1,length(Str1)-length(Str5->Str1
Else
sub(Str5,1,length(Str1->Str1
End
1.1->R
End
If K=50:Then
If not(Q:Then
det(16,MedGray
0->A
For(I,41,200,10
For(J,81,240,10
det(15,A,A,J,I,8,8
A+1->A
End
End
0->K
0->O
det(15,Black,80,40,10,10
While K!=15 and K!=9 and K!=54
det(73->K
If K=1:Then
det(60,MedGray,80+iPart(O)10,40+fPart(O)1000,10,10
If fPart(O)100=15:Then
iPart(O->O
Else
O+.01->O
End
det(60,fPart(O)1600+iPart(O),fPart(O)1600+iPart(O),80+iPart(O)10,40+fPart(O)1000,10,10
Wait .1
End
If K=4:Then
det(60,MedGray,80+iPart(O)10,40+fPart(O)1000,10,10
If not(fPart(O):Then
O+.15->O
Else
O-.01->O
End
det(60,fPart(O)1600+iPart(O),fPart(O)1600+iPart(O),80+iPart(O)10,40+fPart(O)1000,10,10
Wait .1
End
If K=2:Then
det(60,MedGray,80+iPart(O)10,40+fPart(O)1000,10,10
If iPart(O):Then
O-1->O
Else
O+15->O
End
det(60,fPart(O)1600+iPart(O),fPart(O)1600+iPart(O),80+iPart(O)10,40+fPart(O)1000,10,10
Wait .1
End
If K=3:Then
det(60,MedGray,80+iPart(O)10,40+fPart(O)1000,10,10
If iPart(O)<15:Then
O+1->O
Else
O-15->O
End
det(60,fPart(O)1600+iPart(O),fPart(O)1600+iPart(O),80+iPart(O)10,40+fPart(O)1000,10,10
Wait .1
End
End
fPart(O)1600+iPart(O)->C
Else
det(15,MedGray,52,212,222,22
det(60,DarkGray,81,225,8,8
For(A,1,15
det(15,A+9,81+10A,225,8,8
End
0->K
0->O
det(60,DarkGray,80,224,10,10
While K!=15 and K!=9 and K!=54
det(73->K
If K=2:Then
det(60,MedGray,80+O*10,224,10,10
If O:Then
O-1->O
Else
15->O
End
det(60,(O+9)(O>0 and O!=13)+DarkGray(O=0 or O=13),80+O*10,224,10,10
Wait .1
End
If K=3:Then
det(60,MedGray,80+O*10,224,10,10
If O=15:Then
0->O
Else
O+1->O
End
det(60,(O+9)(O>0 and O!=13)+DarkGray(O=0 or O=13),80+O*10,224,10,10
Wait .1
End
End
O+9->C
End
1.1->R
End
If R:Then
If R>1:Then
det(16,MedGray
det(15,DarkGray,52,212,56,22:det(15,MedGray,54,214,52,18
det(15,DarkGray,206,212,68,22:det(15,MedGray,208,214,64,18
det(15,DarkGray,132,212,56,22:det(15,MedGray,134,214,52,18
"Save->Str9:det(13,1,DarkGray,MedGray,56,216
"Color->Str9:det(13,1,DarkGray,MedGray,210,216
"Load->Str9:det(13,1,DarkGray,MedGray,136,216
det(60,DarkGray,160-WS/2,110-LS/2,WS+2,LS+2
"[+]->Str9:det(13,0,DarkGray-13(SW>=128),MedGray,265,92
"[-]->Str9:det(13,0,DarkGray-13(S=1),MedGray,265,122
"Scale: "+toString(S->Str9
det(13,0,DarkGray,MedGray,250,107
If not(Q:Then
det(56,161-WS/2,111-LS/2,W,L,S,S,1
Else
det(15,MedGray,161-W/2,111-L/2,W,L
If S>1:Then
1->I
For(B,111-LS/2,110+LS/2,S
For(A,161-WS/2,160+WS/2,S
sub(Str1,I,1
det(47
det(15,9+theta,A,B,S,S
I+1->I
End
End
Else
Str1->Str9
det(9,W,134-W/2,65-L/2
End
End
End
If not(Q:Then
sub(Str1,2(VW+U)+1,2
det(47
det(15,theta,theta,161-WS/2+US,111-LS/2+VS,S,S
det(15,C,C,161-WS/2+XS,111-LS/2+YS,S,S
Else
sub(Str1,VW+U+1,1
det(47
theta+13not(theta->theta
det(15,9+theta,161-WS/2+US,111-LS/2+VS,S,S
det(15,C,161-WS/2+XS,111-LS/2+YS,S,S
End
If S>2
det(60,Red+9(not(det(19,161-WS/2+XS,111-LS/2+YS)) and theta=248),161-WS/2+XS,111-LS/2+YS,S,S
0->R
End
End
det(76,E
det(82