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

@ -17,18 +17,20 @@ program StartExample {
model Player { Position }
const GRID_WIDTH: int = 20
var score: int = 0
state StartExampleState {
score: int = 0
}
handler SetUpWorld phase Start {
handler SetUpWorld(start_example_st: mut StartExampleState) phase Start {
Random.seed(value: 1)
Map.size(width: GRID_WIDTH, height: 15)
score = 0
start_example_st.score = 0
spawn Player { Position { column: 10, row: 7 } }
}
handler DrawWorld phase Render {
handler DrawWorld(start_example_st: StartExampleState) phase Render {
Screen.clear(Color.MidnightBlue)
Screen.draw_number(x: 4, y: 4, value: score, color: Color.Gold, scale: 1)
Screen.draw_number(x: 4, y: 4, value: start_example_st.score, color: Color.Gold, scale: 1)
Screen.show()
}
}