GameScene.ls 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847
  1. {
  2. "version":"LAYASCENE3D:01",
  3. "data":{
  4. "type":"Scene3D",
  5. "props":{
  6. "name":"GameScene",
  7. "ambientColor":[
  8. 0.212,
  9. 0.227,
  10. 0.259
  11. ],
  12. "lightmaps":[],
  13. "enableFog":false,
  14. "fogStart":0,
  15. "fogRange":300,
  16. "fogColor":[
  17. 0.5,
  18. 0.5,
  19. 0.5
  20. ]
  21. },
  22. "child":[
  23. {
  24. "type":"Camera",
  25. "props":{
  26. "name":"Main Camera",
  27. "active":true,
  28. "isStatic":false,
  29. "layer":0,
  30. "position":[
  31. 1.71,
  32. 7.4,
  33. -10.01
  34. ],
  35. "rotation":[
  36. -0.02379568,
  37. 0.9470121,
  38. 0.3120562,
  39. 0.07226899
  40. ],
  41. "scale":[
  42. 1,
  43. 1,
  44. 1
  45. ],
  46. "clearFlag":1,
  47. "orthographic":false,
  48. "fieldOfView":60,
  49. "nearPlane":0.3,
  50. "farPlane":1000,
  51. "viewport":[
  52. 0,
  53. 0,
  54. 1,
  55. 1
  56. ],
  57. "clearColor":[
  58. 0.1921569,
  59. 0.3019608,
  60. 0.4745098,
  61. 0
  62. ]
  63. },
  64. "components":[],
  65. "child":[]
  66. },
  67. {
  68. "type":"DirectionLight",
  69. "props":{
  70. "name":"Directional Light",
  71. "active":true,
  72. "isStatic":false,
  73. "layer":0,
  74. "position":[
  75. 0,
  76. 3,
  77. 0
  78. ],
  79. "rotation":[
  80. 0.1093816,
  81. 0.8754261,
  82. 0.4082179,
  83. -0.2345697
  84. ],
  85. "scale":[
  86. 1,
  87. 1,
  88. 1
  89. ],
  90. "intensity":1,
  91. "lightmapBakedType":0,
  92. "color":[
  93. 1,
  94. 0.9568627,
  95. 0.8392157
  96. ]
  97. },
  98. "components":[],
  99. "child":[]
  100. },
  101. {
  102. "type":"Sprite3D",
  103. "props":{
  104. "name":"Wall",
  105. "active":true,
  106. "isStatic":false,
  107. "layer":8,
  108. "position":[
  109. 2.48,
  110. 0,
  111. 0
  112. ],
  113. "rotation":[
  114. 0,
  115. 0.7071068,
  116. 0,
  117. -0.7071068
  118. ],
  119. "scale":[
  120. 1,
  121. 1,
  122. 1
  123. ]
  124. },
  125. "components":[],
  126. "child":[
  127. {
  128. "type":"MeshSprite3D",
  129. "props":{
  130. "name":"wall",
  131. "active":true,
  132. "isStatic":false,
  133. "layer":8,
  134. "position":[
  135. 0,
  136. 1,
  137. 0
  138. ],
  139. "rotation":[
  140. 0,
  141. 0,
  142. 0,
  143. -1
  144. ],
  145. "scale":[
  146. 1,
  147. 1,
  148. 1
  149. ],
  150. "meshPath":"Assets/LastRes/wall-Wall.lm",
  151. "enableRender":true,
  152. "materials":[
  153. {
  154. "path":"Assets/LastRes/Materials/Black.lmat"
  155. }
  156. ]
  157. },
  158. "components":[
  159. {
  160. "type":"PhysicsCollider",
  161. "restitution":0,
  162. "friction":0.5,
  163. "rollingFriction":0,
  164. "shapes":[
  165. {
  166. "type":"BoxColliderShape",
  167. "center":[
  168. 0,
  169. 0,
  170. 0
  171. ],
  172. "size":[
  173. 2,
  174. 2,
  175. 0.25
  176. ]
  177. }
  178. ],
  179. "isTrigger":false
  180. }
  181. ],
  182. "child":[]
  183. }
  184. ]
  185. },
  186. {
  187. "type":"Sprite3D",
  188. "props":{
  189. "name":"Wall (1)",
  190. "active":true,
  191. "isStatic":false,
  192. "layer":8,
  193. "position":[
  194. 0,
  195. 0,
  196. 0
  197. ],
  198. "rotation":[
  199. 0,
  200. 0.7071068,
  201. 0,
  202. -0.7071068
  203. ],
  204. "scale":[
  205. 1,
  206. 1,
  207. 1
  208. ]
  209. },
  210. "components":[],
  211. "child":[
  212. {
  213. "type":"MeshSprite3D",
  214. "props":{
  215. "name":"wall",
  216. "active":true,
  217. "isStatic":false,
  218. "layer":8,
  219. "position":[
  220. 0,
  221. 1,
  222. 0
  223. ],
  224. "rotation":[
  225. 0,
  226. 0,
  227. 0,
  228. -1
  229. ],
  230. "scale":[
  231. 1,
  232. 1,
  233. 1
  234. ],
  235. "meshPath":"Assets/LastRes/wall-Wall.lm",
  236. "enableRender":true,
  237. "materials":[
  238. {
  239. "path":"Assets/LastRes/Materials/Black.lmat"
  240. }
  241. ]
  242. },
  243. "components":[
  244. {
  245. "type":"PhysicsCollider",
  246. "restitution":0,
  247. "friction":0.5,
  248. "rollingFriction":0,
  249. "shapes":[
  250. {
  251. "type":"BoxColliderShape",
  252. "center":[
  253. 0,
  254. 0,
  255. 0
  256. ],
  257. "size":[
  258. 2,
  259. 2,
  260. 0.25
  261. ]
  262. }
  263. ],
  264. "isTrigger":false
  265. }
  266. ],
  267. "child":[]
  268. }
  269. ]
  270. },
  271. {
  272. "type":"Sprite3D",
  273. "props":{
  274. "name":"Wall (2)",
  275. "active":true,
  276. "isStatic":false,
  277. "layer":8,
  278. "position":[
  279. -2.48,
  280. 0,
  281. 0
  282. ],
  283. "rotation":[
  284. 0,
  285. 0.7071068,
  286. 0,
  287. -0.7071068
  288. ],
  289. "scale":[
  290. 1,
  291. 1,
  292. 1
  293. ]
  294. },
  295. "components":[],
  296. "child":[
  297. {
  298. "type":"MeshSprite3D",
  299. "props":{
  300. "name":"wall",
  301. "active":true,
  302. "isStatic":false,
  303. "layer":8,
  304. "position":[
  305. 0,
  306. 1,
  307. 0
  308. ],
  309. "rotation":[
  310. 0,
  311. 0,
  312. 0,
  313. -1
  314. ],
  315. "scale":[
  316. 1,
  317. 1,
  318. 1
  319. ],
  320. "meshPath":"Assets/LastRes/wall-Wall.lm",
  321. "enableRender":true,
  322. "materials":[
  323. {
  324. "path":"Assets/LastRes/Materials/Black.lmat"
  325. }
  326. ]
  327. },
  328. "components":[
  329. {
  330. "type":"PhysicsCollider",
  331. "restitution":0,
  332. "friction":0.5,
  333. "rollingFriction":0,
  334. "shapes":[
  335. {
  336. "type":"BoxColliderShape",
  337. "center":[
  338. 0,
  339. 0,
  340. 0
  341. ],
  342. "size":[
  343. 2,
  344. 2,
  345. 0.25
  346. ]
  347. }
  348. ],
  349. "isTrigger":false
  350. }
  351. ],
  352. "child":[]
  353. }
  354. ]
  355. },
  356. {
  357. "type":"MeshSprite3D",
  358. "props":{
  359. "name":"Plane",
  360. "active":true,
  361. "isStatic":false,
  362. "layer":0,
  363. "position":[
  364. 0,
  365. 0,
  366. 0
  367. ],
  368. "rotation":[
  369. 0,
  370. 0,
  371. 0,
  372. -1
  373. ],
  374. "scale":[
  375. 12.96822,
  376. 1,
  377. 13.81933
  378. ],
  379. "meshPath":"Library/unity default resources-Plane.lm",
  380. "enableRender":true,
  381. "materials":[
  382. {
  383. "type":"Laya.BlinnPhongMaterial",
  384. "path":"Assets/LastRes/Materials/Floor.lmat"
  385. }
  386. ]
  387. },
  388. "components":[
  389. {
  390. "type":"PhysicsCollider",
  391. "restitution":0,
  392. "friction":0.5,
  393. "rollingFriction":0,
  394. "shapes":[
  395. {
  396. "type":"MeshColliderShape",
  397. "mesh":"Library/unity default resources-Plane.lm"
  398. }
  399. ],
  400. "isTrigger":false
  401. }
  402. ],
  403. "child":[]
  404. },
  405. {
  406. "type":"Sprite3D",
  407. "props":{
  408. "name":"Players",
  409. "active":true,
  410. "isStatic":false,
  411. "layer":0,
  412. "position":[
  413. 0,
  414. 0,
  415. 0
  416. ],
  417. "rotation":[
  418. 0,
  419. 0,
  420. 0,
  421. -1
  422. ],
  423. "scale":[
  424. 1,
  425. 1,
  426. 1
  427. ]
  428. },
  429. "components":[],
  430. "child":[
  431. {
  432. "type":"Sprite3D",
  433. "props":{
  434. "name":"player_shoot1",
  435. "active":true,
  436. "isStatic":false,
  437. "layer":9,
  438. "position":[
  439. 0.893,
  440. 0,
  441. -2.857
  442. ],
  443. "rotation":[
  444. 0,
  445. -0.452746,
  446. 0,
  447. -0.8916396
  448. ],
  449. "scale":[
  450. 1,
  451. 1,
  452. 1
  453. ]
  454. },
  455. "components":[
  456. {
  457. "type":"PhysicsCollider",
  458. "restitution":0,
  459. "friction":0.5,
  460. "rollingFriction":0,
  461. "shapes":[
  462. {
  463. "type":"CapsuleColliderShape",
  464. "center":[
  465. 0,
  466. 0.86,
  467. 0
  468. ],
  469. "radius":0.3496907,
  470. "height":1.718704
  471. }
  472. ],
  473. "isTrigger":false
  474. },
  475. {
  476. "type":"Animator",
  477. "avatar":{
  478. "path":"Assets/LastRes/pasted__polySurface112-player_shoot1-pasted__polySurface112Avatar.lav",
  479. "linkSprites":{
  480. "GUN:pCube1":[
  481. "GUN:pCube1"
  482. ],
  483. "GUN:pCube2":[
  484. "GUN:pCube2"
  485. ],
  486. "bulletPos":[
  487. "bulletPos"
  488. ],
  489. "Shell":[
  490. "Shell"
  491. ]
  492. }
  493. },
  494. "layers":[],
  495. "cullingMode":0,
  496. "playOnWake":true
  497. }
  498. ],
  499. "child":[
  500. {
  501. "type":"SkinnedMeshSprite3D",
  502. "props":{
  503. "name":"pasted__polySurface11",
  504. "active":true,
  505. "isStatic":false,
  506. "layer":9,
  507. "position":[
  508. -4.836681,
  509. -0.8724918,
  510. -0.9277173
  511. ],
  512. "rotation":[
  513. 0,
  514. 0,
  515. 0,
  516. -1
  517. ],
  518. "scale":[
  519. 1,
  520. 1,
  521. 1
  522. ],
  523. "rootBone":"Floppy_Hips",
  524. "boundBox":{
  525. "min":[
  526. -0.8979983,
  527. -0.2801096,
  528. -0.4452674
  529. ],
  530. "max":[
  531. 0.9362673,
  532. 0.7032709,
  533. 0.40298
  534. ]
  535. },
  536. "boundSphere":{
  537. "center":[
  538. 0.01913446,
  539. 0.2115806,
  540. -0.0211437
  541. ],
  542. "radius":1.123732
  543. },
  544. "materials":[
  545. {
  546. "path":"Assets/LastRes/Materials/Gray.lmat"
  547. }
  548. ],
  549. "meshPath":"Assets/LastRes/pasted__polySurface11-pasted__polySurface11.lm"
  550. },
  551. "components":[],
  552. "child":[]
  553. },
  554. {
  555. "type":"MeshSprite3D",
  556. "props":{
  557. "name":"GUN:pCube1",
  558. "active":true,
  559. "isStatic":false,
  560. "layer":9,
  561. "position":[
  562. 0.05002916,
  563. 1.143232,
  564. 0.7839249
  565. ],
  566. "rotation":[
  567. -0.01783611,
  568. -0.0001072428,
  569. 0.005287394,
  570. -0.9998269
  571. ],
  572. "scale":[
  573. 2.688133,
  574. 2.688132,
  575. 2.688132
  576. ],
  577. "meshPath":"Assets/CrackRes/gun1-GUN_pCube1.lm",
  578. "enableRender":true,
  579. "materials":[
  580. {
  581. "type":"Laya.BlinnPhongMaterial",
  582. "path":"Assets/CrackRes/Materials/Black.lmat"
  583. }
  584. ]
  585. },
  586. "components":[],
  587. "child":[]
  588. },
  589. {
  590. "type":"MeshSprite3D",
  591. "props":{
  592. "name":"GUN:pCube2",
  593. "active":true,
  594. "isStatic":false,
  595. "layer":9,
  596. "position":[
  597. 0.0501879,
  598. 1.165311,
  599. 0.5989527
  600. ],
  601. "rotation":[
  602. -0.01783611,
  603. -0.0001072428,
  604. 0.005287394,
  605. -0.9998269
  606. ],
  607. "scale":[
  608. 2.688133,
  609. 2.688132,
  610. 2.688132
  611. ],
  612. "meshPath":"Assets/CrackRes/gun1-GUN_pCube2.lm",
  613. "enableRender":true,
  614. "materials":[
  615. {
  616. "type":"Laya.BlinnPhongMaterial",
  617. "path":"Assets/CrackRes/Materials/Black.lmat"
  618. }
  619. ]
  620. },
  621. "components":[],
  622. "child":[]
  623. },
  624. {
  625. "type":"MeshSprite3D",
  626. "props":{
  627. "name":"bulletPos",
  628. "active":true,
  629. "isStatic":false,
  630. "layer":9,
  631. "position":[
  632. 0.05295496,
  633. 1.157302,
  634. 1.05427
  635. ],
  636. "rotation":[
  637. -0.01905761,
  638. -0.0001007989,
  639. 0.005287521,
  640. -0.9998044
  641. ],
  642. "scale":[
  643. 1,
  644. 1,
  645. 1
  646. ],
  647. "enableRender":false,
  648. "materials":[]
  649. },
  650. "components":[],
  651. "child":[]
  652. },
  653. {
  654. "type":"MeshSprite3D",
  655. "props":{
  656. "name":"Shell",
  657. "active":true,
  658. "isStatic":false,
  659. "layer":9,
  660. "position":[
  661. 0.05298791,
  662. 1.174534,
  663. 0.6837572
  664. ],
  665. "rotation":[
  666. -0.7204443,
  667. 0.00366756,
  668. 0.003810125,
  669. -0.6934927
  670. ],
  671. "scale":[
  672. 1.5,
  673. 1.5,
  674. 1.5
  675. ],
  676. "meshPath":"Assets/CrackRes/gun1-Shell.lm",
  677. "enableRender":true,
  678. "materials":[
  679. {
  680. "type":"Laya.BlinnPhongMaterial",
  681. "path":"Assets/CrackRes/Materials/Black.lmat"
  682. }
  683. ]
  684. },
  685. "components":[],
  686. "child":[]
  687. }
  688. ]
  689. }
  690. ]
  691. },
  692. {
  693. "type":"Sprite3D",
  694. "props":{
  695. "name":"Mosters",
  696. "active":true,
  697. "isStatic":false,
  698. "layer":0,
  699. "position":[
  700. 0,
  701. 0,
  702. 0
  703. ],
  704. "rotation":[
  705. 0,
  706. 0,
  707. 0,
  708. -1
  709. ],
  710. "scale":[
  711. 1,
  712. 1,
  713. 1
  714. ]
  715. },
  716. "components":[],
  717. "child":[]
  718. },
  719. {
  720. "type":"Sprite3D",
  721. "props":{
  722. "name":"bulletR",
  723. "active":true,
  724. "isStatic":false,
  725. "layer":0,
  726. "position":[
  727. -1.07,
  728. 1.68,
  729. -4.1
  730. ],
  731. "rotation":[
  732. 0,
  733. -0.7113516,
  734. 0,
  735. -0.7028363
  736. ],
  737. "scale":[
  738. 1,
  739. 1,
  740. 1
  741. ]
  742. },
  743. "components":[],
  744. "child":[
  745. {
  746. "type":"MeshSprite3D",
  747. "props":{
  748. "name":"Cylinder",
  749. "active":true,
  750. "isStatic":false,
  751. "layer":0,
  752. "position":[
  753. 0,
  754. 0,
  755. 0.5
  756. ],
  757. "rotation":[
  758. -0.7071068,
  759. 0,
  760. 0,
  761. -0.7071068
  762. ],
  763. "scale":[
  764. 0.05,
  765. 0.5,
  766. 0.05
  767. ],
  768. "meshPath":"Library/unity default resources-Cylinder.lm",
  769. "enableRender":true,
  770. "materials":[
  771. {
  772. "type":"Laya.BlinnPhongMaterial",
  773. "path":"Assets/RM.lmat"
  774. }
  775. ]
  776. },
  777. "components":[],
  778. "child":[]
  779. }
  780. ]
  781. },
  782. {
  783. "type":"Sprite3D",
  784. "props":{
  785. "name":"bulletG",
  786. "active":true,
  787. "isStatic":false,
  788. "layer":0,
  789. "position":[
  790. -1.1,
  791. 1.68,
  792. -6.49
  793. ],
  794. "rotation":[
  795. 0,
  796. -0.7113516,
  797. 0,
  798. -0.7028363
  799. ],
  800. "scale":[
  801. 1,
  802. 1,
  803. 1
  804. ]
  805. },
  806. "components":[],
  807. "child":[
  808. {
  809. "type":"MeshSprite3D",
  810. "props":{
  811. "name":"Cylinder",
  812. "active":true,
  813. "isStatic":false,
  814. "layer":0,
  815. "position":[
  816. 0,
  817. 0,
  818. 0.5
  819. ],
  820. "rotation":[
  821. -0.7071068,
  822. 0,
  823. 0,
  824. -0.7071068
  825. ],
  826. "scale":[
  827. 0.05,
  828. 0.5,
  829. 0.05
  830. ],
  831. "meshPath":"Library/unity default resources-Cylinder.lm",
  832. "enableRender":true,
  833. "materials":[
  834. {
  835. "type":"Laya.BlinnPhongMaterial",
  836. "path":"Assets/GM.lmat"
  837. }
  838. ]
  839. },
  840. "components":[],
  841. "child":[]
  842. }
  843. ]
  844. }
  845. ]
  846. }
  847. }