Decoupling refactor
Use fewer refs, these had weird behavior that caused the order of components to matter. Attach events eagerly, as soon as the necessary objects are available. Make VMManager an actual class instantiated with a VM so we don't have to pass it to every method. Use bindAll everywhere for convenience.
Showing
- package.json 1 addition, 0 deletionspackage.json
- src/components/green-flag.js 2 additions, 1 deletionsrc/components/green-flag.js
- src/components/gui.js 19 additions, 12 deletionssrc/components/gui.js
- src/components/sprite-selector.js 2 additions, 2 deletionssrc/components/sprite-selector.js
- src/components/stage.js 14 additions, 3 deletionssrc/components/stage.js
- src/components/stop-all.js 2 additions, 1 deletionsrc/components/stop-all.js
- src/lib/vm-manager.js 35 additions, 25 deletionssrc/lib/vm-manager.js
Loading
Please register or sign in to comment