You can see and play with the code on Codepen: http://codepen.io/easwee/pen/lweIk

createjs game basics dotted polygons