Registered Member
|
Hi All, I recently install kbattleship using svn trunks and cmake. Now it running perfectly. I want to build new AI for kbattleship. Can I use Kwrite to write my new AI headerfile and source file. And what are the changes I should make for the CMakeFile.txt before build it again to apply my AI to game. I'm very new to open source.
thank you. |
KDE Developer
|
Welcome to KDE games development
What you basically have to do is this: In kbattleship/src/CMakeLists.txt there is a line
followed by all the sources files of the game. You add your source file or source files there as well. Then, to make KBattleShip use your AI, you edit kbattleship/src/aientity.cpp and either replace one of the currently used AIs or create yours for an unused difficulty level. I would also recommend to subscribe to the KDE games development mailing list, here https://mail.kde.org/mailman/listinfo/kde-games-devel It is a very low-traffic list and has the advantage that most KDE games developers are on it, so especially game development related questions will be answered best over there. Cheers, _
anda_skoa, proud to be a member of KDE forums since 2008-Oct.
|
Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell