mirror of
https://github.com/exoticorn/curlywas.git
synced 2026-01-20 19:56:42 +01:00
add hex constants and data segments
This commit is contained in:
@@ -3,10 +3,10 @@ import "env.memory" memory(2);
|
||||
export fn tic(time: i32) {
|
||||
let i: i32;
|
||||
loop pixels {
|
||||
let defer x = (i % 320) as f32 - 160.1;
|
||||
let defer y = (i / 320 - 128) as f32;
|
||||
let defer dist = 10000.0 / (x*x + y*y);
|
||||
let defer t = time as f32 / 20 as f32;
|
||||
let lazy x = (i % 320) as f32 - 160.1;
|
||||
let lazy y = (i / 320 - 128) as f32;
|
||||
let lazy dist = 10000.0 / (x*x + y*y);
|
||||
let lazy t = time as f32 / 20 as f32;
|
||||
|
||||
i?120 = (x * dist + t) as i32 ^ (y * dist + t) as i32;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user