Using game loop instead of queueAnimationUpdate

This commit is contained in:
Sam El-Husseini
2017-12-19 14:20:35 -08:00
parent 785ddff706
commit 2157af3e63
15 changed files with 175 additions and 139 deletions

View File

@ -12,8 +12,9 @@ namespace pxsim {
namespace pxsim.output {
export function setLights(pattern: number) {
const lightState = ev3board().getBrickNode().lightState;
const brickState = ev3board().getBrickNode();
const lightState = brickState.lightState;
lightState.lightPattern = pattern;
runtime.queueDisplayUpdate();
brickState.setChangedState();
}
}