-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
files structure #34
Comments
Yes, this totally makes sense. Just do it for the Windows side and I can fix the CMake setup for Linux. But if you feel confident, you can also do the change in the CMakeLists.txt file to apply the change to Linux. |
I started by dividing the functions into separate Sound and Animation files. This is only begin many functions is in bad files, now. The Basic file swelled a lot :) It will later need to be divided into things about rendering (Bitmap or Draw2D), things about memory (Memory) and more, but until then it would like to understand more what it is for. So far, I've left the files in remc2, so CMakeLists.txt probably wouldn't be affected. |
Ok, I have not tried to get the editor running on Linux. I think I would need to get kiss_sdl running for that. |
Kiss-SDL is only 5 files, where is included in project(I modify original code adding some enhanced elements). |
In the future, it will be desirable to split sub_main.cpp / .h into multiple folders. I would wait to change these actions. But I would divide the part as soon as the current branches are merged. These are sounds and animation(videos).
I would create Basics.cpp/.h - some basic function used in both sound and animations only temporary solutions - may not be needed
I would create Sound.cpp/.h(include Basics)
I would create Animation.cpp/.h(include Basics, Sound)
I would create LevelGeneration.cpp/.h(include Basics)
I would change sub_main.cpp/.h(include Basics, Sound, Animations, LevelGeneration)
I would leave further divisions for later, because they are not unambiguous.
Independent LevelGeneration is good basis for editor - I want change it to project solution, but with use some files from remc2 project. Editor will be good for testing individual entities separately - for easy find some errors.
Do you agree with that?
Tom.
The text was updated successfully, but these errors were encountered: