diff options
| author | Cliff Click <cliffc@acm.org> | 2026-11-13 13:10:15 -0800 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2026-11-13 13:10:15 -0800 |
| commit | 299addd03094389bb622e0fe1d7ad585b51e146d (patch) | |
| tree | fde1f3d0d440665428786c8bc35bd9d037034e2c /chapter31/docs/examples/TicTacToeGraphical.smp | |
| parent | b7440c1e4c182ad977996d91bfb8125091ffae92 (diff) | |
| download | Simple-299addd03094389bb622e0fe1d7ad585b51e146d.tar.gz Simple-299addd03094389bb622e0fe1d7ad585b51e146d.zip | |
Cleanp the new time & graphics APIs
Diffstat (limited to 'chapter31/docs/examples/TicTacToeGraphical.smp')
| -rw-r--r-- | chapter31/docs/examples/TicTacToeGraphical.smp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chapter31/docs/examples/TicTacToeGraphical.smp b/chapter31/docs/examples/TicTacToeGraphical.smp index fddcf254..da77e8f6 100644 --- a/chapter31/docs/examples/TicTacToeGraphical.smp +++ b/chapter31/docs/examples/TicTacToeGraphical.smp @@ -12,6 +12,7 @@ val main = { u8[~][] args -> int result = sys.gfx.present(screen.pixels); bool mouseHeld = false, keyHeld = false, replayHeld = false; int hover = -1, frames = 0; + while( result==sys.gfx.OK ) { result = sys.gfx.wait(17); if( result!=sys.gfx.OK ) break; |
