mirror of
https://github.com/exoticorn/curlywas.git
synced 2026-01-20 19:56:42 +01:00
move examples into subfolder, added wasm4 skip_ahead
This commit is contained in:
9
examples/microw8/xorscroll.cwa
Normal file
9
examples/microw8/xorscroll.cwa
Normal file
@@ -0,0 +1,9 @@
|
||||
import "env.memory" memory(2);
|
||||
|
||||
export fn tic(time: i32) {
|
||||
let i: i32;
|
||||
loop frame {
|
||||
i?120 = (i % 320 + time / 10) ^ (i / 320);
|
||||
branch_if (i := i + 1) < 320*256: frame;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user