This commit is contained in:
Andrew Sliwinski 2016-04-18 17:20:30 -04:00
parent 655556273a
commit f9f47ed103
20 changed files with 2113 additions and 13 deletions

View file

@ -5,9 +5,29 @@
npm install scratch-vm
```
## Integration
## Setup
```js
var VirtualMachine = require('scratch-vm');
var vm = new VirtualMachine();
// Block events
// UI events
// Listen for events
```
## Standalone Build
```bash
make build
```
```html
<script src="/path/to/vm.js"></script>
<script>
var vm = new window.VirtualMachine();
// do things
</script>
```
## Testing