diff --git a/src/main.zig b/src/main.zig index dea1904..6dd498a 100644 --- a/src/main.zig +++ b/src/main.zig @@ -124,18 +124,10 @@ const Emitter = struct { p.update(); p.applyGravity(2); - if(p.position.a.x >= -(screenWidth/2)){ - posx = @intFromFloat(screenWidth / 2 + p.position.a.x); - } else { - posx = 0; - } - if(p.position.a.y >= -(screenHeight/2)){ - posy = @intFromFloat(screenHeight / 2 + p.position.a.y); - } else { - posy = 0; - } - //rl.drawRectangle(posx,posy,2,2,rl.Color{.r=p.position.a.color.r,.g=p.position.a.color.g,.b=p.position.a.color.b,.a=255}); - rl.drawTexture(texture,posx,posy,rl.Color.white); + posx = @intFromFloat(screenWidth / 2 + p.position.a.x); + posy = @intFromFloat(screenHeight / 2 + p.position.a.y); + //rl.drawRectangle(posx,posy,2,2,rl.Color{.r=p.position.a.color.r,.g=p.position.a.color.g,.b=p.position.a.color.b,.a=255}); + rl.drawTexture(texture,posx,posy,rl.Color.white); } } diff --git a/zig-out/bin/raylib-test b/zig-out/bin/raylib-test index 6ae0e97..dcdc3bf 100755 Binary files a/zig-out/bin/raylib-test and b/zig-out/bin/raylib-test differ