Skip to content

Instantly share code, notes, and snippets.

@SET001
Created November 26, 2016 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SET001/87cead3eb2fc39bb7352106787df8499 to your computer and use it in GitHub Desktop.
Save SET001/87cead3eb2fc39bb7352106787df8499 to your computer and use it in GitHub Desktop.
class Cursor{
// @include components/d2.ts
create(){
}
}
// @exclude
import * as Core from '../core'
export class D2{
// @endexclude
position: Core.Point = new Core.Point()
onChangePosition = new Phaser.Signal()
place(position: Core.Point){
this.position = position
this.onChangePosition.dispatch(this.position)
}
// @exclude
}
// @endexclude
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment