index.vwf.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. {
  2. "extends": "proxy/aframe/ascene.vwf",
  3. "properties":{
  4. "sampleCube": false,
  5. "currentCube": null,
  6. "currentCommand": null
  7. },
  8. "methods":{
  9. "initialize":{},
  10. "createRubik":{
  11. "parameters":[
  12. "id",
  13. "robot"
  14. ]
  15. },
  16. "doOnRubik":{
  17. "parameters":[
  18. "command"
  19. ]
  20. }
  21. },
  22. "children": {
  23. "floorTexture": {
  24. "extends": "proxy/aframe/a-asset-image-item.vwf",
  25. "properties": {
  26. "itemID": "bg2",
  27. "itemSrc": "/defaults/assets/checker.jpg"
  28. }
  29. },
  30. "skyTexture": {
  31. "extends": "proxy/aframe/a-asset-image-item.vwf",
  32. "properties": {
  33. "itemID": "sky",
  34. "itemSrc": "/defaults/assets/skyes/sky3.jpg"
  35. }
  36. },
  37. "screen": {
  38. "extends": "proxy/aframe/aplane.vwf",
  39. "properties": {
  40. "height": "7",
  41. "width": "9",
  42. "rotation": [
  43. 10,
  44. -16,
  45. 2
  46. ],
  47. "position":[10,5.5,-12]
  48. },
  49. "children": {
  50. "material": {
  51. "extends": "proxy/aframe/aMaterialComponent.vwf",
  52. "properties": {
  53. "wireframe": false,
  54. "src": "#",
  55. "color": "black"
  56. }
  57. }
  58. }
  59. },
  60. "screen2": {
  61. "extends": "proxy/aframe/aplane.vwf",
  62. "properties": {
  63. "height": "8",
  64. "width": "10",
  65. "rotation": [
  66. 10,
  67. -16,
  68. 2
  69. ],
  70. "position":[10,5.5,-12.01]
  71. },
  72. "children": {
  73. "material": {
  74. "extends": "proxy/aframe/aMaterialComponent.vwf",
  75. "properties": {
  76. "wireframe": false,
  77. "color": "#b56e3f"
  78. }
  79. }
  80. }
  81. },
  82. "groundPlane": {
  83. "extends": "proxy/aframe/aplane.vwf",
  84. "properties": {
  85. "height": "50",
  86. "width": "50",
  87. "rotation": [
  88. -90,
  89. 0,
  90. 0
  91. ]
  92. },
  93. "children": {
  94. "material": {
  95. "extends": "proxy/aframe/aMaterialComponent.vwf",
  96. "properties": {
  97. "wireframe": false,
  98. "src": "#bg2",
  99. "repeat": "10 10"
  100. }
  101. }
  102. }
  103. },
  104. "myLight": {
  105. "extends": "proxy/aframe/alight.vwf",
  106. "properties": {
  107. "type": "ambient",
  108. "color": "#dddddd"
  109. }
  110. },
  111. "myLight2": {
  112. "extends": "proxy/aframe/alight.vwf",
  113. "properties": {
  114. "type": "directional",
  115. "color": "#FFF",
  116. "intensity": 0.6,
  117. "position": [0,10,3]
  118. }
  119. },
  120. "sky": {
  121. "extends": "proxy/aframe/asky.vwf",
  122. "children": {
  123. "material": {
  124. "extends": "proxy/aframe/aMaterialComponent.vwf",
  125. "properties": {
  126. "color": "#ECECEC",
  127. "src": "#sky",
  128. "fog": false,
  129. "side": "back"
  130. }
  131. }
  132. }
  133. },
  134. "spaceText": {
  135. "extends": "proxy/aframe/atext.vwf",
  136. "properties": {
  137. "value": "Rubik's Cube app",
  138. "color": "white",
  139. "position": [-4,5.5,-7],
  140. "scale": [3,3,3]
  141. }
  142. },
  143. "box": {
  144. "extends": "proxy/aframe/abox.vwf",
  145. "properties": {
  146. "position": [
  147. 0,
  148. 0,
  149. -3
  150. ],
  151. "rotation": [
  152. 0,
  153. 0,
  154. 0
  155. ],
  156. "depth": "3",
  157. "height": "0.2",
  158. "width": "3"
  159. },
  160. "children": {
  161. "material": {
  162. "extends": "proxy/aframe/aMaterialComponent.vwf",
  163. "properties": {
  164. "color": "#0c2913"
  165. }
  166. }
  167. }
  168. }
  169. },
  170. "scripts":{
  171. "source": "rubik.js"
  172. }
  173. }