Thank you so much! I saw your game just recently when i was researching! Looks really cool I should give it a try and I hope I can ask you in the future about certain things.
I can see this work for some but for something like “Garlic” it would not work right.
Right now i have modules Knife.lua, Garlic.lua these contain the data and information about the weapon, as well as a Weapon.lua module which holds all the weapon modules
For each weapon factory i have one script that updates all the bullets. (knife_controller) and so on.
I have a main script “Game_Controller” which is like a central controller for messages like, (start_game, level_up_start, level_up_end …) It sends msgs from there to the involved objecets/scripts.
I was not 100% sure about the use of modules, i also have one for “Game_State” and “Player_Data”. It feels like i can organize the code well like that.
Does this make sense?