tests; new callbacks

This commit is contained in:
2024-01-03 20:26:42 +00:00
parent 7dfd8e6f9a
commit da5b7154d7
11 changed files with 116 additions and 65 deletions

View File

@@ -34,4 +34,7 @@ Computation takes place in turns. Each entity has functions called, if they exis
|stop|called when the object is killed|
|debug|use draw functions with the object's world position, during debug pass|
|gui|draw functions in screen space, during gameplay gui pass|
|draw|draw functions in world space|
|draw|draw functions in world space|
## Guidelines
When dealing with callbacks, callback registration can include objects or functions, but not both. You should either register an object to a list that always has 'update' called on them, or you should register the object's update function as a closure over the object.