Skip to content

Commit

Permalink
remove test code from example
Browse files Browse the repository at this point in the history
  • Loading branch information
straker committed Feb 22, 2019
1 parent 43a68ac commit 412a7c4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
File renamed without changes.
Expand Up @@ -42,17 +42,6 @@
distance
});

let myPlugin = {
beforeAdd(vector, param) {
console.log(`adding {${param.x}, ${param.y}} vector to {${vector.x}, ${vector.y}}`);
},
afterAdd(vector, result, param) {
console.log(`result of add was: {${result.x}, ${result.y}}`);
}
}

kontra.plugin.register('vector', myPlugin);




Expand Down

0 comments on commit 412a7c4

Please sign in to comment.