|
2 | 2 |
|
3 | 3 | ## Aim
|
4 | 4 |
|
5 |
| -The main aim of the project you want to achieve. |
| 5 | +The main aim of the project to create a game using pygame module. |
6 | 6 |
|
7 | 7 | ## Purpose
|
8 | 8 |
|
9 |
| -What's the purpose of this project |
| 9 | +The purpose of this project is to create a pygame for fun also increases the concentration |
10 | 10 |
|
11 | 11 | ## Short description of package/script
|
12 | 12 |
|
13 |
| -- If package, list of functionalities/scripts it can perform |
| 13 | + |
14 | 14 | - If standalone script, short description of script explaining what it achieves.
|
| 15 | + |
| 16 | +There are four colored buttons on the screen. The buttons light up in a certain random pattern, and then the player must repeat this pattern by pressing the buttons in the correct order. Each time the player successfully simulates the pattern, the pattern gets longer. The player tries to match the pattern for as long as possible. |
| 17 | + |
| 18 | + |
15 | 19 | - List out the libraries imported.
|
16 | 20 |
|
| 21 | + - pygame |
| 22 | + - random |
| 23 | + - sys |
| 24 | + - time |
| 25 | + |
17 | 26 |
|
18 | 27 | ## Workflow of the Project
|
19 | 28 |
|
20 |
| -Add the workflow of the project point by point to get good understanding of the program |
| 29 | +- Importing the required modules |
| 30 | +- Setting Up the Buttons for game |
| 31 | +- The main() Function to execute all the functions in the program. |
| 32 | +- Declaring Some Local Variables Used in This Program |
| 33 | +- Drawing the Board and Handling Input for output window |
| 34 | +- Checking for Mouse Clicks |
| 35 | +- Checking for Keyboard Presses |
| 36 | +- The Two States of the Game Loop |
| 37 | +- Figuring Out if the Player Pressed the Right Buttons |
| 38 | +- Calculating the Epoch Time |
| 39 | +- Drawing the Board to the Screen |
| 40 | +- Same Old terminate() Function |
| 41 | +- Reusing The Constant Variables |
| 42 | +- Animating the Button Flash |
| 43 | +- Drawing the Buttons |
| 44 | +- Animating the Background Change |
| 45 | +- The Game Over Animation |
| 46 | +- Converting from Pixel Coordinates to Buttons |
21 | 47 |
|
22 | 48 |
|
23 | 49 | ## Setup instructions
|
24 | 50 |
|
25 |
| -Explain how to setup and run your package/script in user's system |
| 51 | +Install the python 2.8 or above |
26 | 52 |
|
| 53 | +Install the pygame module using `pip install pygame` |
27 | 54 |
|
28 |
| -## Detailed explanation of script, if needed |
29 | 55 |
|
30 |
| -If code is not explainable using comments, use this sections to explain your script |
| 56 | +## Compilation Steps |
31 | 57 |
|
| 58 | +Download the python code named `simulate_color_game.py` |
32 | 59 |
|
33 |
| -## Compilation Steps |
| 60 | +Download the music for background. |
| 61 | + |
| 62 | +Extract the files and keep both in same folder. |
34 | 63 |
|
35 |
| -Briefly show the compilation steps of the project |
| 64 | +Run the code by double clicking them. |
| 65 | + |
| 66 | +Enjoy the Game.. |
36 | 67 |
|
37 | 68 |
|
38 | 69 | ## Output
|
39 | 70 |
|
40 |
| -Display images/gifs/videos of output/result of your script so that users can visualize it |
| 71 | + |
| 72 | + |
| 73 | + |
41 | 74 |
|
42 | 75 |
|
43 | 76 | ## Author(s)
|
44 | 77 |
|
45 |
| -Name(s) of author(s) |
| 78 | +Rammya Dharshini K |
46 | 79 |
|
47 | 80 |
|
48 | 81 | ## Disclaimers, if any
|
49 | 82 |
|
50 |
| -Use this section to mention if any particular disclaimer is required |
| 83 | +None |
0 commit comments