Skip to content

Commit 5c411ef

Browse files
author
youssif-sully
committed
update
1 parent fed59b8 commit 5c411ef

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
1+
*.jpg
2+
*.png

flow.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Game flow
2+
3+
## Game flow for **1 FPS (frame per second)** consists of the following steps
4+
5+
### 1. Events
6+
7+
key stroke and mouse presses (Ex. press w for forward or left click to shoot).
8+
9+
### 2. Update
10+
11+
update the game after the event (Ex. move 'the hero' (sprite) after the event (w pressed)).
12+
13+
### 3. Render
14+
15+
draw the current update on the screen.
16+
17+
### 4. FPS Control
18+
19+
controls the execute time.
20+
21+
![Game flow](game_flow.png)
22+
23+
# RGB colors
24+
25+
## RGB color consists of primary colors and secondary colors [Link to RGB Color Codes Chart](https://www.rapidtables.com/web/color/RGB_Color.html)
26+
27+
### Primary colors
28+
29+
1. RED (255, 0, 0)
30+
2. Green (0, 255, 0)
31+
3. BLUE (0, 0, 255)
32+
33+
### Secondary colors
34+
35+
1. YELLOW (255, 255, 0)
36+
2. SILVER (192, 192, 192)
37+
.....

0 commit comments

Comments
 (0)