Guys im making an RPG game with powers is this way of organizing the modules and folders good?


how can i improve??

1 Like

it’s a good start, but nesting models/anims inside a ModuleScript will make your code messy later. you should move the fireball model and animation into their own ‘Assets’ folder instead of parenting them inside the script. keep logic and models separate so they’re easier to find and clone

1 Like

No, its terrible
Have a “switch” dictionary storing function corresponding to each ability
That it, no need balkanizing own game
Otherwise its hard to manage, awful to performance and doesn’t even scales
Keep hot variables (effects etc) on the stack of script aswell so it has a referance.

1 Like

something like this?:

abilities = {
  Fire = function() ... end,
  Ice = function() ... end
}
1 Like

Yes
This is much more readable and performant that way

1 Like