Commit graph

87 commits

Author SHA1 Message Date
Ray Schamp
662ba3c645 Replace Makefile with npm scripts
Allows Windows users to run what's currently in the Makefile
2016-10-17 09:56:32 -04:00
Tim Mickel
85c8b599a0 Update dirty transform before calculating bounds (#47) 2016-10-12 15:20:40 -04:00
Tim Mickel
8e7a85d1a6 Fix y coordinates of bounding box (#46) 2016-10-12 14:32:14 -04:00
Tim Mickel
c00f0f55fc Math.max mix-up
Bounding to a minimum, we should use `Math.max`...
2016-10-12 13:46:32 -04:00
Tim Mickel
1fa97d248b Expose skin/costume size (#45)
* Expose skin/costume size

* Return skin size as a copy
2016-10-11 18:43:57 -04:00
Tim Mickel
a62d52a2d0 Calculating tight bounding boxes for Drawables (#42) 2016-10-11 18:14:14 -04:00
Tim Mickel
f1ac1a8211 Add RenderWebGL.prototype.isTouchingDrawables (#43) 2016-10-11 18:13:46 -04:00
Tim Mickel
14018f5ff6 Apply ghost effect after discard (#44) 2016-10-11 17:37:28 -04:00
Tim Mickel
7629b2ab6d Add setDrawableOrder for layering (#41)
* Add `setDrawableOrder` for layering

* Add 0-limit for newIndex
2016-10-07 17:57:47 -04:00
Ray Schamp
d261b57cd1 Merge pull request #40 from LLK/npm
Publish to NPM and Github Pages
2016-09-27 10:28:17 -04:00
Ray Schamp
d813dd9191 Lint 2016-09-27 09:42:04 -04:00
Ray Schamp
053092c85b Alphabetize 2016-09-27 09:29:42 -04:00
Ray Schamp
9fa35524de Be accurate in version comment 2016-09-27 09:22:01 -04:00
Ray Schamp
d7d1f92a13 Remove empty dependencies field 2016-09-27 00:53:25 -04:00
Ray Schamp
59337ef8b5 Update version format for usage with semver
Tracking the version under one `-prerelease` channel allows other packages to depend on `^0.1.0-prerelease` for the most up to date version.

Track the git sha for the release in package.json

Reuse the json package needed for writing the sha to retrieve the package.json version field
2016-09-27 00:52:27 -04:00
Ray Schamp
09dc67fa83 Set playground as dev server content base
For consistency with scratch-vm.
The redirect from index to playground was already unnecessary.
2016-09-26 11:58:26 -04:00
Ray Schamp
856f919970 Add explanatory comments, update gh-pages message 2016-09-25 13:52:40 -04:00
Ray Schamp
9f26ab17eb Publish playground to gh-pages 2016-09-24 15:26:37 -04:00
Ray Schamp
d91ddf4158 Publish to NPM 2016-09-24 15:26:37 -04:00
Ray Schamp
201ceaba77 Merge pull request #39 from rschamp/build-dist
Use path to webpack for postinstall
2016-09-20 16:48:10 -04:00
Ray Schamp
a6c8be8226 Use path to webpack for postinstall 2016-09-20 16:25:24 -04:00
Ray Schamp
89402a88c7 Merge pull request #38 from LLK/build-dist
Build module to be imported
2016-09-20 15:39:05 -04:00
Ray Schamp
278cddf04e Build module to be imported
If another package wants to import `src/index.js`, it needs to replicate the loader config in `webpack.config.js`. To avoid this, package the module in `dist.js` and set that as the module to require.

I changed `main` to point to this so that other packages can just `require('scratch-blocks')`, but it would also work for our purposes to add `"webpack": "./dist.js"` if we want to keep `src/index.js` as `main`.
2016-09-20 09:13:35 -04:00
Tim Mickel
fb3f677e2c Remove worker support (#36)
* Remove WebWorker support

* Recompile Sept. 14
2016-09-15 19:01:44 -04:00
Tim Mickel
a5fb65ebeb Recompile 3 Sept. 12 (#34) 2016-09-12 12:24:51 -04:00
Tim Mickel
2b81b791b3 Use the right skin format in playground demo (#33) 2016-09-12 12:08:56 -04:00
Tim Mickel
042f0f0353 Fix asset URL handling from #27 (#32)
* Fix URL handling of assets

* Recompile 2 Sept 12
2016-09-12 11:55:08 -04:00
Tim Mickel
69821db56f Recompile Sept 12 (#31) 2016-09-12 11:06:53 -04:00
TheBrokenRail
3277584da9 Offline Sprites (#27)
* Added Scratch Cat SVG

* Offline Scratch Cat

* Moved To SRC

* Update README.md

* Delete Travis

* Add Travis YML

* Recompile

* Add files via upload

* Recompile Part 1

* Recompile Part 1

* Recompile Part 1

* Recompile Part 1

* Recompile!

* Not Needed

* Recompile For Real

* Update README.md

* Added Stage Offline

* Less Hacky Offline

* Recompile

* Fixed Line Length
2016-09-12 11:03:57 -04:00
Andrew Sliwinski
19bb8b99c3 Build 2016-08-08 15:00:04 -04:00
Andrew Sliwinski
bf26fe41e8 Update demo worker based on feedback from @cwillisf 2016-08-08 14:59:51 -04:00
Andrew Sliwinski
92fc916b86 Synchronize with master branch 2016-08-08 14:58:35 -04:00
Andrew Sliwinski
f5cd625be8 Fix issue in worker where 'window' is undefined 2016-08-08 14:28:06 -04:00
Andrew Sliwinski
b8cc5f5245 Update documentation in README 2016-08-08 14:23:25 -04:00
Andrew Sliwinski
47b5d07497 Update gitignore 2016-08-08 14:23:01 -04:00
Andrew Sliwinski
672947ca56 Normalize build result naming to match VM conventions 2016-08-08 14:22:54 -04:00
Andrew Sliwinski
fc7db05978 Add Travis configuration 2016-08-08 14:22:21 -04:00
Andrew Sliwinski
3dca142bb9 Move “demo” into “playground” directory as to match VM and Blocks 2016-08-08 14:22:06 -04:00
Andrew Sliwinski
894ada4960 Move development dependencies into “devDependencies” in package.json 2016-08-08 14:21:21 -04:00
Andrew Sliwinski
86ae0d63e3 Remove unused test commands and clean-up Makefile 2016-08-08 14:21:01 -04:00
Andrew Sliwinski
5c75fc0112 Remove IDEA IDE specific configuration files. 2016-08-08 14:20:32 -04:00
Christopher Willis-Ford
543f05d6d4 Use babel-polyfill, plus compatibility fixes 2016-06-16 14:30:32 -07:00
Christopher Willis-Ford
ef100bf91e Make API consistent from page and worker
RenderWebGL{Local,Worker} class methods return Promise instances from
all methods returning a value. This makes the API consistent from a
Web Worker vs. the local page, and also allows the possibility of
asynchronous render queries in the future.
2016-06-16 12:59:48 -07:00
Christopher Willis-Ford
b00ec4c501 Rename WorkerRemote to RenderWebGLWorker 2016-06-15 15:36:46 -07:00
Christopher Willis-Ford
ad94df4afe Use ES6 class definitions 2016-06-15 15:21:58 -07:00
Christopher Willis-Ford
2c9e17d486 Use babel for ES6 / ES2015 support 2016-06-15 14:39:44 -07:00
Christopher Willis-Ford
f3a80c3429 Split 'index' files into 3: node, web, worker 2016-06-15 13:48:02 -07:00
Chris Willis-Ford
73ae8c205d Add missing raw-loader package 2016-06-14 18:55:38 -04:00
Christopher Willis-Ford
fc10df7e41 Allow driving the renderer from a web worker
The build generates a new output set called `render-webgl-worker`, meant
to be imported from a web worker. This exposes the `RenderWebGLRemote`
class to facilitate communication with the renderer using `postMessage`
and `onmessage`.
Only a few messages are implemented so far, but it's enough to run the
demo page.
2016-06-14 11:45:35 -07:00
Christopher Willis-Ford
f0dae7aa48 Fix GL errors when using SVG Drawable early
Drawable now creates its own temporary texture upon construction. This
1x1 transparent texture is ready immediately and is replaced once a real
skin is loaded. This slightly simplifies some of the skin loading code
but more importantly prevents GL errors caused when trying to draw a
Drawable if it hasn't yet created its "real" texture, as in the SVG load
path.
2016-06-13 10:23:54 -07:00