More convenience functions in structs

This commit is contained in:
Not-Nik 2023-07-09 19:31:27 +02:00
parent 42671d0195
commit 7a9cdd3af0
Failed to generate hash of commit
9 changed files with 167 additions and 71 deletions

View file

@ -10,7 +10,7 @@ pub fn main() anyerror!void {
rl.InitWindow(screenWidth, screenHeight, "raylib-zig [core] example - mouse input");
var ballPosition = rl.Vector2{ .x = -100.0, .y = -100.0 };
var ballPosition = rl.Vector2.init(-100, -100);
var ballColor = rl.DARKBLUE;
rl.SetTargetFPS(60); // Set our game to run at 60 frames-per-second