Commit Graph
1691 Commits
Author SHA1 Message Date
Corey Frang a86202b8e2 make onError a prototype method 2018-04-10 13:59:23 -04:00
Corey Frang 0180964333 Simplify setup method promise, add onError 2018-04-10 13:59:23 -04:00
Corey Frang 89dd4720a4 store ghost state so previews will use last value whenever setup 2018-04-10 13:59:23 -04:00
Corey Frang d0a71dcaf9 store the ghost effect in case preview is setup after it was last set 2018-04-10 13:59:23 -04:00
Corey Frang e20723994f fix sb2 conversion to load into correct VIDEO_STATE 2018-04-10 13:59:22 -04:00
Corey Frang 9cd5e4da2b Reduce indentation waterfall 2018-04-10 13:59:22 -04:00
Corey Frang f3a956af2b add enabled state tracking, disable state waits for setup complete 2018-04-10 13:59:22 -04:00
Corey Frang ce03e978dc stop the track in the "on-off" scenario 2018-04-10 13:59:22 -04:00
Corey Frang 825ff22fa4 Guard against some issues that could happen with enable/disable video quickly 2018-04-10 13:59:22 -04:00
Corey Frang f19ae793c0 enableVideo - get rid of "requests" 2018-04-10 13:59:22 -04:00
Corey Frang efa6b3a069 stop track 2018-04-10 13:59:22 -04:00
Corey Frang 46b4ef4d80 Use a global mirror state 2018-04-10 13:59:21 -04:00
Corey Frang 90166dc732 Add extra control blocks for video transparency and on/off control 2018-04-10 13:59:21 -04:00
Corey Frang e4bd9cf6b2 Move methods around to sort the public interface nearer the top 2018-04-10 13:57:54 -04:00
Corey Frang 992e884668 Make disableVideo a public method 2018-04-10 13:57:54 -04:00
Corey Frang d512042415 Add set preview ghost 2018-04-10 13:57:54 -04:00
Corey Frang da05e673fa _singleSetup makes more sense 2018-04-10 13:57:54 -04:00
Corey Frang c10696f88c Rewrite the setup/disable process from review comments 2018-04-10 13:57:53 -04:00
Corey Frang eef88f6c2d First draft of video IO device 2018-04-10 13:57:53 -04:00
Michael "Z" Goddard cd7e03f0f6 Merge pull request #1019 from mzgoddard/motion-detect-3
Test VideoMotion and VideoSensing blocks
2018-04-10 13:06:58 -04:00
kchadha d177f4cd0c Merge pull request #1033 from towerofnix/counter-vm
Implement counter blocks
2018-04-09 13:55:35 -04:00
kchadha b794e19c31 Merge pull request #1032 from towerofnix/while-vm
Implement "while" block
2018-04-09 13:48:08 -04:00
Florrie 797d16be26 Implement counter blocks 2018-04-07 16:02:49 -03:00
Florrie 466a3b62ef Add test for repeatWhile 2018-04-07 14:07:15 -03:00
Florrie c57d0c94eb Add implementation for while 2018-04-07 14:04:00 -03:00
Florrie 27d053acff Add doWhile -> control_while to specmap 2018-04-07 14:04:00 -03:00
Michael "Z" Goddard d3ff8b5eed Test VideoMotion and VideoSensing blocks
- Add pngjs dev dependency to read test images
2018-04-06 18:09:50 -04:00
Michael "Z" Goddard 0591b475f2 Merge pull request #1020 from gnarf/sb2-spec-when-video-motion
Allow specmap to have methods to branch into multiple sb3 opcodes
2018-04-06 14:28:17 -04:00
Eric Rosenbaum 25f1c1a5e6 Merge pull request #1017 from ericrosenbaum/bugfix/clones-inherit-instrument
Clones inherit music custom state
2018-04-06 13:38:03 -04:00
kchadha 4b62a938c4 Merge pull request #1000 from kchadha/deserialize-assets-in-sb2
Deserialize sb2 assets while loading local .sb2.
2018-04-06 11:33:00 -04:00
Karishma Chadha 963163eaa7 Use test storage without web sources for offline .sb2 test. 2018-04-06 10:51:49 -04:00
Ray Schamp 8b036e4e3b Merge pull request #1025 from rschamp/reorder-deploys
Reorder NPM deploy to first position
2018-04-06 10:14:26 -04:00
Ray Schamp fc1a5ffc7d Reorder NPM deploy to first position
I think this should fix the odd "0.1.0-prerelease.####-prerelease.#####" version numbers.
2018-04-06 10:13:29 -04:00
Ray Schamp d69b73fe26 Merge pull request #1024 from rschamp/remove-video-icon
Remove video motion icon until we have one
2018-04-06 09:59:07 -04:00
Ray Schamp efb1bdb1ea Remove video motion icon until we have one 2018-04-06 09:55:16 -04:00
Ray Schamp 9801aa1ded Merge pull request #1022 from mzgoddard/fix-missing-video-sensing-interval
Add back missing Scratch3VideoSensingBlocks.INTERVAL
2018-04-05 18:50:51 -04:00
Michael "Z" Goddard 91747fd229 Add back missing Scratch3VideoSensingBlocks.INTERVAL
The INTERVAL time defines how often to analyze a frame. Without the value the
test whether a frame should be analyzed will always be false.
2018-04-05 17:47:07 -04:00
Corey Frang 78199c41a5 Allow specmap to have methods to branch into multiple sb3 opcodes 2018-04-05 15:39:41 -04:00
Eric Rosenbaum 2a90e5868d Fix runtime scope and unit test 2018-04-05 15:01:52 -04:00
Karishma Chadha b2a4f563a0 Pull JSON.parse into extractProjectJson function. 2018-04-05 13:58:45 -04:00
Karishma Chadha 6c2838e8f4 Renaming file reading/extracting functions in tests. 2018-04-05 13:46:07 -04:00
Ray Schamp 41955913aa Merge pull request #1007 from mzgoddard/motion-detect-2
Motion detect 2
2018-04-05 11:59:59 -04:00
Eric Rosenbaum 88b13e218d Clones inherit music custom state 2018-04-05 11:27:54 -04:00
Karishma Chadha af32f0772e Add integration test for offline sb2 project with custom assets not on the server. 2018-04-05 10:51:15 -04:00
Eric Rosenbaum 21ae14c499 Merge pull request #1014 from ericrosenbaum/bugfix/video-state
Import and store video state
2018-04-04 19:59:14 -04:00
Eric Rosenbaum 5dc8e51c6d Import and store video state 2018-04-03 16:36:58 -04:00
Michael "Z" Goddard d4bffcbddb Rename playground/motion.html to video-sensing.html 2018-04-03 16:19:52 -04:00
Michael "Z" Goddard 6d2c29530f Document VideoMotionView 2018-04-03 16:19:52 -04:00
Michael "Z" Goddard 9a2e937271 Document VideoMotion class
- Rename video_sensing/lib.js to video_sensing/library.js
2018-04-03 16:19:52 -04:00
Michael "Z" Goddard a32b15a8f9 Add VideoSensing math module
- motionVector takes motion component and returns a 2d vector
- scratchAtan2 takes a y and x value and returns an angle in degrees
  referencing Scratch's coordinate system
2018-04-03 16:19:52 -04:00