So i’m working in Urho for some time and coming from cocos2d-x i feel that setup is a bit more complicated to get started. So i was thinking how it could be simplified and looking at cocos2d-x workflow, which is really easy to use, i couldn’t help but suggest to have some kind of project generator which would generate full project, totally independent and self sufficient.
Here is how could potential project structure look like:
- game
-- macos-ios (xcode project containing both targets referencing shared folder which contains all cpp game code and per target specific classes)
-- android (gradle + Urho3d library and shared game classes, which could be compiled directly from AndroidStudio, also easy to create JNI to connect various 3rd party SDKs like Ads, Analytics etc.)
-- windows (visual studio project with reference to shared folder and platform specific files)
-- linux (same as windows/mac)
-- shared (game cpp files which would be included in every target)
-- scripts (script files as/lua separated from resources)
-- urho3d (source or compiled, if it is source, it could be added as submodule to be easily updated, thought it will have longer build times for a game project)
-- resources (CoreData and Data copied here or just empty folder)
Basically when you generate project structure like this (the idea is taken from cocos2d-x and libgdx), you don’t rely on anything except what is in this folder. It is easy to iterate and test on all platforms, really easy to get started since everything is already setup for you.
Tell me what you think.