Multiplatform cards game example available

Post here your questions about the C++ API for SFS2X

Moderators: Lapo, Bax, MBagnati

User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Multiplatform cards game example available

Postby Bax » 11 Jul 2013, 09:36

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.

Image
Attachments
fullhouse.png
In-game screenshot
(389.96 KiB) Not downloaded yet
Paolo Bax
The SmartFoxServer Team
Mazyod
Posts: 25
Joined: 04 Sep 2012, 16:05

Re: Multiplatform cards game example available

Postby Mazyod » 15 Jul 2013, 22:21

Awesome! Thanks so much ganquan! You're a lifesaver. :D
rivon3003
Posts: 11
Joined: 23 Sep 2014, 09:37

Re: Multiplatform cards game example available

Postby rivon3003 » 06 Oct 2014, 10:44

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
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Multiplatform cards game example available

Postby Bax » 07 Oct 2014, 13:52

Please take a look at this: http://stackoverflow.com/questions/1957 ... match-valu
Hope it helps.
Paolo Bax
The SmartFoxServer Team
rivon3003
Posts: 11
Joined: 23 Sep 2014, 09:37

Re: Multiplatform cards game example available

Postby rivon3003 » 13 Oct 2014, 07:38

I set Platform toolset to v110 but nothing changes. Is there another to solve this situation?
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
ganquan
Posts: 38
Joined: 17 Apr 2013, 01:42

Re: Multiplatform cards game example available

Postby ganquan » 15 Oct 2014, 10:17

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.

Return to “SFS2X C++ API”

Who is online

Users browsing this forum: No registered users and 18 guests