Commit graph

7642 commits

Author SHA1 Message Date
TheBrokenRail
cb4a75928e Add NPM Script 'build' 2016-10-04 20:25:06 -04:00
Liam
5871672551 Implement "go to" block (#238)
* Implement "go to" block

* Add a missing semicolon

My text editor doesn't automatically insert them and I'm not used to using
semicolons so much. :(

* Implement go-to-random

* Clean up the go-to-random code a bit

* Add rounding to _random_ picks
2016-10-04 18:19:52 -04:00
Andrew Sliwinski
a688004418 Merge branch 'develop' of github.com:LLK/scratch-vm into develop 2016-10-04 15:29:17 -04:00
Andrew Sliwinski
6cd9697bed Add secure environment var for coveralls. Re GH-103 2016-10-04 15:21:55 -04:00
Liam
886bcbe3c1 Implement the point-towards block (#235)
* Implement the point-towards block

* Pointing towards a nonexistent sprite should do nothing, not throw an error
2016-10-04 15:20:53 -04:00
Andrew Sliwinski
1f30b175a4 Merge pull request #233 from thisandagain/bugfix/coverage
Add unit test coverage for operator blocks
2016-10-04 14:41:51 -04:00
Andrew Sliwinski
157b6152f5 Address feedback from PR review. GH-103 2016-10-04 14:37:39 -04:00
Eric Rosenbaum
0db0783fe8 working on sound font player 2016-10-04 14:19:04 -04:00
Andrew Sliwinski
edb109a296 Add code coverage badge to README. Re GH-103 2016-10-03 22:05:45 -04:00
Andrew Sliwinski
3f0650f625 Merge branch 'develop' into bugfix/coverage 2016-10-03 21:48:44 -04:00
Andrew Sliwinski
953c892aab Add unit test coverage for operator blocks. Resolves GH-103 2016-10-03 21:43:31 -04:00
Andrew Sliwinski
85caa46753 Merge pull request #228 from thisandagain/bugfix/coverage
Add unit tests for all utility modules
2016-10-03 21:42:40 -04:00
Eric Rosenbaum
086dd35329 comments 2016-10-03 20:07:42 -04:00
Andrew Sliwinski
4205d05cdb Address feedback from PR review. GH-103 2016-10-03 18:23:43 -04:00
Tim Mickel
0a66c62f6a Mutations in block representation; an unfeatured procedure call (#212)
* Add scratch3_procedures and no-op for defnoreturn

* Add mutation adapter to parse mutations in CREATE/CHANGE events

* Add mutation-to-XML

* Update spec map for Blockly procedure names

* Placeholder for procedure special cases

* Basic stepping to procedures

* Remove extra case

* Validation for changeBlock
2016-10-03 17:43:24 -04:00
Andrew Sliwinski
8ca6944292 Add unit tests for all utility modules. Re GH-103 2016-10-03 16:34:57 -04:00
Tim Mickel
dd624aea06 Update toolbox for data_list rename (#227) 2016-10-03 11:44:08 -04:00
Ray Schamp
b98577129e Merge pull request #226 from rschamp/scratch-dependencies
Ensure scratch-* dependencies are up to date
2016-10-03 11:38:43 -04:00
Ray Schamp
5b3fe7ee1b Ensure scratch-* dependencies are up to date
With node_modules cached, npm install sees the scratch-* dependencies satisfied (since if any version 0.1.0-prepublish.x satisfies ^0.1.0-prepublish).  So remove these before the install step to ensure the latest version is installed.
2016-10-03 11:35:13 -04:00
Tim Mickel
5728d648b1 Ensure clone.effects is defined on each instance (#225)
* Ensure clone.effects is defined on each instance

* Add regression test for GH-224
2016-10-03 10:16:43 -04:00
Eric Rosenbaum
e1df4b3aaf fixed dictionary of loaded sounds 2016-10-01 17:27:28 -04:00
Tim Mickel
2226fda19e Implement rotation style (#223) 2016-09-28 17:09:04 -04:00
Tim Mickel
d10ba11c8f Round costume values (#221) 2016-09-28 16:43:12 -04:00
Tim Mickel
a585a08a93 Remove extra calls to updateAllDrawableProperties (#222) 2016-09-28 16:43:04 -04:00
Eric Rosenbaum
6988cfc0d3 starting to load sounds from project files 2016-09-28 16:42:25 -04:00
Eric Rosenbaum
fbaad0fe06 experimenting with a soundfont 2016-09-28 13:20:51 -04:00
Eric Rosenbaum
54c5c82fde moved audio engine files 2016-09-27 18:18:15 -04:00
Eric Rosenbaum
7c91565408 Merge branch 'develop' of https://github.com/LLK/scratch-vm into develop 2016-09-27 18:12:20 -04:00
Eric Rosenbaum
39c8e76bdf adding sound blocks 2016-09-27 17:09:53 -04:00
Ray Schamp
46a2fe76eb Merge pull request #218 from LLK/publish
Publish to NPM and Github Pages
2016-09-27 10:28:59 -04:00
Ray Schamp
4c80e9a9b0 Use new version format for scratch-* dependencies 2016-09-27 10:23:12 -04:00
Ray Schamp
e31fc19a50 Update version format
-prerelease.[timestamp] is semver friendly. Move SHA info to package.json.
2016-09-27 09:20:55 -04:00
Tim Mickel
2357d63243 Drop useRound option from Cast.toListIndex (#213)
* Drop `useRound` option from `Cast.toListIndex`

* Param fix
2016-09-26 12:01:21 -04:00
Ray Schamp
e4ec9c551f Use most recent version of scratch-* dependencies 2016-09-26 11:47:00 -04:00
IAP-Reloaded
96b579a2de Github README url (#217) 2016-09-26 11:24:44 -04:00
Ray Schamp
6b1d2a8eb6 Update dev server to only serve the playground
Now that we don't rely on node_modules, we can update the content base to just `playground` and just look at it from http://localhost:8080/
2016-09-26 10:04:47 -04:00
Ray Schamp
e9cb0a5102 Add explanatory comments 2016-09-26 09:42:53 -04:00
Ray Schamp
7eb2e58a38 Publish to NPM
Authenticate with NPM via .npmrc and publish the package version + "-[git sha]".

Remove vm and vm.min.js, they'll be built before the package is published to NPM and available on installation. When installing from git, the build step will run on npm install.
2016-09-26 09:42:53 -04:00
Ray Schamp
89f751e651 Publish playground to gh-pages 2016-09-26 09:42:53 -04:00
Ray Schamp
a99f9ad5ff Provide playground dependencies with webpack
This confines all the files the playground needs to the playground directory.
2016-09-26 09:42:37 -04:00
Tim Mickel
2d736f2b87 "Wait until" implementation (#210) 2016-09-22 17:00:38 -04:00
Tim Mickel
a118d50056 Variables and lists (#187)
* Import lists and variables from SB2

* Switch to Variable and List objects

* Add Clone.lookupOrCreateVariable, Clone.getVariable, Clone.setVariable

* Add (get, set, change) variable blocks.

* Copy variables and lists on clone instantiation

* Move variable options closer to blocks

* Add list primitives

* Move variable and lists storage to `Target` instead of `Clone`

* Move _computeIndex to a Cast function

* Rename `getList` -> `getListAsString`

* Renames renames

* Remove extra check in Cast.isNaN
2016-09-21 16:38:33 -04:00
Tim Mickel
a687184c3c Fix and improve playground threads display (#198) 2016-09-21 16:31:23 -04:00
Tim Mickel
aa5e8d2648 Clear graphic effects on green flag (#199) 2016-09-21 16:31:07 -04:00
Ray Schamp
f9efc2b4bc Merge pull request #203 from rschamp/build-dist
Build the module to be imported
2016-09-21 13:25:28 -04:00
Ray Schamp
32b4374a56 Merge pull request #204 from rschamp/rebuild
Recompile for 9884c
2016-09-20 17:33:13 -04:00
Ray Schamp
bb7dee6087 Build for 9884c
I forgot to include these as a part of GH-200
2016-09-20 16:50:48 -04:00
Ray Schamp
e689664733 Build the module to be imported
This puts the details of the loaders needed to build index.js out of the concern of the packages that require it.
2016-09-20 16:35:11 -04:00
Ray Schamp
9884c583a9 Merge pull request #200 from rschamp/render-scope
Scope renderer to instance
2016-09-20 15:29:28 -04:00
Ray Schamp
4e547556a8 Use attachRenderer rather than the constructor
This makes the renderer optional as well as making the order of instantiation flexible.
2016-09-20 15:09:21 -04:00