JoystickTest.fire 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734
  1. [
  2. {
  3. "__type__": "cc.SceneAsset",
  4. "_name": "",
  5. "_objFlags": 0,
  6. "_native": "",
  7. "scene": {
  8. "__id__": 1
  9. }
  10. },
  11. {
  12. "__type__": "cc.Scene",
  13. "_objFlags": 0,
  14. "_parent": null,
  15. "_children": [
  16. {
  17. "__id__": 2
  18. }
  19. ],
  20. "_active": true,
  21. "_components": [],
  22. "_prefab": null,
  23. "_opacity": 255,
  24. "_color": {
  25. "__type__": "cc.Color",
  26. "r": 255,
  27. "g": 255,
  28. "b": 255,
  29. "a": 255
  30. },
  31. "_contentSize": {
  32. "__type__": "cc.Size",
  33. "width": 0,
  34. "height": 0
  35. },
  36. "_anchorPoint": {
  37. "__type__": "cc.Vec2",
  38. "x": 0,
  39. "y": 0
  40. },
  41. "_trs": {
  42. "__type__": "TypedArray",
  43. "ctor": "Float64Array",
  44. "array": [
  45. 0,
  46. 0,
  47. 0,
  48. 0,
  49. 0,
  50. 0,
  51. 1,
  52. 1,
  53. 1,
  54. 1
  55. ]
  56. },
  57. "_is3DNode": true,
  58. "_groupIndex": 0,
  59. "groupIndex": 0,
  60. "autoReleaseAssets": false,
  61. "_id": "e0b077a5-a768-4184-ac80-a91a26ec6781"
  62. },
  63. {
  64. "__type__": "cc.Node",
  65. "_name": "Canvas",
  66. "_objFlags": 0,
  67. "_parent": {
  68. "__id__": 1
  69. },
  70. "_children": [
  71. {
  72. "__id__": 3
  73. },
  74. {
  75. "__id__": 5
  76. }
  77. ],
  78. "_active": true,
  79. "_components": [
  80. {
  81. "__id__": 18
  82. },
  83. {
  84. "__id__": 19
  85. }
  86. ],
  87. "_prefab": null,
  88. "_opacity": 255,
  89. "_color": {
  90. "__type__": "cc.Color",
  91. "r": 255,
  92. "g": 255,
  93. "b": 255,
  94. "a": 255
  95. },
  96. "_contentSize": {
  97. "__type__": "cc.Size",
  98. "width": 1280,
  99. "height": 720
  100. },
  101. "_anchorPoint": {
  102. "__type__": "cc.Vec2",
  103. "x": 0.5,
  104. "y": 0.5
  105. },
  106. "_trs": {
  107. "__type__": "TypedArray",
  108. "ctor": "Float64Array",
  109. "array": [
  110. 640,
  111. 360,
  112. 0,
  113. 0,
  114. 0,
  115. 0,
  116. 1,
  117. 1,
  118. 1,
  119. 1
  120. ]
  121. },
  122. "_eulerAngles": {
  123. "__type__": "cc.Vec3",
  124. "x": 0,
  125. "y": 0,
  126. "z": 0
  127. },
  128. "_skewX": 0,
  129. "_skewY": 0,
  130. "_is3DNode": false,
  131. "_groupIndex": 0,
  132. "groupIndex": 0,
  133. "_id": "a5esZu+45LA5mBpvttspPD"
  134. },
  135. {
  136. "__type__": "cc.Node",
  137. "_name": "Main Camera",
  138. "_objFlags": 0,
  139. "_parent": {
  140. "__id__": 2
  141. },
  142. "_children": [],
  143. "_active": true,
  144. "_components": [
  145. {
  146. "__id__": 4
  147. }
  148. ],
  149. "_prefab": null,
  150. "_opacity": 255,
  151. "_color": {
  152. "__type__": "cc.Color",
  153. "r": 255,
  154. "g": 255,
  155. "b": 255,
  156. "a": 255
  157. },
  158. "_contentSize": {
  159. "__type__": "cc.Size",
  160. "width": 0,
  161. "height": 0
  162. },
  163. "_anchorPoint": {
  164. "__type__": "cc.Vec2",
  165. "x": 0.5,
  166. "y": 0.5
  167. },
  168. "_trs": {
  169. "__type__": "TypedArray",
  170. "ctor": "Float64Array",
  171. "array": [
  172. 0,
  173. 0,
  174. 360.2665679743265,
  175. 0,
  176. 0,
  177. 0,
  178. 1,
  179. 1,
  180. 1,
  181. 1
  182. ]
  183. },
  184. "_eulerAngles": {
  185. "__type__": "cc.Vec3",
  186. "x": 0,
  187. "y": 0,
  188. "z": 0
  189. },
  190. "_skewX": 0,
  191. "_skewY": 0,
  192. "_is3DNode": false,
  193. "_groupIndex": 0,
  194. "groupIndex": 0,
  195. "_id": "e1WoFrQ79G7r4ZuQE3HlNb"
  196. },
  197. {
  198. "__type__": "cc.Camera",
  199. "_name": "",
  200. "_objFlags": 0,
  201. "node": {
  202. "__id__": 3
  203. },
  204. "_enabled": true,
  205. "_cullingMask": 4294967295,
  206. "_clearFlags": 7,
  207. "_backgroundColor": {
  208. "__type__": "cc.Color",
  209. "r": 0,
  210. "g": 0,
  211. "b": 0,
  212. "a": 255
  213. },
  214. "_depth": -1,
  215. "_zoomRatio": 1,
  216. "_targetTexture": null,
  217. "_fov": 60,
  218. "_orthoSize": 10,
  219. "_nearClip": 1,
  220. "_farClip": 4096,
  221. "_ortho": true,
  222. "_rect": {
  223. "__type__": "cc.Rect",
  224. "x": 0,
  225. "y": 0,
  226. "width": 1,
  227. "height": 1
  228. },
  229. "_renderStages": 1,
  230. "_alignWithScreen": true,
  231. "_id": "81GN3uXINKVLeW4+iKSlim"
  232. },
  233. {
  234. "__type__": "cc.Node",
  235. "_name": "joystick",
  236. "_objFlags": 0,
  237. "_parent": {
  238. "__id__": 2
  239. },
  240. "_children": [
  241. {
  242. "__id__": 6
  243. },
  244. {
  245. "__id__": 9
  246. },
  247. {
  248. "__id__": 12
  249. }
  250. ],
  251. "_active": true,
  252. "_components": [
  253. {
  254. "__id__": 15
  255. },
  256. {
  257. "__id__": 16
  258. }
  259. ],
  260. "_prefab": {
  261. "__id__": 17
  262. },
  263. "_opacity": 255,
  264. "_color": {
  265. "__type__": "cc.Color",
  266. "r": 255,
  267. "g": 255,
  268. "b": 255,
  269. "a": 255
  270. },
  271. "_contentSize": {
  272. "__type__": "cc.Size",
  273. "width": 750,
  274. "height": 720
  275. },
  276. "_anchorPoint": {
  277. "__type__": "cc.Vec2",
  278. "x": 0,
  279. "y": 0
  280. },
  281. "_trs": {
  282. "__type__": "TypedArray",
  283. "ctor": "Float64Array",
  284. "array": [
  285. -640,
  286. -360,
  287. 0,
  288. 0,
  289. 0,
  290. 0,
  291. 1,
  292. 1,
  293. 1,
  294. 1
  295. ]
  296. },
  297. "_eulerAngles": {
  298. "__type__": "cc.Vec3",
  299. "x": 0,
  300. "y": 0,
  301. "z": 0
  302. },
  303. "_skewX": 0,
  304. "_skewY": 0,
  305. "_is3DNode": false,
  306. "_groupIndex": 0,
  307. "groupIndex": 0,
  308. "_id": "33VhuzFuJN5o7t2Kc87Hyx"
  309. },
  310. {
  311. "__type__": "cc.Node",
  312. "_name": "JoystickBG",
  313. "_objFlags": 0,
  314. "_parent": {
  315. "__id__": 5
  316. },
  317. "_children": [],
  318. "_active": true,
  319. "_components": [
  320. {
  321. "__id__": 7
  322. }
  323. ],
  324. "_prefab": {
  325. "__id__": 8
  326. },
  327. "_opacity": 100,
  328. "_color": {
  329. "__type__": "cc.Color",
  330. "r": 255,
  331. "g": 255,
  332. "b": 255,
  333. "a": 255
  334. },
  335. "_contentSize": {
  336. "__type__": "cc.Size",
  337. "width": 248,
  338. "height": 248
  339. },
  340. "_anchorPoint": {
  341. "__type__": "cc.Vec2",
  342. "x": 0.5,
  343. "y": 0.5
  344. },
  345. "_trs": {
  346. "__type__": "TypedArray",
  347. "ctor": "Float64Array",
  348. "array": [
  349. 249.288,
  350. 248.51,
  351. 0,
  352. 0,
  353. 0,
  354. 0,
  355. 1,
  356. 1,
  357. 1,
  358. 1
  359. ]
  360. },
  361. "_eulerAngles": {
  362. "__type__": "cc.Vec3",
  363. "x": 0,
  364. "y": 0,
  365. "z": 0
  366. },
  367. "_skewX": 0,
  368. "_skewY": 0,
  369. "_is3DNode": false,
  370. "_groupIndex": 0,
  371. "groupIndex": 0,
  372. "_id": "0fJ7chy6VD/4ti6Aiyumtq"
  373. },
  374. {
  375. "__type__": "cc.Sprite",
  376. "_name": "",
  377. "_objFlags": 0,
  378. "node": {
  379. "__id__": 6
  380. },
  381. "_enabled": true,
  382. "_materials": [
  383. {
  384. "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
  385. }
  386. ],
  387. "_srcBlendFactor": 770,
  388. "_dstBlendFactor": 771,
  389. "_spriteFrame": {
  390. "__uuid__": "18528fea-11ac-493b-b59a-33072a846a7d"
  391. },
  392. "_type": 0,
  393. "_sizeMode": 1,
  394. "_fillType": 0,
  395. "_fillCenter": {
  396. "__type__": "cc.Vec2",
  397. "x": 0,
  398. "y": 0
  399. },
  400. "_fillStart": 0,
  401. "_fillRange": 0,
  402. "_isTrimmedMode": true,
  403. "_atlas": null,
  404. "_id": "816Qzs9BhFmJwznx9WMi5c"
  405. },
  406. {
  407. "__type__": "cc.PrefabInfo",
  408. "root": {
  409. "__id__": 5
  410. },
  411. "asset": {
  412. "__uuid__": "31897b10-ccee-4e31-893a-444c5845da7e"
  413. },
  414. "fileId": "da36A2GI1OpYi1dHo5OXph",
  415. "sync": false
  416. },
  417. {
  418. "__type__": "cc.Node",
  419. "_name": "Joystick",
  420. "_objFlags": 0,
  421. "_parent": {
  422. "__id__": 5
  423. },
  424. "_children": [],
  425. "_active": true,
  426. "_components": [
  427. {
  428. "__id__": 10
  429. }
  430. ],
  431. "_prefab": {
  432. "__id__": 11
  433. },
  434. "_opacity": 150,
  435. "_color": {
  436. "__type__": "cc.Color",
  437. "r": 255,
  438. "g": 255,
  439. "b": 255,
  440. "a": 255
  441. },
  442. "_contentSize": {
  443. "__type__": "cc.Size",
  444. "width": 172,
  445. "height": 172
  446. },
  447. "_anchorPoint": {
  448. "__type__": "cc.Vec2",
  449. "x": 0.5,
  450. "y": 0.5
  451. },
  452. "_trs": {
  453. "__type__": "TypedArray",
  454. "ctor": "Float64Array",
  455. "array": [
  456. 249.288,
  457. 248.51,
  458. 0,
  459. 0,
  460. 0,
  461. 0,
  462. 1,
  463. 1,
  464. 1,
  465. 1
  466. ]
  467. },
  468. "_eulerAngles": {
  469. "__type__": "cc.Vec3",
  470. "x": 0,
  471. "y": 0,
  472. "z": 0
  473. },
  474. "_skewX": 0,
  475. "_skewY": 0,
  476. "_is3DNode": false,
  477. "_groupIndex": 0,
  478. "groupIndex": 0,
  479. "_id": "c4qBRuoG9LbZ2uLYK5UEPf"
  480. },
  481. {
  482. "__type__": "cc.Sprite",
  483. "_name": "",
  484. "_objFlags": 0,
  485. "node": {
  486. "__id__": 9
  487. },
  488. "_enabled": true,
  489. "_materials": [
  490. {
  491. "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
  492. }
  493. ],
  494. "_srcBlendFactor": 770,
  495. "_dstBlendFactor": 771,
  496. "_spriteFrame": {
  497. "__uuid__": "fc466447-8b05-4804-ba84-d79a54a8409b"
  498. },
  499. "_type": 0,
  500. "_sizeMode": 1,
  501. "_fillType": 0,
  502. "_fillCenter": {
  503. "__type__": "cc.Vec2",
  504. "x": 0,
  505. "y": 0
  506. },
  507. "_fillStart": 0,
  508. "_fillRange": 0,
  509. "_isTrimmedMode": true,
  510. "_atlas": null,
  511. "_id": "1bSnoiBq1BwbqTtMazuS/q"
  512. },
  513. {
  514. "__type__": "cc.PrefabInfo",
  515. "root": {
  516. "__id__": 5
  517. },
  518. "asset": {
  519. "__uuid__": "31897b10-ccee-4e31-893a-444c5845da7e"
  520. },
  521. "fileId": "9fP4FRmExIFZ+Cw04dzGid",
  522. "sync": false
  523. },
  524. {
  525. "__type__": "cc.Node",
  526. "_name": "JoystickDir",
  527. "_objFlags": 0,
  528. "_parent": {
  529. "__id__": 5
  530. },
  531. "_children": [],
  532. "_active": true,
  533. "_components": [
  534. {
  535. "__id__": 13
  536. }
  537. ],
  538. "_prefab": {
  539. "__id__": 14
  540. },
  541. "_opacity": 255,
  542. "_color": {
  543. "__type__": "cc.Color",
  544. "r": 255,
  545. "g": 255,
  546. "b": 255,
  547. "a": 255
  548. },
  549. "_contentSize": {
  550. "__type__": "cc.Size",
  551. "width": 352,
  552. "height": 352
  553. },
  554. "_anchorPoint": {
  555. "__type__": "cc.Vec2",
  556. "x": 0.5,
  557. "y": 0.5
  558. },
  559. "_trs": {
  560. "__type__": "TypedArray",
  561. "ctor": "Float64Array",
  562. "array": [
  563. 249.288,
  564. 248.51,
  565. 0,
  566. 0,
  567. 0,
  568. 0,
  569. 1,
  570. 1,
  571. 1,
  572. 1
  573. ]
  574. },
  575. "_eulerAngles": {
  576. "__type__": "cc.Vec3",
  577. "x": 0,
  578. "y": 0,
  579. "z": 0
  580. },
  581. "_skewX": 0,
  582. "_skewY": 0,
  583. "_is3DNode": false,
  584. "_groupIndex": 0,
  585. "groupIndex": 0,
  586. "_id": "17wFVG+odJmJ6k6zovEWIh"
  587. },
  588. {
  589. "__type__": "cc.Sprite",
  590. "_name": "",
  591. "_objFlags": 0,
  592. "node": {
  593. "__id__": 12
  594. },
  595. "_enabled": true,
  596. "_materials": [
  597. {
  598. "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
  599. }
  600. ],
  601. "_srcBlendFactor": 770,
  602. "_dstBlendFactor": 771,
  603. "_spriteFrame": {
  604. "__uuid__": "de608144-c20d-45a7-abdb-16ac86134c13"
  605. },
  606. "_type": 0,
  607. "_sizeMode": 1,
  608. "_fillType": 0,
  609. "_fillCenter": {
  610. "__type__": "cc.Vec2",
  611. "x": 0,
  612. "y": 0
  613. },
  614. "_fillStart": 0,
  615. "_fillRange": 0,
  616. "_isTrimmedMode": true,
  617. "_atlas": null,
  618. "_id": "c6K86dbT9GzLYgDX5uyjTz"
  619. },
  620. {
  621. "__type__": "cc.PrefabInfo",
  622. "root": {
  623. "__id__": 5
  624. },
  625. "asset": {
  626. "__uuid__": "31897b10-ccee-4e31-893a-444c5845da7e"
  627. },
  628. "fileId": "75b41hQbFCbLK6x0eyT9ZX",
  629. "sync": false
  630. },
  631. {
  632. "__type__": "b82ddIB7qRLwIvRxyG7he4y",
  633. "_name": "",
  634. "_objFlags": 0,
  635. "node": {
  636. "__id__": 5
  637. },
  638. "_enabled": true,
  639. "mTouchType": 0,
  640. "mDirectionType": 0,
  641. "mDot": {
  642. "__id__": 9
  643. },
  644. "mRing": {
  645. "__id__": 6
  646. },
  647. "mDir": {
  648. "__id__": 12
  649. },
  650. "_id": "2fvubgxc9IDotAIAdF1740"
  651. },
  652. {
  653. "__type__": "cc.Widget",
  654. "_name": "",
  655. "_objFlags": 0,
  656. "node": {
  657. "__id__": 5
  658. },
  659. "_enabled": true,
  660. "alignMode": 1,
  661. "_target": null,
  662. "_alignFlags": 13,
  663. "_left": 0,
  664. "_right": 694,
  665. "_top": 0,
  666. "_bottom": 0,
  667. "_verticalCenter": 0,
  668. "_horizontalCenter": 0,
  669. "_isAbsLeft": true,
  670. "_isAbsRight": true,
  671. "_isAbsTop": true,
  672. "_isAbsBottom": true,
  673. "_isAbsHorizontalCenter": true,
  674. "_isAbsVerticalCenter": true,
  675. "_originalWidth": 640,
  676. "_originalHeight": 750,
  677. "_id": "03CTYad0ZHoZRVbH9zkJYa"
  678. },
  679. {
  680. "__type__": "cc.PrefabInfo",
  681. "root": {
  682. "__id__": 5
  683. },
  684. "asset": {
  685. "__uuid__": "31897b10-ccee-4e31-893a-444c5845da7e"
  686. },
  687. "fileId": "",
  688. "sync": false
  689. },
  690. {
  691. "__type__": "cc.Canvas",
  692. "_name": "",
  693. "_objFlags": 0,
  694. "node": {
  695. "__id__": 2
  696. },
  697. "_enabled": true,
  698. "_designResolution": {
  699. "__type__": "cc.Size",
  700. "width": 1280,
  701. "height": 720
  702. },
  703. "_fitWidth": false,
  704. "_fitHeight": true,
  705. "_id": "59Cd0ovbdF4byw5sbjJDx7"
  706. },
  707. {
  708. "__type__": "cc.Widget",
  709. "_name": "",
  710. "_objFlags": 0,
  711. "node": {
  712. "__id__": 2
  713. },
  714. "_enabled": true,
  715. "alignMode": 1,
  716. "_target": null,
  717. "_alignFlags": 45,
  718. "_left": 0,
  719. "_right": 0,
  720. "_top": 0,
  721. "_bottom": 0,
  722. "_verticalCenter": 0,
  723. "_horizontalCenter": 0,
  724. "_isAbsLeft": true,
  725. "_isAbsRight": true,
  726. "_isAbsTop": true,
  727. "_isAbsBottom": true,
  728. "_isAbsHorizontalCenter": true,
  729. "_isAbsVerticalCenter": true,
  730. "_originalWidth": 0,
  731. "_originalHeight": 0,
  732. "_id": "29zXboiXFBKoIV4PQ2liTe"
  733. }
  734. ]