docs(0.S): the doc fences migrated by ludic migrate state; LANGUAGE.md's state section says what the tool and the checker do now; no module-level var left in the docs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Orkun ÇAKILKAYA 2026-09-25 15:37:29 +03:00
parent 19fcf60599
commit a476ec7976
79 changed files with 481 additions and 355 deletions

View file

@ -22,16 +22,18 @@ Parameters:
```ludic
program ScoreHud {
var score: int = 0
handler EarnPoints phase Update {
score = score + 1
state ScoreHudState {
score: int = 0
}
handler DrawWorld phase Render {
handler EarnPoints(score_hud_st: mut ScoreHudState) phase Update {
score_hud_st.score = score_hud_st.score + 1
}
handler DrawWorld(score_hud_st: ScoreHudState) phase Render {
Screen.clear(Color.MidnightBlue)
Screen.draw_text(x: 6, y: 4, text: "SCORE", color: Color.White, scale: 1)
Screen.draw_number(x: 52, y: 4, value: score, color: Color.Gold, scale: 1)
Screen.draw_number(x: 52, y: 4, value: score_hud_st.score, color: Color.Gold, scale: 1)
Screen.show()
}
}