Scarlett WebGL Graphics Framework repository
This repository contains the Scarlett Framework Module and associated libraries. At the moment this software is in Development Stage and not ready for production use.
- Install NodeJS (6.x or higher is recommended)
- Fork and clone the repo
$ npm install
to install dependencies$ npm run validate
to validate you've got it working
If also working on scarlett-editor (or any other project that depends on this framework), you might want to test it against a new and unreleased version of the framework. You can avoid manually copying the framework into the editor folder by referencing it instead. One good way is to use symlinks:
$ cd ~/projects/scarlett-framework
go into the package directory$ npm link
create a global link of the framework package$ cd ~/projects/scarlett-editor
go into the consumer directory$ npm link @scarlett-game-studio/scarlett-framework
link install the framework
scarlett-editor/node_modules
should now have the framework within. Rebuilding the framework with:
$ npm run build:editor
or $ npm run build:all
and refreshing/restarting the editor should be enough to update the framework version within the editor.
There are 3 different builds:
$ npm run build
- Browser (ES6) - should support the latest 2 versions. Handy when developing and testing on the browser.$ npm run build:editor
- CommonJS - version used when requiring the package (e.g., within scarlett-editor). Handy within node projects.$ npm run build:deploy
- Browser Minified (ES6) - should support the latest 2 versions. Handy when a browser project is ready to deploy.
You can also run all of the above with $ npm run build:all
- Webstorm
- Visual Studio Code
- Atom
This project uses the latest Ecma6 Javascript features and therefore if you are using an IDE such as IntelliJ or Webstorm it might detect code errors when using the default settings.
To allow Ecma6 syntax make sure to change the Javascript Version in the settings menu (Settings -> Languages & Frameworks -> Javascript).
- All main source code can be found in the /src folder
- Altough this project can be associated to the Scarlett-Editor, it can be used for standalone development (see /demos folder)
- Repo owner or admin
- Other community or team contact