Skip to content

Commit 94bbd5a

Browse files
Optimized player trail while playing
1 parent 4164f4a commit 94bbd5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,9 @@ async fn main() {
14321432

14331433
if level_mode == 2 {
14341434
for point in &player_trail {
1435-
draw_circle(point.x - world_offset, point.y, 5.0, LIME);
1435+
if point.x - world_offset > -10.0 {
1436+
draw_circle(point.x - world_offset, point.y, 5.0, LIME);
1437+
}
14361438
}
14371439
}
14381440

0 commit comments

Comments
 (0)