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