示例#1
0
func NewController() *Controller {
	return &Controller{engine.NewComponent(), 100}
}
示例#2
0
文件: Collider.go 项目: magicafe/Sket
func NewCollider() *Collider {
	return &Collider{engine.NewComponent(), nil}
}
示例#3
0
func NewSmoothFollow(target *engine.GameObject, speed float32, maxdis float32) *SmoothFollow {
	return &SmoothFollow{engine.NewComponent(), target, speed, maxdis}
}
示例#4
0
文件: Tweens.go 项目: magicafe/Sket
func newTweens(t *Tween) *Tweens {
	ts := &Tweens{engine.NewComponent(), make([]*Tween, 0, 2)}
	ts.AddTween(t)
	return ts
}