Skip to content

Instantly share code, notes, and snippets.

@substack substack/orbit.js
Created Nov 12, 2012

What would you like to do?
orbit spell in the wizard game
self.say(' ')
var phi = 0
self.think(function () {
var d = self.whatDist('wizard:f91e')
self.say(round(phi) + 'π', { fill : 'white', color : 'purple' })
phi += 0.1
function round (n) { return Math.round(n*1000)/1000 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.