Don't adding color on Pycharm when creating game windows | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Don't adding color on Pycharm when creating game windows

Hi guys. I am learning how to create simple Snake game on Youtube. I do like showed on video clip, step by step. But I am getting two issues: When I'm drawing game window, I define one block should be 'white' WHITE = (255, 255, 255) another one - 'blue' BLUE = (153, 0, 153) . White ok, but blue doesn't shows on screen. Same thing with snake, I define snake color SNAKE_COLOR = [255, 255, 11], but it's not appear on screen. Any thoughts? https://code.sololearn.com/cz4Me8ElASH9/#py

9th Jul 2020, 10:21 AM
Sigitas S
Sigitas S - avatar
1 Answer
+ 1
I am not really good in the pygame module but delete the code draw_block below the else statement. Run your code again check if it works.
11th Jul 2020, 11:23 PM
Chinyere Unamba
Chinyere Unamba - avatar