update microw8 resolution, now 320x240

This commit is contained in:
2021-11-14 17:10:48 +01:00
parent e23b98c1ab
commit 7aef99d186
7 changed files with 11 additions and 11 deletions

View File

@@ -7,7 +7,7 @@ export fn tic(time: i32) {
let lazy t = time as f32 / 2000 as f32;
let lazy o = sin(t) * 0.8;
let lazy q = (i % 320) as f32 - 160.1;
let lazy w = (i / 320 - 128) as f32;
let lazy w = (i / 320 - 120) as f32;
let lazy r = sqrt(q*q + w*w);
let lazy z = q / r;
let lazy s = z * o + sqrt(z * z * o * o + 1 as f32 - o * o);
@@ -19,6 +19,6 @@ export fn tic(time: i32) {
((q2 as i32 ^ w2 as i32 & ((s2 + t) * 20 as f32) as i32) & 5) as f32 *
(2 as f32 - s2) * 22 as f32
) as i32;
branch_if (i := i + 1) < 320*256: screen
branch_if (i := i + 1) < 320*240: screen
}
}