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.
20 lines
255 B
Go
20 lines
255 B
Go
//go:build !aego_runtime
|
|
|
|
package tween
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
|
|
"aego/engine/module"
|
|
)
|
|
|
|
//go:embed res/docs
|
|
var docFiles embed.FS
|
|
|
|
func registerDocs(r *module.Registry) {
|
|
if sub, err := fs.Sub(docFiles, "res/docs"); err == nil {
|
|
r.Docs(sub)
|
|
}
|
|
}
|