質問編集履歴

2

jsファイルの中身の追記

2018/03/26 08:28

投稿

jeaw
jeaw

スコア11

test CHANGED
File without changes
test CHANGED
@@ -219,3 +219,147 @@
219
219
  </script>
220
220
 
221
221
  ```
222
+
223
+
224
+
225
+ ---
226
+
227
+
228
+
229
+ **追記**
230
+
231
+ test_animation.js の中身です。
232
+
233
+ 中略の部分は、アニメーションの指定をしているところでしたので略しました。
234
+
235
+ .jsonの中身は、画像のファイル名と、数字のみでしたので省きました。
236
+
237
+ すみませんがよろしくお願いいたします。
238
+
239
+
240
+
241
+ ```
242
+
243
+
244
+
245
+
246
+
247
+ (function (lib, img, cjs, ss) {
248
+
249
+
250
+
251
+ var p; // shortcut to reference prototypes
252
+
253
+ lib.webFontTxtFilters = {};
254
+
255
+
256
+
257
+ // library properties:
258
+
259
+ lib.properties = {
260
+
261
+ width: 1920,
262
+
263
+ height: 950,
264
+
265
+ fps: 24,
266
+
267
+ color: "#FFFFFF",
268
+
269
+ webfonts: {},
270
+
271
+ manifest: []
272
+
273
+ };
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+ lib.webfontAvailable = function(family) {
282
+
283
+ lib.properties.webfonts[family] = true;
284
+
285
+ var txtFilters = lib.webFontTxtFilters && lib.webFontTxtFilters[family] || [];
286
+
287
+ for(var f = 0; f < txtFilters.length; ++f) {
288
+
289
+ txtFilters[f].updateCache();
290
+
291
+ }
292
+
293
+ };
294
+
295
+ // symbols:
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+ (lib._01_test_site = function() {
304
+
305
+ this.spriteSheet = ss["test_animation_atlas_"];
306
+
307
+ this.gotoAndStop(0);
308
+
309
+ }).prototype = p = new cjs.Sprite();
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+ (lib._02_camera = function() {
318
+
319
+ this.spriteSheet = ss["test_animation_atlas_"];
320
+
321
+ this.gotoAndStop(1);
322
+
323
+ }).prototype = p = new cjs.Sprite();
324
+
325
+
326
+
327
+
328
+
329
+ 【中略】
330
+
331
+
332
+
333
+ // stage content:
334
+
335
+ (lib.test_animation = function(mode,startPosition,loop) {
336
+
337
+ this.initialize(mode,startPosition,loop,{});
338
+
339
+
340
+
341
+ this.instance = new lib._17_adban_right();
342
+
343
+ this.instance.setTransform(787.9,814.3,0.183,0.183);
344
+
345
+
346
+
347
+ 【中略】
348
+
349
+
350
+
351
+ }).prototype = p = new cjs.MovieClip();
352
+
353
+ p.nominalBounds = new cjs.Rectangle(1385.6,597.9,3690.1,474.9);
354
+
355
+
356
+
357
+ })(lib = lib||{}, images = images||{}, createjs = createjs||{}, ss = ss||{});
358
+
359
+ var lib, images, createjs, ss;
360
+
361
+
362
+
363
+
364
+
365
+ ```

1

タグを足しました

2018/03/26 08:28

投稿

jeaw
jeaw

スコア11

test CHANGED
File without changes
test CHANGED
File without changes