mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-05-09 21:11:02 -04:00
WIP
This commit is contained in:
parent
655556273a
commit
f9f47ed103
20 changed files with 2113 additions and 13 deletions
22
README.md
22
README.md
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue