frammaa
frammaa
Day 1 Tables and Badges
can't really get it to draw a rectangle, this is my attempt:
cart.rect(.{
.x = @intCast(cart.screen_width / 2),
.y = @intCast(cart.screen_height / 2),
.width = 20,
.height = 20,
.stroke_color = .{ .r = 31, .g = 63, .b = 31 },
.fill_color = .{ .r = 31, .g = 63, .b = 31 },
});
cart.rect(.{
.x = @intCast(cart.screen_width / 2),
.y = @intCast(cart.screen_height / 2),
.width = 20,
.height = 20,
.stroke_color = .{ .r = 31, .g = 63, .b = 31 },
.fill_color = .{ .r = 31, .g = 63, .b = 31 },
});
nvm the hotreloading wasn't working right
570 replies
Day 1 Tables and Badges
hey, the cart api doesn't expose the an update function, so I'm guessing I just assume it's being called every so often and roll with it, is that right? basically I memcpy into the pub variables exposed in the cart api and eventually stuff will appear on screen?
570 replies
Day 1 Tables and Badges
only the first 2MB matter 😛
570 replies