Apps that communicate with Java Runtime, NW.JS, Node.JS and Adobe Air in a few code lines. This is our integration with SEA3D Studio that unites the best framework available for creating of Web content.
In SEA3D Studio Apps folder C:/SEA3DStudio/apps you can find several Apps in open-source:
This could help to get references.
Creating a new App
1. Create a new file
2. Create a Poonya Script
After created renamed to Main (Optional)
3. Add includes in script
Remove all code and write:
This will include automatically the libraries to the App.
4. Add FileInfo Name/Author and App
Select the first file in Explorer. Default name is Asset and create a Name/Author.
name : Title of project
user : Your Poonya username
author : Your name/site/company
version : VVSSBB | V = Version | S = Subversion | B = Buildversion
ns : username.app_unique_name ( namespace )
ns in this tutorial is sea3d.helloworld
Click in App field and select the script created
Notice that the icon in the explorer has changed for a App file.
Save the app as main.app.sea inside of folder.
The final result of the tutorial will be this:
All tutorial files you can find here:
Add callback with NW.JS / Node.JS
All App based on NW.JS must start with an .html in this case create a file index.html.
It is necessary to add the script sea3d.app.js.
Now add a simple callback in Java Script.
Calling NW.JS by Poonya Script
C:/SEA3DStudio/settings.json in "apps" add the ns.
Zip all dependencies for setup.zip e.g:
After this include the setup.zip in your App in Extras as shown in the picture below:
Your Zip file will be extracted automatically at installation.
Your App is ready to be published.
Click in File -> Save / Publish and complete the operation as shown in the images below.
How about install your APP :)
All Apps published were available in the SEA3D Store.
I hope you enjoy.