A prompt that comes and goes as a player walks (co-op's netleak: in_get, cmp_*_new, bd_class, value_slot/put) made a new record, props and model on every mount, and an action's call answered into a new Val (ev_call_with). examples/library/ui_remount: two thousand comings and goings hold the heap at 0, and the counter starts at 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
259 B
Text
9 lines
259 B
Text
# Counter.ludic - a counter that starts at 0 each time it is mounted
|
|
component Counter {
|
|
prop label: string
|
|
prop step: int = 1
|
|
state count: int = 0
|
|
doubled: int = count * 2
|
|
function big() -> bool { return count > 3 }
|
|
on bump() { count += step }
|
|
}
|