Skip to content

Commit 483cbf6

Browse files
author
youssif-sully
committed
update
1 parent 26824a2 commit 483cbf6

File tree

2 files changed

+33
-10
lines changed

2 files changed

+33
-10
lines changed

README.md

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,38 @@
11
# Python-Module-pygame
22

3-
## The game divided into different modules for ease of use and debugging
3+
## First check out the flowing
4+
5+
[Game flow](flow.md) and [pygame rect](rect_pygame.md)
6+
7+
## Road map
8+
9+
- Creating frame for the game
10+
11+
- [Colors Module](colors.py)
12+
13+
- [Config Module](config.py)
414

5-
### 1. [Colors Module](colors.py)
15+
- [Initialize Module](init.py)
16+
17+
- [Player (sprite) Module](Player.py)
18+
19+
- [The main Module](main.py)
20+
21+
- Replacing the player sprite (rectangular shape) with an image
22+
23+
## The game divided into different modules for ease of use and debugging
624

7-
#### defining some colors to use in the game (we can add more colors here)
25+
- [Colors Module](colors.py)
26+
- defining some `RGB colors` to use in the game (we can add more colors here)
827

9-
### 2. [Config Module](config.py)
28+
- [Config Module](config.py)
29+
- defining screen width and height and also the `FPS`
1030

11-
#### defining screen width and height and also the FPS
31+
- [Initialize Module](init.py)
32+
- initializing the `pygame module`, `pygame mixer` (used for sounds), `the screen` (width and height imported from config module), `screen label` and the `clock` (used to control the time of the game flow) See: [Game flow](flow.md)
1233

13-
### 3. [Initialize Module](init.py)
34+
- [Player (sprite) Module](Player.py)
35+
- contains `player` (sprite) class and for now it is a rectangular shape (pygame.Surfaces())
1436

15-
#### initializing the pygame module, pygame mixer (used for sounds), the screen (width and height imported from config module), screen label and the clock (used to control the time of the game flow) See: [Game flow](flow.md)
37+
- [The main Module](main.py)
38+
- the main loop of the game and contains the all the steps of the `game flow` See: [Game flow](flow.md)

rect_pygame.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Rect in pygame
22

3-
## Images (like the mario below) and shapes (pygame.Surfaces) don't have "positions"
3+
Images (like the mario below) and shapes (pygame.Surfaces()) don't have "positions"
44

55
![Mario](mario.png)
66

7-
## Using get_rect() method creates rect (rectangular) with the size of the image/shape in the x, y coordinates (0, 0) (see the image below)
7+
Using get_rect() method creates rect(rectangular) with the size of the image shape in the x, y coordinates (0, 0) (see the image below)
88

99
![Game flow](rects_pygame.png)
1010

11-
## now the rect can be "interacted" with (move, collision etc.) by either the x, y coordinates or by using top, center, etc. (as shown in the image above)
11+
now the rect can be "interacted" with (move, collision etc.) by either the x, y coordinates or by using top, center, etc. (as shown in the image above)

0 commit comments

Comments
 (0)