core/curve with presets, keys, wraps; KindCurve in schema, scenes, prefabs and the inspector curve editor. modules/tween: tweens and timers in per-world pools, game and unscaled domains, script field targets via contracts/scriptfields. Host handle types (abi.Handle, bind.Handle, manifest v5), yield on awaitable handles via contracts/scriptwait. Script modules aego/curve, aego/tween, aego/timer; platformer enemy uses a cooldown and a fade-out tween. Docs: tween.md, curves.md, language reference; golden for the curve editor.
24 lines
404 B
Go
24 lines
404 B
Go
package sdk
|
|
|
|
import (
|
|
"aego/core/curve"
|
|
"aego/modules/tween"
|
|
)
|
|
|
|
type (
|
|
Tweens = tween.Service
|
|
TweenHandle = tween.Handle
|
|
TweenOptions = tween.Options
|
|
TimerOptions = tween.TimerOptions
|
|
Easing = curve.Easing
|
|
Curve = curve.Curve
|
|
CurveKey = curve.Key
|
|
)
|
|
|
|
func TweensOf(ctx *Context) *Tweens {
|
|
if ctx == nil || ctx.World == nil {
|
|
return nil
|
|
}
|
|
return tween.Of(ctx.World)
|
|
}
|