docs: diagrams for unit of work, update method, and value object

This commit is contained in:
Ilkka Seppälä
2025-04-12 09:49:08 +03:00
parent 6195d5e1e8
commit 81ecb5638d
6 changed files with 12 additions and 0 deletions
+4
View File
@@ -35,6 +35,10 @@ gameprogrammingpatterns.com says
> The game world maintains a collection of objects. Each object implements an update method that simulates one frame of the objects behavior. Each frame, the game updates every object in the collection.
Sequence diagram
![Update Method Sequence Diagram](./etc/update-method-sequence-diagram.png)
## Programmatic Example of Update Method Pattern in Java
The Update Method design pattern is a behavioral pattern that simulates a collection of independent game or application objects by telling each to process one frame of behavior at a time. This pattern is commonly used in game development, where each object in the game world needs to be updated once per frame.
Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB