More convenience functions in structs
This commit is contained in:
parent
42671d0195
commit
7a9cdd3af0
9 changed files with 167 additions and 71 deletions
|
|
@ -10,7 +10,7 @@ pub fn main() anyerror!void {
|
|||
|
||||
rl.InitWindow(screenWidth, screenHeight, "raylib-zig [core] example - keyboard input");
|
||||
|
||||
var ballPosition = rl.Vector2{ .x = screenWidth / 2, .y = screenHeight / 2 };
|
||||
var ballPosition = rl.Vector2.init(screenWidth / 2, screenHeight / 2);
|
||||
|
||||
rl.SetTargetFPS(60); // Set our game to run at 60 frames-per-second
|
||||
//--------------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue