generic types, any -> opaque

This commit is contained in:
2026-07-17 11:44:05 +02:00
parent af08d1888a
commit 1471c229c2
20 changed files with 284 additions and 167 deletions

View File

@@ -26,14 +26,14 @@ func main[] : i64
InitWindow(800, 600, "Hello, World!")
SetTargetFPS(60)
while !WindowShouldClose()
if IsKeyDown(KEY_W) & 255
while !(WindowShouldClose() as bool)
if IsKeyDown(KEY_W) as u8 & 255
y -= 10
if IsKeyDown(KEY_S) & 255
if IsKeyDown(KEY_S) as u8 & 255
y += 10
if IsKeyDown(KEY_A) & 255
if IsKeyDown(KEY_A) as u8 & 255
x -= 10
if IsKeyDown(KEY_D) & 255
if IsKeyDown(KEY_D) as u8 & 255
x += 10
BeginDrawing()