A dart/webgl project for the web_play html5 app.

Build instructions

1. Get dart IDE up and running

 - From https://www.jetbrains.com/idea/download/ download
  IntelliJ IDEA Community edition for your platform.

 - Download Dartium browser and dart-sdk
  https://www.dartlang.org/downloads/archive/
 - Unpack the 2 folders
 
 - Install dart plugin
  File -> Settings... -> Plugins -> Enter 'dart' in the searchbar,
  'Search in repositories' and install the found plugin.
  
2. Make a clean copy of this folder (free from '.svn' folders)

 - Run project_clean_copy.bat
  This will create 'web_play_work'.
  On other than windows, make a clean copy manually.

3. Import project into IntelliJ

 - In IntelliJ:
  File -> New -> Project from existing sources
  select web_play_work folder created in step 2 and click
  next a couple of times then finish

 - Enable dart
  File -> Settings... -> Languages & Framework -> Dart
  Check 'Enable Dart support...'
  Fill in SDK path and path to Dartium
  Check project box in 'Enable Dart support for the following modules'
 - Get libs
  Open main.dart in the editor
  Click 'Upgrade dependencies'

4.1 Build and debug (as dart in dartium)

 [ Since they took away the eclipse dart plugin there is no way to debug in an IDE for free.
 This instruction works if you decide to get the full version of IntelliJ instead of the community version
 https://www.jetbrains.com/help/idea/2017.1/running-and-debugging-dart-web-applications.html#d383273e94 ]

 Another option is to debug from the browser
 - In IntelliJ:
  Right click 'index.html' in the project
  Select Open in Browser -> Dartium

 - In Dartium
  Menu -> More tools -> Tools for developers
  Browse the code and set breakpoints and debug the running dart code.

4.2 Build and run (as javascript in browser)

 - Mac: Enable WebGL in Safari browser
  Safari -> Preferences -> Advanced, check 'Show Develop menu in menu bar'
  Develop -> Enable WebGL

 - In IntelliJ:
  Right click 'index.html' in the project
  Select Open in Browser -> any browser but Dartium

4.3 Build release to upload to web server

 - Copy changed source files back to 'web' folder
 - Edit make_release.bat to reflect where you have the 'dart-sdk\bin' folder
 - Run make_release.bat from explorer by double clicking it
 - Upload web_play.js (depends on all files in the ./files folder)
