Skip to content

Commit a94f352

Browse files
authored
Update README.md
1 parent 9eac2ff commit a94f352

File tree

1 file changed

+45
-12
lines changed

1 file changed

+45
-12
lines changed

Diff for: PyGamesScripts/Simulate Color Game/README.md

+45-12
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,82 @@
22

33
## Aim
44

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.
66

77
## Purpose
88

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
1010

1111
## Short description of package/script
1212

13-
- If package, list of functionalities/scripts it can perform
13+
1414
- 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+
1519
- List out the libraries imported.
1620

21+
- pygame
22+
- random
23+
- sys
24+
- time
25+
1726

1827
## Workflow of the Project
1928

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
2147

2248

2349
## Setup instructions
2450

25-
Explain how to setup and run your package/script in user's system
51+
Install the python 2.8 or above
2652

53+
Install the pygame module using `pip install pygame`
2754

28-
## Detailed explanation of script, if needed
2955

30-
If code is not explainable using comments, use this sections to explain your script
56+
## Compilation Steps
3157

58+
Download the python code named `simulate_color_game.py`
3259

33-
## Compilation Steps
60+
Download the music for background.
61+
62+
Extract the files and keep both in same folder.
3463

35-
Briefly show the compilation steps of the project
64+
Run the code by double clicking them.
65+
66+
Enjoy the Game..
3667

3768

3869
## Output
3970

40-
Display images/gifs/videos of output/result of your script so that users can visualize it
71+
![](https://github.com/rammya29/Awesome_Python_Scripts/blob/main/PyGamesScripts/Simulate%20Color%20Game/Images/Image-1.png)
72+
73+
![](https://github.com/rammya29/Awesome_Python_Scripts/blob/main/PyGamesScripts/Simulate%20Color%20Game/Images/Image-2.png)
4174

4275

4376
## Author(s)
4477

45-
Name(s) of author(s)
78+
Rammya Dharshini K
4679

4780

4881
## Disclaimers, if any
4982

50-
Use this section to mention if any particular disclaimer is required
83+
None

0 commit comments

Comments
 (0)