-
Notifications
You must be signed in to change notification settings - Fork 0
/
flow-chart.txt
44 lines (43 loc) · 1.19 KB
/
flow-chart.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@startuml
(*) --> "Main start"
--> "Preloader"
--> "MenuState"
if "button" then
--> [play] "StageSelectState"
--> [choose] "PlayerSelectState"
if "choose" then
--> [true] "StageSelectState"
if "choose" then
partition GameplayState {
--> [true] "GameplayState"
--> "Connect to server, ask to create a game instance"
--> "waiting for response"
if "has response" then
--> [true] "Server send back map info"
--> "Create all views"
--> "Game loop"
if "gameplay event received" then
--> [true] "update game entities"
--> "Game loop"
else
--> [false] "Game loop"
endif
if "mouse / keyboard / gamepad input received"
--> Send input event to server
--> "Game loop"
endif
else
-->[false] "waiting for response"
endif
}
else
--> [false] "PlayerSelectState"
endif
else
--> [false] "MenuState"
endif
else
--> [option] "OptionState"
--> [back] "MenuState"
endif
@enduml