Hi guys!
I have an app that needs to be duplicated. Codebase is the same, but I'll need to change some graphics and sounds.
What is a good way to maintain these several projects and reduce manual routine when I'll need to change something in code later on?
My current project structure is:
GiderosProject
Files
/classes
/gui
/images -- contains 1.jpg, 2.jpg, 3.jpg, etc.
/sounds -- contains 1.wav, 2.wav, 3.wav, etc.
appConfig.lua
init.lua
main.lua |
The only thing that is unique in every project is file "appConfig.lua" and files inside folders "images"&"sounds".
Guys I need your wisdom!
Many thanks!
Comments
Likes: MoKaLux, plicatibu
how come I didn't try it at the first place!
Likes: MoKaLux
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Likes: Apollo14
My 'init.lua' file depends on 'datasaver.lua', I usually right click on 'init.lua' and choose "Code dependencies...".
How can I avoid manual setup of dependecies?
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)
Likes: Apollo14
I've just tried to start new project based on previous template. It seems that code dependencies are totally broken or random (actually I had only one dependency: init.lua depended on dataSaver.lua)
I use very simple OOP code&file structure:
/root/
init.lua
main.lua
appConfig.lua
/classes/* --generic classes like button.lua, gtween.lua, etc
/gui/* --my classes
Inside main.lua I create several objects:
It all worked as expected in the normal first project.
But when I've created second project, I've linked my files&folders from the first project (linked init.lua, main.lua too), and now all my classes are totally broken like there're no dependencies, lots of errors. If I duct-tape one class, then another class breaks, then another, etc...
Can such unexpected behavior be caused because I've linked main.lua and init.lua?
"What one programmer can do in one month, two programmers can do in two months." - Fred Brooks
“The more you do coding stuff, the better you get at it.” - Aristotle (322 BC)