|
5 | 5 |
|
6 | 6 | <p>To create a memory game.</p> </br>
|
7 | 7 |
|
| 8 | +## Purpose |
| 9 | + |
| 10 | +The purpose of this project is to create a pygame for fun also increases the concentration |
| 11 | + |
8 | 12 | ## Short description of package/script
|
9 | 13 |
|
10 | 14 | <p>The program runs a memory game that allows you to turn over cards by clicking the mouse.</p> </br>
|
11 | 15 |
|
12 | 16 | # Setup instructions
|
13 | 17 | Copy the project to your local enviroment and that's all this code can be run on any python IDE.
|
14 | 18 |
|
| 19 | +## Workflow of the Project |
| 20 | + |
| 21 | +- Importing the required modules |
| 22 | +- Setting Up the Buttons for game |
| 23 | +- The main() Function to execute all the functions in the program. |
| 24 | +- Declaring Some Local Variables Used in This Program |
| 25 | +- Drawing the Board and Handling Input for output window |
| 26 | +- Checking for Mouse Clicks |
| 27 | +- Checking for Keyboard Presses |
| 28 | +- The Two States of the Game Loop |
| 29 | +- Figuring Out if the Player Pressed the Right Buttons |
| 30 | +- Reusing The Constant Variables |
| 31 | +- Animating the Button Flash |
| 32 | +- Drawing the Buttons |
| 33 | +- Animating the Background Change |
| 34 | +- The Game Over Animation |
| 35 | +- Converting from Pixel Coordinates to Buttons |
| 36 | + |
| 37 | +## Compilation Steps |
| 38 | + |
| 39 | +Download the python code named `app.py` |
| 40 | + |
| 41 | +Extract the files and keep both in same folder. |
| 42 | + |
| 43 | +Run the code by double clicking them. |
| 44 | + |
| 45 | +Enjoy the Game.. |
| 46 | + |
15 | 47 | ## Detailed explanation of script, if needed
|
16 | 48 |
|
17 | 49 | #### _**OUR GAME RULES**_
|
|
0 commit comments