Skip to content

Commit ced62b2

Browse files
Added a wave trail yayyayyayya good job dont touch my pizza dont touch my jelly I don't like blue cheese cuz its really smelly
What the fuck is that commit message
1 parent cae752a commit ced62b2

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

src/main.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -945,7 +945,7 @@ async fn main() {
945945
on_pad = false;
946946
}
947947

948-
if level_mode == 2 {
948+
if level_mode == 2 || current_gamemode == GameMode::Wave {
949949
player_trail.push(vec2(
950950
player.x + world_offset,
951951
player.y - player_cam_y
@@ -1749,10 +1749,19 @@ async fn main() {
17491749
);
17501750
}
17511751

1752-
if level_mode == 2 {
1752+
if level_mode == 2 || current_gamemode == GameMode::Wave {
17531753
for point in &player_trail {
17541754
if point.x - world_offset > -10.0 {
1755-
draw_circle(point.x - world_offset, point.y + player_cam_y, 5.0, LIME);
1755+
draw_circle(
1756+
point.x - world_offset,
1757+
point.y + player_cam_y,
1758+
5.0,
1759+
if level_mode != 2 {
1760+
Color::from_rgba(0, 0, 255, 255)
1761+
} else {
1762+
LIME
1763+
}
1764+
);
17561765
}
17571766
}
17581767
}

src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ pub struct MainLevel {
7575
pub data: String
7676
}
7777

78+
#[derive(PartialEq)]
7879
pub enum GameMode {
7980
Cube,
8081
Ship,

0 commit comments

Comments
 (0)