sdf
This commit is contained in:
parent
47fefd70b9
commit
791d49aad9
@ -124,16 +124,8 @@ 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);
|
||||
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user