This commit is contained in:
nub31
2025-10-22 13:45:33 +02:00
parent a2d05b94b5
commit 03bab1fba5

View File

@@ -23,7 +23,8 @@ extern "main" func main(argc: i64, argv: [?]cstring): i64
let bgColor: raylib::Color = { r = 0 g = 0 b = 0 a = 255 } let bgColor: raylib::Color = { r = 0 g = 0 b = 0 a = 255 }
let color: raylib::Color = { r = 255 g = 255 b = 255 a = 255 } let color: raylib::Color = { r = 255 g = 255 b = 255 a = 255 }
while !raylib::WindowShouldClose() { while !raylib::WindowShouldClose()
{
if x <= 0 { if x <= 0 {
direction.x = 1 direction.x = 1
} else if x + width >= raylib::GetScreenWidth() { } else if x + width >= raylib::GetScreenWidth() {