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

@@ -6,9 +6,9 @@ export fn tic(time: i32) {
loop screen {
let lazy t = time as f32 / 10 as f32;
let lazy x = (i % 320) as f32 - 160.1;
let lazy y = (i / 320 - 128) as f32;
let lazy y = (i / 320 - 120) as f32;
i?120 = ((20000 as f32 / sqrt(x * x + y * y) + t) as i32 ^ (atan2(x, y) * 512 as f32 / 3.141 + t) as i32);
branch_if (i := i + 1) < 320*256: screen
branch_if (i := i + 1) < 320*240: screen
}
}