diff options
Diffstat (limited to 'img')
-rw-r--r-- | img/AssesManager.png | bin | 0 -> 571725 bytes | |||
-rw-r--r-- | img/Collision_system.png | bin | 0 -> 53554 bytes | |||
-rw-r--r-- | img/Collision_system_flowchart.png | bin | 0 -> 28876 bytes | |||
-rw-r--r-- | img/Fixed_update.png | bin | 0 -> 11636 bytes | |||
-rw-r--r-- | img/Particle_system.png | bin | 0 -> 50497 bytes | |||
-rw-r--r-- | img/Particle_system_flowchart.png | bin | 0 -> 21084 bytes | |||
-rw-r--r-- | img/Physics_system.png | bin | 0 -> 44621 bytes | |||
-rw-r--r-- | img/Physics_system_flowchart.png | bin | 0 -> 8055 bytes | |||
-rw-r--r-- | img/Rendering.png | bin | 0 -> 654711 bytes | |||
-rw-r--r-- | img/activity-scripts.puml | 21 | ||||
-rw-r--r-- | img/class-api-full.pdf | bin | 0 -> 73613 bytes | |||
-rw-r--r-- | img/class-config.puml | 14 | ||||
-rw-r--r-- | img/class-savemgr.puml | 13 | ||||
-rw-r--r-- | img/class-scripts.puml | 7 | ||||
-rw-r--r-- | img/custom-event-output.png | bin | 0 -> 2088 bytes | |||
-rw-r--r-- | img/event-sequence.puml | 16 | ||||
-rw-r--r-- | img/event-uml.drawio.png | bin | 0 -> 453179 bytes | |||
-rw-r--r-- | img/flowchart_rendering.png | bin | 0 -> 631423 bytes | |||
-rw-r--r-- | img/gameloop-class.puml | 37 | ||||
-rw-r--r-- | img/gameloop-console-10.png | bin | 0 -> 9313 bytes | |||
-rw-r--r-- | img/gameloop-console.png | bin | 0 -> 18235 bytes | |||
-rw-r--r-- | img/gameloop-flow.puml | 26 | ||||
-rw-r--r-- | img/gameloop-squares.png | bin | 0 -> 5034 bytes | |||
-rw-r--r-- | img/poc-button.png | bin | 0 -> 4395 bytes | |||
-rw-r--r-- | img/poc-camera.pdf | bin | 0 -> 169814 bytes | |||
-rw-r--r-- | img/poc-collision-1.png | bin | 0 -> 5316 bytes | |||
-rw-r--r-- | img/poc-collision-2.png | bin | 0 -> 4783 bytes | |||
-rw-r--r-- | img/poc-event-button.png | bin | 0 -> 4955 bytes | |||
-rw-r--r-- | img/poc-log.png | bin | 0 -> 12526 bytes | |||
-rw-r--r-- | img/poc-output-scripts.png | bin | 0 -> 31761 bytes | |||
-rw-r--r-- | img/poc-particles.png | bin | 0 -> 466 bytes | |||
-rw-r--r-- | img/texture.png | bin | 0 -> 593444 bytes | |||
-rw-r--r-- | img/theme.ipuml | 14 |
33 files changed, 136 insertions, 12 deletions
diff --git a/img/AssesManager.png b/img/AssesManager.png Binary files differnew file mode 100644 index 0000000..9dfb435 --- /dev/null +++ b/img/AssesManager.png diff --git a/img/Collision_system.png b/img/Collision_system.png Binary files differnew file mode 100644 index 0000000..24f83f4 --- /dev/null +++ b/img/Collision_system.png diff --git a/img/Collision_system_flowchart.png b/img/Collision_system_flowchart.png Binary files differnew file mode 100644 index 0000000..ee43ddf --- /dev/null +++ b/img/Collision_system_flowchart.png diff --git a/img/Fixed_update.png b/img/Fixed_update.png Binary files differnew file mode 100644 index 0000000..2cacd48 --- /dev/null +++ b/img/Fixed_update.png diff --git a/img/Particle_system.png b/img/Particle_system.png Binary files differnew file mode 100644 index 0000000..89f7363 --- /dev/null +++ b/img/Particle_system.png diff --git a/img/Particle_system_flowchart.png b/img/Particle_system_flowchart.png Binary files differnew file mode 100644 index 0000000..09a9fd9 --- /dev/null +++ b/img/Particle_system_flowchart.png diff --git a/img/Physics_system.png b/img/Physics_system.png Binary files differnew file mode 100644 index 0000000..0e98b9e --- /dev/null +++ b/img/Physics_system.png diff --git a/img/Physics_system_flowchart.png b/img/Physics_system_flowchart.png Binary files differnew file mode 100644 index 0000000..f6238c0 --- /dev/null +++ b/img/Physics_system_flowchart.png diff --git a/img/Rendering.png b/img/Rendering.png Binary files differnew file mode 100644 index 0000000..d3491ba --- /dev/null +++ b/img/Rendering.png diff --git a/img/activity-scripts.puml b/img/activity-scripts.puml new file mode 100644 index 0000000..b833bdf --- /dev/null +++ b/img/activity-scripts.puml @@ -0,0 +1,21 @@ +@startuml +!include theme.ipuml + +start + +label continue +:Get list of ""BehaviorScript"" components from ""ComponentManager""; + +while (for each ""BehaviorScript"" in list) + if (""BehaviorScript"" is active) then (yes) + if (""BehaviorScript"" has an instance of ""Script"") then (yes) + :Call update function of ""BehaviorScript""'s ""Script"" instance; + else (no) + endif + else (no) + endif +endwhile + +stop + +@enduml diff --git a/img/class-api-full.pdf b/img/class-api-full.pdf Binary files differnew file mode 100644 index 0000000..cd28b08 --- /dev/null +++ b/img/class-api-full.pdf diff --git a/img/class-config.puml b/img/class-config.puml new file mode 100644 index 0000000..72e5e6c --- /dev/null +++ b/img/class-config.puml @@ -0,0 +1,14 @@ +@startuml +!include theme.ipuml + +class Config <<singleton>> { + - Config() + + ~Config() + -- + + get_instance() : Config & <<static>> + -- + + log : struct ... + ... +} + +@enduml diff --git a/img/class-savemgr.puml b/img/class-savemgr.puml new file mode 100644 index 0000000..30bcd08 --- /dev/null +++ b/img/class-savemgr.puml @@ -0,0 +1,13 @@ +@startuml +!include theme.ipuml +skinparam Linetype ortho + +class SaveManager { + +} + +class ValueBroker { + +} + +@enduml diff --git a/img/class-scripts.puml b/img/class-scripts.puml index 8fc36c9..44cbe85 100644 --- a/img/class-scripts.puml +++ b/img/class-scripts.puml @@ -10,10 +10,12 @@ package api { class Component <<irrelevant>> class Script { + - Script() + -- # init() <<virtual>> # update() <<virtual>> -- - - Script() + - parent : BehaviorScript * } class BehaviorScript { @@ -26,7 +28,8 @@ package api { } BehaviorScript -u-|> Component - Script .u.> BehaviorScript + Script <.u. BehaviorScript : > friend + Script ..u> BehaviorScript } class System <<irrelevant>> diff --git a/img/custom-event-output.png b/img/custom-event-output.png Binary files differnew file mode 100644 index 0000000..f818293 --- /dev/null +++ b/img/custom-event-output.png diff --git a/img/event-sequence.puml b/img/event-sequence.puml new file mode 100644 index 0000000..2555f33 --- /dev/null +++ b/img/event-sequence.puml @@ -0,0 +1,16 @@ +@startuml +skinparam SequenceParticipantPadding 15 + + +participant EventHandler +participant Publisher +participant EventManager + +EventHandler -> EventManager : Subscribe event +Publisher -> EventManager : trigger event + +EventManager -> EventHandler : execute callback function +Publisher -> EventManager : Queue Event +EventManager -> EventHandler : dispatching queued events +EventHandler -> EventManager : unsubscribe event +@enduml diff --git a/img/event-uml.drawio.png b/img/event-uml.drawio.png Binary files differnew file mode 100644 index 0000000..008dd85 --- /dev/null +++ b/img/event-uml.drawio.png diff --git a/img/flowchart_rendering.png b/img/flowchart_rendering.png Binary files differnew file mode 100644 index 0000000..41306a1 --- /dev/null +++ b/img/flowchart_rendering.png diff --git a/img/gameloop-class.puml b/img/gameloop-class.puml new file mode 100644 index 0000000..e66b7d8 --- /dev/null +++ b/img/gameloop-class.puml @@ -0,0 +1,37 @@ +@startuml +!include theme.ipuml +class LoopManager { + +static LoopManager& getInstance() + + +void loop() + +void setup() + -void render() + -void processInput() + -void fixedUpdate() + -void update() + -bool gameRunning + -LoopManager() +} + +class LoopTimer { + +static LoopTimer& getInstance() + +void start() + +void update() + +float getLag() + +float getFixedDeltaTime() + +void advanceFixedUpdate() + +void enforceFrameRate() + +float getDeltaTime() + -float lag + -float fixedDeltaTime + -float deltaTime +} + +LoopManager --> LoopTimer : uses +LoopManager : loop() +LoopManager : |-- processInput() +LoopManager : |-- fixedUpdate() +LoopManager : |-- update() +LoopManager : |-- render() +' TODO: what is this supposed to be? +@enduml diff --git a/img/gameloop-console-10.png b/img/gameloop-console-10.png Binary files differnew file mode 100644 index 0000000..af0cd71 --- /dev/null +++ b/img/gameloop-console-10.png diff --git a/img/gameloop-console.png b/img/gameloop-console.png Binary files differnew file mode 100644 index 0000000..a675fae --- /dev/null +++ b/img/gameloop-console.png diff --git a/img/gameloop-flow.puml b/img/gameloop-flow.puml new file mode 100644 index 0000000..e75ea42 --- /dev/null +++ b/img/gameloop-flow.puml @@ -0,0 +1,26 @@ +@startuml +!include theme.ipuml +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 diff --git a/img/gameloop-squares.png b/img/gameloop-squares.png Binary files differnew file mode 100644 index 0000000..6481c7e --- /dev/null +++ b/img/gameloop-squares.png diff --git a/img/poc-button.png b/img/poc-button.png Binary files differnew file mode 100644 index 0000000..633ea99 --- /dev/null +++ b/img/poc-button.png diff --git a/img/poc-camera.pdf b/img/poc-camera.pdf Binary files differnew file mode 100644 index 0000000..c67c078 --- /dev/null +++ b/img/poc-camera.pdf diff --git a/img/poc-collision-1.png b/img/poc-collision-1.png Binary files differnew file mode 100644 index 0000000..550059b --- /dev/null +++ b/img/poc-collision-1.png diff --git a/img/poc-collision-2.png b/img/poc-collision-2.png Binary files differnew file mode 100644 index 0000000..1636bd2 --- /dev/null +++ b/img/poc-collision-2.png diff --git a/img/poc-event-button.png b/img/poc-event-button.png Binary files differnew file mode 100644 index 0000000..7d3b546 --- /dev/null +++ b/img/poc-event-button.png diff --git a/img/poc-log.png b/img/poc-log.png Binary files differnew file mode 100644 index 0000000..12e2c61 --- /dev/null +++ b/img/poc-log.png diff --git a/img/poc-output-scripts.png b/img/poc-output-scripts.png Binary files differnew file mode 100644 index 0000000..068f345 --- /dev/null +++ b/img/poc-output-scripts.png diff --git a/img/poc-particles.png b/img/poc-particles.png Binary files differnew file mode 100644 index 0000000..85229c4 --- /dev/null +++ b/img/poc-particles.png diff --git a/img/texture.png b/img/texture.png Binary files differnew file mode 100644 index 0000000..97b79fe --- /dev/null +++ b/img/texture.png diff --git a/img/theme.ipuml b/img/theme.ipuml index 81391e2..c44db05 100644 --- a/img/theme.ipuml +++ b/img/theme.ipuml @@ -1,18 +1,10 @@ ' vim:ft=plantuml - -<style> -root { - BackgroundColor white - FontColor black - LineThickness 1 - Margin 0 -} -</style> - +!theme plain skinparam ClassAttributeIconSize 0 skinparam ClassFontStyle bold skinparam DefaultFontName Inter skinparam DefaultFontSize 10 +skinparam DefaultMonospacedFontName "JetBrains Mono" skinparam MaxMessageSize 200 skinparam Nodesep 25 ' skinparam Padding 0 @@ -20,6 +12,8 @@ skinparam Ranksep 50 skinparam RoundCorner 0 skinparam PackageStyle rectangle skinparam PackageFontStyle italic +skinparam ActivityStartColor black +skinparam ActivityEndColor black hide class circle |