We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94bbd5a commit b0fa2a1Copy full SHA for b0fa2a1
src/main.rs
@@ -1559,7 +1559,10 @@ async fn main() {
1559
}
1560
1561
for point in &player_trail {
1562
- draw_circle(point.x - cam_pos_x * 5.0, point.y + cam_pos_y * 5.0, 5.0, LIME);
+ if point.x - cam_pos_x * 5.0 > -10.0
1563
+ && point.x - cam_pos_x * 5.0 < screen_width() + 10.0 {
1564
+ draw_circle(point.x - cam_pos_x * 5.0, point.y + cam_pos_y * 5.0, 5.0, LIME);
1565
+ }
1566
1567
1568
draw_rectangle(
0 commit comments