3 ms·
Basically just like you would in OOP. Put related variables next to each other in a group and pass this group around. In OOP this is called a class and in class
by huijzer 4y ago
Basically just like you would in OOP. Put related variables next to each other in a group and pass this group around. In OOP this is called a class and in classless languages such as C this is called a struct. The functions on this object can be organised in modules just like would be done in OOP. See also https://gamedev.stackexchange.com/a/172405 https://gamedev.stackexchange.com/a/172405.