Skip to content

Commit

Permalink
Fixing Issue
Browse files Browse the repository at this point in the history
Fixing issue with the Reset Feature
  • Loading branch information
HiNett authored Oct 22, 2024
1 parent 1a7f5cd commit 2e090f2
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Frogger/main.v
Original file line number Diff line number Diff line change
Expand Up @@ -399,15 +399,6 @@ module main(
r_previous_direction <= 4;
end

// Reset if 4 switches are pressed
if (r_SW1 == 1'b0 && r_SW2 == 1'b0 && r_SW3 == 1'b0 && r_SW4 == 1'b0) begin
frog_x_pos <= 10;
frog_y_pos <= 14;
r_CurrentNumber <= 0;
r_previous_direction <= 1;
CAR_SPEED <= 166667;
end

// Check collision for each car
check_collision(car_x_pos[0], car_y_pos[0]);
check_collision(car_x_pos[1], car_y_pos[1]);
Expand Down

0 comments on commit 2e090f2

Please sign in to comment.