Reputation: 1021
I can open the THREE.js editor at http://threejs.org/editor/. I can open an example app e.g. PONG. I can activate interactive animation by clicking on Play in the menu bar. I can deactivate the animation by clicking on Stop in the menu bar.
I wish to edit the Main Script (the "Scene/Game logic" script) using the Editor as per this illustration:- https://plus.google.com/photos/+ricardocabello/albums/6104607340192211937/6104607354618509202?pid=6104607354618509202&oid=113862800338869870683
I can access Script controls for graphical objects. But how do I access the Main Script?
I am using
Opera version 28.0.1750.51
Laptop System: Windows 7 32-bit.
Upvotes: 0
Views: 3566
Reputation: 1021
Aha. Got it.
Within the "SCENE" panel on the RHS of the Editor it is necessary to select the "Scene" object. This will add another panel called "SCENE" and below that there will be added another panel called "SCRIPT". (May need to scroll down to see it). The loaded "Game logic" script will be indicated. Just click on the "Edit" button to display the javascript in the main window of the Editor.
Upvotes: 0
Reputation: 721
Go on the Pong project. From there you can click on file-> Publish. Unzip the file then you can see app.js in js folder. It's the script that is controlling the animation. It's the only way I know to view the source. Hope this help! :)
Upvotes: 1