Expand description
check [--baked]: the game loads all its content through every
validator it has, and the answer lists every error found, each with its
file, line and message. With --baked, the game’s sources are baked
into a pack too, and every asset read from the pack must equal the one
read from its source (bake::check_baked). Once the content loads
without errors, the game’s text is checked against its font atlas
(GameTools::font_atlas, shuyi_assets::font::undrawn): a character
the atlas can’t draw is an error. It passes when there are no errors.
check --target <id> checks instead that the game fits target id,
or every target its shuyi.ron lists with --target all
(super::target). The display and who the game is (shuyi.ron’s
app) need only the project file; the
controls, and a one-bit target’s patterns, need the game’s tools too,
and without them the answer says they weren’t checked. It passes when
no target has an error; warnings don’t fail it.
Structs§
- Check
Input - What
checkchecks: everything the game loads (withbaked, its pack too), or withtarget, how the game fits a target. - Check
Output - What
checkfound.
Functions§
- check
check: every error ofgame’s content, and withbaked, every way its pack differs from its sources. A target is checked bytargets.- parse_
args check’s arguments (--jsontaken out): none,--baked, or--target <id>.- targets
check --target: how the game ofconfig(the project atroot) fits the targetsinputasks for; its controls and a one-bit target’s patterns too with its tools,game.- text
- What
checkfound, for people. - usage
check’s usage, withcommandas the tool’s name.