// debugging utility: draw the grid lines
debugging utility: draw the grid lines
debugging utility : draw the grid lines
fn draw_world_grid(game_mode: UniqueView<GameModeInfo>) {
    if game_mode.game_mode == GameMode::Debug{
        let cell_width: f32 = WIDTH as f32 / CELLS_X as f32;
        let cell_height: f32 = HEIGHT as f32 / CELLS_Y as f32;
        for x  in 1..CELLS_X {
            draw_line( x as f32 * cell_width, 0., 
                       x as f32 * cell_width, HEIGHT as f32, 0.5, WHITE);
        }
        for y  in 1..CELLS_Y {
            draw_line(0., y as f32 * cell_height, 
                    WIDTH as f32, y as f32 * cell_height, 0.5, WHITE);
        }
    }
}
fn draw_world_grid ( game_mode : UniqueView < GameModeInfo > ) { if game_mode . game_mode == GameMode :: Debug { let cell_width : f32 = WIDTH as f32 / CELLS_X as f32 ; let cell_height : f32 = HEIGHT as f32 / CELLS_Y as f32 ; for x in 1 .. CELLS_X { draw_line ( x as f32 * cell_width , 0. , x as f32 * cell_width , HEIGHT as f32 , 0.5 , WHITE ) ; } for y in 1 .. CELLS_Y { draw_line ( 0. , y as f32 * cell_height , WIDTH as f32 , y as f32 * cell_height , 0.5 , WHITE ) ; } } }
debugging utility: draw the grid lines
debugging utility : draw the grid lines
game_mode
UniqueView<GameModeInfo>