Last active
August 31, 2015 01:27
-
-
Save williamngan/79b6e7307584b7d88a10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
// Previous code omitted ... | |
bot = { | |
animate: function(time, fs, context) { | |
// Previous code omitted ... | |
hits = another.intersectCircle( dot ) | |
if (hits.length > 0) { | |
form.stroke( "#fff" ).fill("#0C9") | |
form.points( hits, 5, true ) | |
} | |
}, | |
onMouseAction: function(type, x, y, evt) { | |
if (type == "move") { | |
another.set( x, y ) | |
} | |
} | |
} | |
// Previous code omitted ... | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment