Home > other >  Pygame write image matching game
Pygame write image matching game

Time:09-17

I've been working on an image matching game, excuse me, how to implement in the main loop game display images after click on a region, a second click on the judgment after the first click on the image and the second click on the picture is the same, if the same, according to the different recovery, thinking for a long time have no idea, bald, what a big help

CodePudding user response:

Get a 2 d array, display is 1, don't show is 0, click finish to a variable to hold the click pictures, 1 in the click on the judgment of the same array, different changed the original 1 change back

CodePudding user response:

But two clicks of how to judge
  • Related