zig 0.6.0 compatibility

This commit is contained in:
sacredbirdman 2020-04-27 20:43:42 +03:00
parent c20de22174
commit a7fa7755de
10 changed files with 35 additions and 35 deletions

View file

@ -14,7 +14,7 @@ pub fn main() anyerror!void
const screenWidth = 800;
const screenHeight = 450;
InitWindow(screenWidth, screenHeight, c"raylib-zig [core] example - basic window");
InitWindow(screenWidth, screenHeight, "raylib-zig [core] example - basic window");
var boxPositionY: i32 = screenHeight / 2 - 40;
var scrollSpeed: i32 = 4; // Scrolling speed in pixels
@ -38,8 +38,8 @@ pub fn main() anyerror!void
DrawRectangle(screenWidth/2 - 40, boxPositionY, 80, 80, MAROON);
DrawText(c"Use mouse wheel to move the cube up and down!", 10, 10, 20, GRAY);
DrawText(FormatText(c"Box position Y: %03i", boxPositionY), 10, 40, 20, LIGHTGRAY);
DrawText("Use mouse wheel to move the cube up and down!", 10, 10, 20, GRAY);
DrawText(FormatText("Box position Y: %03i", boxPositionY), 10, 40, 20, LIGHTGRAY);
EndDrawing();
//----------------------------------------------------------------------------------