Hi all,
I’m currently porting a old C implementation of asteroids into Zig for a way to get more practice using Zig. Currently, for the player I’ve defined the struct below, and I now need to extend the number of rows from 3 to 9 to represent an asteroid. I could just copy and paste the extra rows, but is there a more elegant way to so this? I’d ask an AI, but they do tend to just make stuff up. Cheers.
var world_vert = [P_VERTS]Vector2d{
Vector2d{ .x = 0.0, .y = 0.0 },
Vector2d{ .x = 0.0, .y = 0.0 },
Vector2d{ .x = 0.0, .y = 0.0 },
};