index.vwf.json 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. {
  2. "extends": "proxy/aframe/ascene.vwf",
  3. "properties": {},
  4. "methods": {
  5. "initialize": {
  6. "body": " this.globalTransport.init();\n console.log(\"INIT TRANSPORT!!!\");\n",
  7. "type": "application/javascript"
  8. }
  9. },
  10. "children": {
  11. "fog": {
  12. "extends": "proxy/aframe/aSceneFogComponent.vwf",
  13. "type": "component",
  14. "properties": {
  15. "fogType": "linear",
  16. "fogColor": "#ECECEC",
  17. "far": 20,
  18. "near": 0
  19. }
  20. },
  21. "floorTexture": {
  22. "extends": "proxy/aframe/a-asset-image-item.vwf",
  23. "properties": {
  24. "itemID": "bg2",
  25. "itemSrc": "/defaults/assets/checker.jpg"
  26. }
  27. },
  28. "newSky": {
  29. "extends": "proxy/aframe/aentity.vwf",
  30. "children": {
  31. "skyshader": {
  32. "extends": "proxy/aframe/app-skyshader-component.vwf"
  33. }
  34. }
  35. },
  36. "groundPlane": {
  37. "extends": "proxy/aframe/aplane.vwf",
  38. "properties": {
  39. "height": "50",
  40. "width": "50",
  41. "rotation": [
  42. -90,
  43. 0,
  44. 0
  45. ]
  46. },
  47. "children": {
  48. "material": {
  49. "extends": "proxy/aframe/aMaterialComponent.vwf",
  50. "properties": {
  51. "wireframe": false,
  52. "src": "#bg2",
  53. "repeat": "10 10"
  54. }
  55. }
  56. }
  57. },
  58. "myLight": {
  59. "extends": "proxy/aframe/alight.vwf",
  60. "properties": {
  61. "type": "point",
  62. "color": "white",
  63. "position": [
  64. 0,
  65. 10,
  66. 5
  67. ],
  68. "rotation": [
  69. 0,
  70. 0,
  71. 0
  72. ]
  73. }
  74. },
  75. "spaceText": {
  76. "extends": "proxy/aframe/atext.vwf",
  77. "properties": {
  78. "value": "Music World",
  79. "color": "#2b5d83",
  80. "position":
  81. [-1.2,2.5,-3]
  82. }
  83. },
  84. "notesLine":{
  85. "extends": "proxy/aframe/aentity.vwf",
  86. "properties":{
  87. "position": "0 0 -3"
  88. },
  89. "children":{
  90. "note1": {
  91. "includes": "proxy/objects/music/note.vwf",
  92. "properties": {
  93. "position": "0 1 0"
  94. }
  95. },
  96. "note2": {
  97. "includes": "proxy/objects/music/note.vwf",
  98. "properties": {
  99. "position": "1.2 2 0"
  100. }
  101. },
  102. "note3": {
  103. "includes": "proxy/objects/music/note.vwf",
  104. "properties": {
  105. "position": "-0.7 0.5 0"
  106. }
  107. },
  108. "note4": {
  109. "includes": "proxy/objects/music/note.vwf",
  110. "properties": {
  111. "position": "0.6 1.5 0"
  112. }
  113. }
  114. },
  115. "scripts":{
  116. "source":"sequence.js"
  117. }
  118. },
  119. "instrument": {
  120. "extends": "proxy/aframe/abox.vwf",
  121. "properties": {
  122. "position": "-1.6 1 -3",
  123. "rotation": "0 0 0",
  124. "depth": 1,
  125. "height": 0.5,
  126. "width": 0.5,
  127. "class": "clickable intersectable"
  128. },
  129. "methods": {
  130. "clickEventMethod": {},
  131. "doButtonTriggerdownAction": {
  132. "parameters":["value"]
  133. }
  134. },
  135. "events": {
  136. "clickEvent": {}
  137. },
  138. "children": {
  139. "playButton":{
  140. "extends": "proxy/objects/gui/button.vwf",
  141. "properties": {
  142. "target": null,
  143. "displayName": "playButton",
  144. "position": [-0.5, 0.5, 0.3],
  145. "clickColor": "blue",
  146. "baseColor": "green",
  147. "height": 0.4,
  148. "width": 0.4,
  149. "text": "Play"
  150. }
  151. },
  152. "transportLine": {
  153. "extends": "proxy/aframe/abox.vwf",
  154. "properties": {
  155. "position": "0 1.5 0",
  156. "rotation": "0 0 0",
  157. "depth": 1.1,
  158. "height": 5,
  159. "width": 0.04,
  160. "delta": 1,
  161. "end": 5,
  162. "playing":false
  163. },
  164. "methods": {
  165. "initialize":{},
  166. "run":{},
  167. "play": {},
  168. "stop": {},
  169. "fromhitstartEventMethod": {
  170. "parameters": [
  171. "value"
  172. ]
  173. },
  174. "fromhitendEventMethod": {
  175. "parameters": [
  176. "value"
  177. ]
  178. }
  179. },
  180. "children": {
  181. "material": {
  182. "extends": "proxy/aframe/aMaterialComponent.vwf",
  183. "properties": {
  184. "color": "white",
  185. "opacity": 0.5
  186. }
  187. },
  188. "aabb-collider": {
  189. "extends": "proxy/aframe/aabb-collider-component.vwf",
  190. "type": "component",
  191. "properties": {
  192. "debug": false,
  193. "interval": 10,
  194. "objects": ".hit"
  195. }
  196. },
  197. "interpolation": {
  198. "extends": "proxy/aframe/interpolation-component.vwf",
  199. "type": "component",
  200. "properties": {
  201. "enabled": false
  202. }
  203. }
  204. },
  205. "scripts": {
  206. "source": "transportLine.js"
  207. }
  208. },
  209. "synth": {
  210. "extends": "proxy/tonejs/synth.vwf",
  211. "properties": {}
  212. },
  213. "material": {
  214. "extends": "proxy/aframe/aMaterialComponent.vwf",
  215. "properties": {
  216. "color": "white"
  217. }
  218. },
  219. "raycaster-listener": {
  220. "extends": "proxy/aframe/app-raycaster-listener-component.vwf",
  221. "type": "component"
  222. },
  223. "cursor-listener": {
  224. "extends": "proxy/aframe/app-cursor-listener-component.vwf",
  225. "type": "component"
  226. }
  227. },
  228. "scripts": {
  229. "source": "instrument.js"
  230. }
  231. },
  232. "drum": {
  233. "extends": "proxy/aframe/abox.vwf",
  234. "properties": {
  235. "position": "0 1 -4.5",
  236. "rotation": "0 0 0",
  237. "depth": 1,
  238. "height": 0.5,
  239. "width": 0.5,
  240. "class": "clickable intersectable",
  241. "seq": [{ "beat": 0, "msg": "C0" }, { "beat": 15, "msg": "C0" }]
  242. },
  243. "methods": {
  244. "clickEventMethod": {},
  245. "doButtonTriggerdownAction": {
  246. "parameters":["value"]
  247. }
  248. },
  249. "events": {
  250. "clickEvent": {}
  251. },
  252. "children": {
  253. "playButton":{
  254. "extends": "proxy/objects/gui/button.vwf",
  255. "properties": {
  256. "target": null,
  257. "displayName": "playButton",
  258. "position": [-0.5, 0.5, 0.3],
  259. "clickColor": "blue",
  260. "baseColor": "green",
  261. "height": 0.4,
  262. "width": 0.4,
  263. "text": "Play"
  264. }
  265. },
  266. "synth": {
  267. "extends": "proxy/tonejs/membraneSynth.vwf",
  268. "properties": {}
  269. },
  270. "material": {
  271. "extends": "proxy/aframe/aMaterialComponent.vwf",
  272. "properties": {
  273. "color": "white"
  274. }
  275. },
  276. "raycaster-listener": {
  277. "extends": "proxy/aframe/app-raycaster-listener-component.vwf",
  278. "type": "component"
  279. },
  280. "cursor-listener": {
  281. "extends": "proxy/aframe/app-cursor-listener-component.vwf",
  282. "type": "component"
  283. }
  284. },
  285. "scripts": {
  286. "source": "generate.js"
  287. }
  288. },
  289. "globalTransport": {
  290. "extends": "proxy/aframe/transport.vwf",
  291. "properties": {
  292. "displayName": "global",
  293. "position": [3,2.5,-3]
  294. }
  295. }
  296. }
  297. }