QuickStartStarCatcher
official was updated at 16 May 2017.
so I rewrite by TypeScript with CocosCreator 2.0. following change list.
changed from 1.9 to 2.0
- cc.random0To1() -> Math.random()
- cc.randomMinus1To1() -> (Math.random() - 0.5) * 2
- decorator defined by object with type. @property({type: cc.AudioClip})
- key event handler. (event: cc.Event.EventKeyboard)
- cc.KEY.a -> cc.macro.KEY.a
- cc.pDistance(a, b) -> a.sub(b).mag()
- cc.p -> cc.v2