Michael "Z" Goddard
0a006dc981
add Runtime.isWaitingThread
...
Add a Runtime Thread helper to check if a thread is in a state where it
will not change at least until next frame. This includes any state
where the thread is done, as that will not change either.
2018-06-06 10:16:05 -04:00
Michael "Z" Goddard
9311a274d5
add BlockUtility.yieldTick
2018-06-06 10:16:05 -04:00
Michael "Z" Goddard
84705fc463
replace new Promise(r => r()) with Promise.resolve
...
Promise.resolve is a Promise convenience method that creates a promise
resolved to a given argument like creating a promise with a function
that immediately calls the resolve function with the given value.
2018-06-06 09:53:45 -04:00
Andrew Sliwinski
c2645f3da5
Merge pull request #1210 from thisandagain/feature/polly
...
Add initial working version of the Amazon Polly extension
2018-06-05 18:35:38 -04:00
Andrew Sliwinski
bccdef0674
Future-proof opcode and fix issues with copied comments
2018-06-05 18:32:02 -04:00
Andrew Sliwinski
55b1a794ce
Add initial working version of the Amazon Polly extension
2018-06-05 17:51:55 -04:00
kchadha
1f209ad4e0
Merge pull request #1191 from kchadha/comment-events
...
Persist comment state.
2018-06-05 16:53:57 -04:00
Paul Kaplan
124a5d98f9
Merge pull request #1203 from paulkaplan/var-apis
...
APIs for getting and setting variable values
2018-06-05 16:12:46 -04:00
Paul Kaplan
a11d1be3fc
Fix comments
2018-06-05 16:08:14 -04:00
Karishma Chadha
644fab0135
Track block comment movement when block moves.
2018-06-05 15:40:19 -04:00
Karishma Chadha
7c5a2ae8e0
Add check that block associated with comment actually exists.
2018-06-05 15:17:28 -04:00
Karishma Chadha
d58bb8bcfb
Clean up optRuntime checks in blocklyListen
2018-06-05 15:13:03 -04:00
Karishma Chadha
2171cb69d0
No need to floor workspace coordinates in vm runtime.
2018-06-05 15:12:25 -04:00
Paul Kaplan
3a697ae0ac
Add top-level API for getting and setting variable values
2018-06-05 10:46:06 -04:00
Paul Kaplan
7b2f606316
Fix an issue where variable lookup would error if stage did not exist.
2018-06-05 10:45:51 -04:00
Eric Rosenbaum
ca6a7f9311
Merge pull request #1199 from picklesrus/speech-extension-loginfo
...
Add some log info with more information about the speech match so we …
2018-06-04 16:35:58 -04:00
picklesrus
e668a210a0
Add some log info with more information about the speech match so we can debug better.
2018-06-04 13:17:34 -07:00
Kreg Hanning
875dae43d4
Merge pull request #1198 from khanning/microbit-firmware-update
...
Update microbit extension for latest firmware
2018-06-04 15:28:11 -04:00
Kreg Hanning
9055706333
Add check for invalid symbol
2018-06-04 15:22:12 -04:00
Kreg Hanning
94464f0a52
Update microbit extension for latest firmware
2018-06-04 14:52:52 -04:00
Karishma Chadha
522706ccf8
Persist comment state.
2018-06-01 18:10:25 -04:00
Ray Schamp
bfa229535a
Merge pull request #1188 from mzgoddard/resolve-webpack-playground
...
fix: resolve scratch-*/src/index.js for expose-loader
2018-06-01 16:28:11 -04:00
Michael "Z" Goddard
fda288506a
fix: resolve scratch-*/src/index.js for expose-loader
...
require.resolve is a nodejs api that resolves as node resolves. An
enhanced-resolve instance, the library webpack uses, could resolve as
webpack will or we can use some slightly more manual definitions here
for exposing parts of scratch on the global object for the playground's
benchmark to use.
2018-06-01 13:38:18 -04:00
Eric Rosenbaum
294801c1f3
Merge pull request #1184 from ericrosenbaum/bugfix/sound-blocks-yield
...
Set/change sound effect and volume blocks yield until the next tick
2018-06-01 13:19:50 -04:00
Ray Schamp
1e7b0acfa5
Merge pull request #1186 from rschamp/bugfix/canvas-toblob
...
Clean up the rest of the dependencies
2018-05-31 18:10:41 -04:00
Ray Schamp
c915df3cc4
Clean up the rest of the dependencies
...
Hopefully.
2018-05-31 18:01:35 -04:00
Ray Schamp
ce71c7eb6a
Merge pull request #1185 from rschamp/bugfix/canvas-toblob
...
Make canvas-toBlob a dependency
2018-05-31 17:30:17 -04:00
Ray Schamp
61d7f70d1d
Make canvas-toBlob a dependency
2018-05-31 17:29:38 -04:00
Eric Rosenbaum
2348d55f14
Use promises to yield
2018-05-31 17:09:47 -04:00
Ray Schamp
0a857c2ee1
Merge pull request #1183 from rschamp/bugfix/highlightjs
...
Remove unused script-loader for highlightjs
2018-05-31 17:07:52 -04:00
Ray Schamp
14f56d713f
Make sure the thing can build in PRs
...
This would have caught the issue in #1106
2018-05-31 17:03:55 -04:00
Ray Schamp
6fb8d86880
Remove unused script-loader for highlightjs
2018-05-31 16:54:30 -04:00
Paul Kaplan
ac91d8af65
Merge pull request #1180 from kchadha/parse-sb2-comments
...
Import Comments from 2.0 Projects
2018-05-31 16:51:22 -04:00
Eric Rosenbaum
46f885fc03
Sound effect and volume blocks request redraw
2018-05-31 16:47:40 -04:00
Ray Schamp
44b03fea9b
Merge pull request #1106 from mzgoddard/dependents-no-boiler
...
Use src/index as browser entry point
2018-05-31 16:39:32 -04:00
Karishma Chadha
537dc9bcd5
Addressing PR comments.
2018-05-31 16:33:42 -04:00
Michael "Z" Goddard
4ceeebb257
Use src/index as browser entry point
...
Use src/index.js as the entry by default in tools building scratch-vm
into a larger package. This saves file space by excluding extra webpack
boilerplate and may allow for deeper optimizations.
Depend on script dependencies for downstream webpack. For another
package to build in scratch-vm's dependencies without them already
being built into a consumed webpack build they need to be listed as
dependencies. This can benefit large projects that reuse the same
dependencies multiple times. Node will still use the main entry point
and its webpack build leaves the dependencies as external references so
it may reuse common modules in Node as well as in a build a browser
environment.
2018-05-31 16:32:46 -04:00
Eric Rosenbaum
c9842ec3dc
Merge pull request #1121 from picklesrus/speech-extension-checkin
...
Initial version of the speech extension. There is certainly still so…
2018-05-31 15:35:09 -04:00
picklesrus
dd10cac3ef
Merge branch 'speech-extension-checkin' of https://github.com/picklesrus/scratch-vm into speech-extension-checkin
2018-05-31 12:18:25 -07:00
picklesrus
968eeaf936
Fix missing comma from bad merge.
2018-05-31 12:14:55 -07:00
Eric Rosenbaum
3810227496
Merge pull request #1181 from ericrosenbaum/feature/random-language
...
Translate block defaults to a random language
2018-05-31 12:00:05 -04:00
Eric Rosenbaum
3e43786ef6
Default to a random language
2018-05-31 11:48:37 -04:00
Karishma Chadha
acd728dc2b
No more xml differentiation for 'scratch' type of comments.
2018-05-30 21:18:45 -04:00
Karishma Chadha
f079eb4bbd
Don't serialize x and y for sb2 comments so that they can be auto positioned.
2018-05-30 21:18:45 -04:00
Karishma Chadha
b0aa288916
Add info about minimized state to comment xml.
2018-05-30 21:18:45 -04:00
Karishma Chadha
1639444a4d
Fix lint and tests.
2018-05-30 21:18:45 -04:00
Karishma Chadha
1401d54add
Parse SB2 comments and attach block comments to the blocks they belong to. Send comment xml on workspace update so they can be rendered.
2018-05-30 21:15:14 -04:00
picklesrus
3a5051646f
Now fuzzymatchResult is unused so remove it too.
2018-05-30 13:22:07 -07:00
picklesrus
bb408b8673
Remove some code that set the utterance to the fuzzy match result
2018-05-30 13:22:07 -07:00
picklesrus
e72ea04c10
Move the add event listener code to be in the same place where we call connect so there is only one place to do it.
2018-05-30 13:22:07 -07:00