Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Jengamon/ruwren
Browse files Browse the repository at this point in the history
  • Loading branch information
Jengamon committed Sep 22, 2020
2 parents 7ab9cb3 + fb79aec commit ae02056
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ class GameEngine {
"##).unwrap();
let handle = vm.make_call_handle(FunctionSignature::new_function("update", 1));
vm.execute(|vm| {
vm.ensure_slots(2);
vm.get_variable("main", "GameEngine", 0);
vm.set_slot_double(0, 0.016);
vm.set_slot_double(1, 0.016);
});
vm.call_handle(&handle);
```
Expand All @@ -64,8 +65,9 @@ class GameEngine {
}
"##).unwrap();
vm.execute(|vm| {
vm.ensure_slots(2);
vm.get_variable("main", "GameEngine", 0);
vm.set_slot_double(0, 0.016);
vm.set_slot_double(1, 0.016);
});
vm.call(FunctionSignature::new_function("update", 1));
```
Expand Down Expand Up @@ -130,4 +132,4 @@ fn main() {

// This should print "9".
}
```
```

0 comments on commit ae02056

Please sign in to comment.