This commit is contained in:
jonathan santis 2024-11-28 15:21:57 +01:00
parent 04a0f83208
commit c1717edef8

View File

@ -81,7 +81,7 @@ const Emitter = struct {
pub fn init(self: *Emitter) !void { pub fn init(self: *Emitter) !void {
var xrnr = randMinMaxFloat(-1, 1); var xrnr = randMinMaxFloat(-1, 1);
var yrnr = randMinMaxFloat(-0.5, 0.5); var yrnr = randMinMaxFloat(-0.5, 0.5);
self.particles = try allocator.alloc(Particle, 10000); self.particles = try allocator.alloc(Particle, 500000);
for (self.particles) |*p| { for (self.particles) |*p| {
xrnr = randMinMaxFloat(-2, 2); xrnr = randMinMaxFloat(-2, 2);
yrnr = randMinMaxFloat(-2, 2); yrnr = randMinMaxFloat(-2, 2);