We just released a new version of our C++ examples package available on this page: http://www.smartfoxserver.com/download/sfs2x#p=examples
The package now contains a complete cards game developed using Cocos2d and the SmartFoxServer 2X C++ API.
The game has been developed by ganquan after our "call to arms" (see this post: viewtopic.php?f=34&t=15891). It comes with the source code and full instructions to setup the development environment to deploy the game to multiple platforms (iOS, Android, Windows 7).
The game is provided "as is". You can contact the author on this forum for more questions.
Multiplatform cards game example available
Moderators: Lapo, Bax, MBagnati
Multiplatform cards game example available
- Attachments
-
- fullhouse.png
- In-game screenshot
- (389.96 KiB) Not downloaded yet
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Re: Multiplatform cards game example available
Awesome! Thanks so much ganquan! You're a lifesaver.
Re: Multiplatform cards game example available
I download Cpp_Example and run FullHouse in Visual Studio 2012 but it show error like my file attachment. Could you help me to resolve it please. Thanks!
- Attachments
-
- Error.jpg
- (152.64 KiB) Not downloaded yet
Re: Multiplatform cards game example available
Please take a look at this: http://stackoverflow.com/questions/1957 ... match-valu
Hope it helps.
Hope it helps.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Re: Multiplatform cards game example available
I set Platform toolset to v110 but nothing changes. Is there another to solve this situation?
My error is:
My error is:
Code: Select all
Error 3 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCScale9Sprite.obj) FullHouse.win32
Error 4 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCEditBox.obj) FullHouse.win32
Error 5 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCBAnimationManager.obj) FullHouse.win32
Error 6 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCBReader.obj) FullHouse.win32
Error 7 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCNodeLoader.obj) FullHouse.win32
Error 8 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCLayerLoader.obj) FullHouse.win32
Error 9 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCNodeLoaderLibrary.obj) FullHouse.win32
Error 10 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCSpriteLoader.obj) FullHouse.win32
Error 11 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCControlButton.obj) FullHouse.win32
Error 12 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCControl.obj) FullHouse.win32
Error 13 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCEditBoxImplWin.obj) FullHouse.win32
Error 14 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCBSequence.obj) FullHouse.win32
Error 15 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCNode+CCBRelativePositioning.obj) FullHouse.win32
Error 16 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCBValue.obj) FullHouse.win32
Error 17 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCBKeyframe.obj) FullHouse.win32
Error 18 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCBSequenceProperty.obj) FullHouse.win32
Error 19 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCData.obj) FullHouse.win32
Error 20 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCLayerColorLoader.obj) FullHouse.win32
Error 21 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCLayerGradientLoader.obj) FullHouse.win32
Error 22 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCLabelBMFontLoader.obj) FullHouse.win32
Error 23 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCLabelTTFLoader.obj) FullHouse.win32
Error 24 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCScale9SpriteLoader.obj) FullHouse.win32
Error 25 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCBFileLoader.obj) FullHouse.win32
Error 26 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCMenuItemLoader.obj) FullHouse.win32
Error 27 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCMenuItemImageLoader.obj) FullHouse.win32
Error 28 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCControlButtonLoader.obj) FullHouse.win32
Error 29 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCControlLoader.obj) FullHouse.win32
Error 30 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCParticleSystemQuadLoader.obj) FullHouse.win32
Error 31 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCScrollViewLoader.obj) FullHouse.win32
Error 32 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCScrollView.obj) FullHouse.win32
Error 33 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(CCControlUtils.obj) FullHouse.win32
Error 34 error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in AppDelegate.obj D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\libExtensions.lib(Win32InputBox.obj) FullHouse.win32
Error 36 error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::_Tree_const_iterator<class std::_Tree_val<struct std::_Tree_simple_types<class cocos2d::CCObject *> > > __thiscall cocos2d::CCSet::end(void)" (__imp_?end@CCSet@cocos2d@@QAE?AV?$_Tree_const_iterator@V?$_Tree_val@U?$_Tree_simple_types@PAVCCObject@cocos2d@@@std@@@std@@@std@@XZ) referenced in function "public: virtual void __thiscall LayerGaming::ccTouchesBegan(class cocos2d::CCSet *,class cocos2d::CCEvent *)" (?ccTouchesBegan@LayerGaming@@UAEXPAVCCSet@cocos2d@@PAVCCEvent@3@@Z) D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\LayerGaming.obj FullHouse.win32
Error 35 error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::_Tree_const_iterator<class std::_Tree_val<struct std::_Tree_simple_types<class cocos2d::CCObject *> > > __thiscall cocos2d::CCSet::begin(void)" (__imp_?begin@CCSet@cocos2d@@QAE?AV?$_Tree_const_iterator@V?$_Tree_val@U?$_Tree_simple_types@PAVCCObject@cocos2d@@@std@@@std@@@std@@XZ) referenced in function "public: virtual void __thiscall LayerGaming::ccTouchesBegan(class cocos2d::CCSet *,class cocos2d::CCEvent *)" (?ccTouchesBegan@LayerGaming@@UAEXPAVCCSet@cocos2d@@PAVCCEvent@3@@Z) D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\FullHouse\proj.win32\LayerGaming.obj FullHouse.win32
Error 37 error LNK1120: 2 unresolved externals D:\NOW\Projects\BoTocRong\Practice\Examples\SFS2X_Cpp_Examples\FullHouse (XCode, VS2010, Eclipse)\client\FullHouse\bin\FullHouse.win32.exe FullHouse.win32
Re: Multiplatform cards game example available
i make a VS 2012 project , update cocos2dx to 3.x, download link: http://pan.baidu.com/s/1mgxD4xy
there are bugs when gaming, but login, start game and send message works.
boost and smartfoxserver api not included, your should change the project setting to where your boost and smart fox api are.
there are bugs when gaming, but login, start game and send message works.
boost and smartfoxserver api not included, your should change the project setting to where your boost and smart fox api are.
Who is online
Users browsing this forum: No registered users and 25 guests