hello! recently, i started developing a Flee The Facility inspired game called “Beat the game, NOW!”
the game itself
- plot: Quick, beat the game! A glitch in one of the players is causing the match to collapse, and in enough time, the server will crash! This corrupted player will do everything to stop the game — if the session ends, so does this player.
- game: There will be one glitched player, called “Glitch”, and 4 un-affected players. The player’s objective is to beat the game, which can be collecting all boxes, hacking computers, taking photos from certain places, etc (depends on the map) before the game collapses. The Glitch’s objective is to capture all of the players and trap them on a buggy spot of the map before the players finishes their objectives. The Glitch wins if all players got trapped or the server crashes, and the players wins if they beat the game.
but, since this is my first time making a game with a complete gameplay and i’m just in the start of its development, i don’t know how i could organize the code in the game for it to be easier to add new functionalities later
until now, i did only two functional mechanics, which is the hability of jumping through windows and character loading
this is how the hierarchy of my explorer looks like
so my question here is about the module scripts:
how should i organize them?
for example, should UI related module scripts stay in the ‘Players’ folder, or have their own folder? or instead, should all UI related module scripts be parented to the main UI module script?
also, should i split the code into more modules or less modules? like, the hability of opening doors or going through vents should be coded in the same module as the ‘Gameplay’ module (which has the jump through windows function), or each be separated into submodules?