aboutsummaryrefslogtreecommitdiff
path: root/img/gameloop-flow.puml
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-10-26 08:51:31 +0200
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-10-26 08:51:31 +0200
commitcf7a38d87164a9be78efd8c045acd43422a1be04 (patch)
treecb9e4514bc6289dda1dd0fbc23448f2ca8fb37b5 /img/gameloop-flow.puml
parentb935677c8bd2bbda35c08b50caabb952f79e8e0b (diff)
design gameloop, design
Diffstat (limited to 'img/gameloop-flow.puml')
-rw-r--r--img/gameloop-flow.puml27
1 files changed, 27 insertions, 0 deletions
diff --git a/img/gameloop-flow.puml b/img/gameloop-flow.puml
new file mode 100644
index 0000000..1a46cd7
--- /dev/null
+++ b/img/gameloop-flow.puml
@@ -0,0 +1,27 @@
+@startuml
+title Game Loop Flowchart
+
+start
+
+:Initialize LoopManager;
+:Start LoopTimer;
+
+repeat
+ :Update LoopTimer;
+ :Check for Events;
+ :Process Input;
+
+ while (Lag >= Fixed Delta Time?) is (yes)
+ :Perform Fixed Update;
+ :Advance Fixed Update;
+ endwhile
+
+ :Perform Normal Update;
+ :Render Frame;
+
+repeat while (Game Running?)
+
+:Game exit logic;
+
+stop
+@enduml