Documentation
¶
Overview ¶
Package builtin provides engine-shipped assets, currently the Go Regular font. Games use Font to identify it; [castrum.New] makes the built-in path available alongside game assets.
Index ¶
Constants ¶
const Font = "builtin/fonts/GoRegular.ttf"
Font is the asset path for the built-in Go Regular font.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
Register loads and caches the built-in font. Loaders created by [castrum.New] can resolve it automatically; standalone loaders must use WithFilesystem.
func WithFilesystem ¶
WithFilesystem returns a filesystem that serves built-in assets and resolves all other paths from filesystem. Use it with asset.NewLoader when not using [castrum.New]. If filesystem is nil, other paths resolve from the current working directory. Paths under "builtin/" are reserved for engine-shipped assets.
Types ¶
This section is empty.