#which is better organization of modules?

1 messages · Page 1 of 1 (latest)

torn acorn
#

currently assembling my library of modulescripts for easier development of my game, and im just wondering, which of the two is better?
-having all the functions be their own modules
-having all the modules be overarching containers of several related functions
first time developing a library like this so i dont wanna mess everything up for the future.

viscid shoal
#

I definitely wouldn't have a single function per module - a module should contain a group of related functions as well as closely related variables / tables - so most likely your second option