Skip to content

Commit e66e3f9

Browse files
authored
Update README.md
1 parent d2a7aeb commit e66e3f9

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,75 @@
11
# Star Pusher Game
2+
3+
## Aim
4+
5+
The main of the project is o create a game using pygame.
6+
7+
## Purpose
8+
9+
The purpose of this project to make player to think logicallya and having fun.
10+
11+
12+
## Short description of package/script
13+
14+
15+
- If standalone script, short description of script explaining what it achieves.
16+
17+
The player is in a room with several stars. There are star marks on the grounds of some of the tile sprites in the room. The player must figure out how to push the stars on top of the tiles with star marks. The player cannot push a star if there is a wall or another star behind it. The player cannot pull stars, so if a star gets pushed into a corner, the player will have to restart the level
18+
19+
- List out the libraries imported.
20+
21+
1. random
22+
2. sys
23+
3. copy
24+
4. os
25+
5. pygame
26+
27+
## Setup instructions
28+
29+
Install Python 2.8 or above
30+
31+
Install pygame - `pip install python`
32+
33+
Download the code and extract the file
34+
35+
Keep the background images and code file in same folder.
36+
37+
Run the code by double clicking it.
38+
39+
Enjoy the game...
40+
41+
## Workflow
42+
43+
- Importing the required modules
44+
- Creating the Data Structures in Star Pusher
45+
- The “Game State” Data Structure
46+
- The “Map” Data Structure
47+
- The “Levels” Data Structure
48+
- Reading and Writing Text Files for different levels
49+
- Text Files and Binary Files
50+
- Writing to Files
51+
- Reading from Files
52+
- About the Star Pusher Map File Format
53+
- Recursive Functions
54+
- Stack Overflows
55+
- Preventing Stack Overflows with a Base Case
56+
- The Flood Fill Algorithm
57+
- Drawing the Map
58+
- Checking if the Level is Finished
59+
- Main loop to execute all functtions
60+
61+
62+
63+
## Output
64+
65+
![](https://github.com/rammya29/Awesome_Python_Scripts/blob/main/PyGamesScripts/Star%20-%20Pusher%20Game/Images/Output/Image-1.png)
66+
67+
![](https://github.com/rammya29/Awesome_Python_Scripts/blob/main/PyGamesScripts/Star%20-%20Pusher%20Game/Images/Output/Image-2.png)
68+
69+
## Author(s)
70+
71+
Rammya Dharshini K
72+
73+
## Disclaimers, if any
74+
75+
None

0 commit comments

Comments
 (0)