time is now a parameter to the tic function instead of a mutable import

This commit is contained in:
2021-11-02 23:27:15 +01:00
parent 2d901e4c61
commit 75531bbc2f
4 changed files with 8 additions and 11 deletions

View File

@@ -1,7 +1,6 @@
import "uw8.ram" memory(2);
import "uw8.time" global mut time: i32;
export fn tic() {
export fn tic(time: i32) {
let i: i32;
loop pixels {
let defer x = (i % 320) as f32 - 160.1;