Commit Graph

569 Commits

Author SHA1 Message Date
DD Liu
1230dab7eb Merge pull request #276 from fsih/updateSvgRenderer2
Attempt 2 at adding scratch-svg-renderer module update
2018-05-10 17:02:28 -04:00
DD
e7ef981a51 Merge branch 'develop' into updateSvgRenderer2 2018-05-10 16:57:07 -04:00
DD
b89c938b15 add back vm 2018-05-10 16:56:49 -04:00
DD Liu
8caeac6e6a Merge pull request #278 from gnarf/fix-integration-test
Fix a thread status check in integration tests to allow "done" threads
2018-05-10 16:56:20 -04:00
Corey Frang
ab8fda1655 Even simpler way to check that some thread is active 2018-05-10 16:17:38 -04:00
Corey Frang
5579f121a9 Fix a thread status check in integration tests to allow "done" threads 2018-05-10 16:13:10 -04:00
DD
a8831a8e8e Try only updating svg renderer 2018-05-10 16:04:28 -04:00
DD Liu
6119fba08e Merge pull request #275 from LLK/revert-274-updateSvgRenderer
Revert "Update svg renderer and vm. These contain font changes"
2018-05-10 14:58:12 -04:00
DD Liu
66d477b3ac Revert "Update svg renderer and vm. These contain font changes" 2018-05-10 14:53:43 -04:00
DD Liu
2e22344b0c Merge pull request #274 from fsih/updateSvgRenderer
Update svg renderer and vm. These contain font changes
2018-05-10 14:40:47 -04:00
DD
6aac0854eb update svg renderer and vm. These contain font changes' 2018-05-10 14:39:48 -04:00
Ray Schamp
7442cc945b Merge pull request #271 from mzgoddard/babel-preset-env
Replace babel-preset-es2015 with babel-preset-env
2018-05-08 16:47:14 -04:00
Michael "Z" Goddard
6b393ecc39 Replace babel-preset-es2015 with babel-preset-env 2018-05-08 16:46:06 -04:00
Ray Schamp
4a4173046a Merge pull request #270 from mzgoddard/webpack-4
Update to webpack 4
2018-05-08 12:57:25 -04:00
Michael "Z" Goddard
041de9e157 Update to webpack 4
- Remove unused base64-loader
2018-05-07 12:18:39 -04:00
DD Liu
bfefdfc552 Merge pull request #269 from fsih/updateBitmapSkinJsdoc
Fix jsdoc
2018-05-04 10:36:22 -04:00
DD
3be6a4d4a8 Fix jsdoc 2018-05-04 10:22:47 -04:00
Paul Kaplan
c85a13958a Merge pull request #267 from paulkaplan/sudo-fix-color-bug
Fix color inversion bug on mobile
2018-05-02 07:43:22 -04:00
Paul Kaplan
0b849296c0 Merge pull request #268 from paulkaplan/fix-blurry-fullscreen
Scale the drawable scale by the ratio of pixel size to native size.
2018-05-02 07:43:07 -04:00
Paul Kaplan
085931cb4f Scale the drawable scale by the ratio of pixel size to native size.
This makes the vector sprites not blurry in fullscreen mode
2018-04-30 16:33:35 -04:00
Paul Kaplan
bd8ca26bb7 Fix color inversion bug on mobile 2018-04-30 15:54:13 -04:00
Mx Corey Frang
2b8371e5af Rewrite isTouchingDrawables on CPU (#263)
* avoid gl.readPixels at all costs
2018-04-27 16:19:25 -04:00
Mx Corey Frang
e5d1516b1b Quick example of a collision test integration test (#265)
* Quick example of a collision test integration test

* Add a test for ghost and hidden sprites

* enable scratch/es6 which then had my lint error for `(param) => {}` arrows

* cleanup npm test command

* an a was an an but should have been an a

* 2space tabs for the html doc

* Add some comments in the integration index html

* Add a few more comments about intentionally leaking variables into the global scope

* add some more comments for the integration helper and add a timeout

* 4 space tabs are actually correct

* adding even more comments and improving readability a little

* fix lint no-shadow rule

* fix indentation on comment
2018-04-27 13:06:34 -04:00
DD Liu
a153a72e5b Merge pull request #266 from fsih/renderTakeOff2Factor
Pass in factor of 2 instead of having magic 2s
2018-04-27 10:26:41 -04:00
DD
26f2039f39 We decided that it should not be the renderers responsibility to know a detail about how the paint editor works, and have the bitmap resolution passed in instead 2018-04-26 17:58:48 -04:00
DD Liu
d9c5b595a2 Merge pull request #264 from fsih/updateBitmap
Add updateBitmapSkin to renderer
2018-04-25 14:11:57 -04:00
DD
a49c455d9b Update bitmap 2018-04-24 17:01:59 -04:00
kchadha
54ce1528a0 Merge pull request #262 from kchadha/travis-config
Update travis config and update to node 8
2018-04-23 17:17:50 -04:00
Karishma Chadha
b3ad2b2064 Correct the scripts in .travis.yml 2018-04-23 16:57:56 -04:00
Karishma Chadha
094d8b0a5d Update travis config and update to node 8 2018-04-23 16:50:24 -04:00
kchadha
393b5daf35 Merge pull request #260 from kchadha/get-rotation-center
getSkinRotationCenter API and support for new scratch-svg-renderer
2018-04-23 15:55:10 -04:00
Karishma Chadha
e2a1865a93 Update scratch-svg-renderer version 2018-04-23 15:43:04 -04:00
Karishma Chadha
ac1f5564a3 Bitmap (+ double resolution) support. 2018-04-22 21:30:28 -04:00
Karishma Chadha
1f574d6ee3 Provide an api to get the calulated rotation center from the rendered costume 2018-04-20 00:01:41 -04:00
Paul Kaplan
4d1aed64a7 Merge pull request #254 from paulkaplan/skin-size
Add method for getting the size of a skin by skin id.
2018-04-11 09:30:23 -04:00
Paul Kaplan
bbcf6f73d3 Add method for getting the size of a skin by skin id.
Renamed the `getSkinSize` method to `getCurrentSkinSize`, since it was
using the drawables current skin. Added a new `getSkinSize` method that
works by skin id.
2018-04-10 10:00:54 -04:00
Paul Kaplan
8545474160 Merge pull request #252 from paulkaplan/new-svg-version
Update scratch-svg-renderer version
2018-03-29 14:03:02 -04:00
Paul Kaplan
097e2d3fe9 Update scratch-svg-renderer version 2018-03-29 14:01:48 -04:00
Paul Kaplan
e02cc5ae03 Merge pull request #248 from paulkaplan/fix-bubble-bounds
Add "get bounds for bubble" method.
2018-03-23 14:35:52 -04:00
Paul Kaplan
0b731b92a6 Add "get bounds for bubble" method.
Note there was an inconsequential coordinate flip in the original
transformation code, which was fixed in order for the sliced bounds to
work. The change is at line 388
2018-03-23 10:58:21 -04:00
Chris Willis-Ford
57d834c42e Merge pull request #235 from mzgoddard/calc-transform-cache
Drawable _calculateTransform cache and inline work
2018-01-24 15:41:31 -08:00
Chris Willis-Ford
f8c781c163 Merge pull request #227 from cwillisf/use-browser-field
Update packaging to use UMD and the browser field
2018-01-24 15:21:16 -08:00
Christopher Willis-Ford
28e35f64a9 Update to latest scratch-svg-renderer (again)
Now with actual uglify support
2018-01-23 21:42:40 -08:00
Christopher Willis-Ford
90bd7c2841 Update to latest scratch-svg-renderer
This should fix UglifyJS errors when other modules include this one.
2018-01-23 20:37:31 -08:00
Michael "Z" Goddard
b59b5a3075 Put Drawable skin scale updating behind dirty flag
- Clean out "showing your work" in calculate transform
- Add comments on inline math blocks from twgl
2018-01-23 14:15:59 -05:00
Michael "Z" Goddard
46bc30e4ee Inline most calculateTransform math 2018-01-23 14:14:38 -05:00
Michael "Z" Goddard
40ab1bd59d Cache drawable's rotation matrix and rotation center vector
Building a rotation matrix needs to call trigonometry functions. Cache the
resulting matrix to save future time on non-rotation motion.
2018-01-23 14:14:01 -05:00
DD Liu
b3418e0887 Merge pull request #234 from fsih/pull231
Extract svg-renderer out into a separate module
2018-01-22 20:15:48 -05:00
DD
d46cc4fec7 Merge branch 'develop' into pull231 2018-01-19 17:33:17 -05:00
DD
008abed073 correct case 2018-01-19 17:19:58 -05:00