The checkered_surface function does not work as intended for surfaces with certain numbers of blocks. If you change the number of blocks at the NUM_BLOCKS_Y constant to 10, the checkered surface returned will have straight lines for rows. Fix the function to create checkered surfaces for any size of screen.
The checkered_surface function does not work as intended for surfaces with certain numbers of blocks. If you change the number of blocks at the NUM_BLOCKS_Y constant to 10, the checkered surface returned will have straight lines for rows. Fix the function to create checkered surfaces for any size of screen.