douglascdev / snake

A snake game made with Python3 and Pygame!
https://www.pygame.org/project/5080
Apache License 2.0
4 stars 5 forks source link

Fix checkered surface for a different numbers of blocks #19

Open douglascdev opened 4 years ago

douglascdev commented 4 years ago

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.