Forum Libraries, Components, and Plugins

Welcome to CocosSharp Forum!

MigueldeIcazaMigueldeIcaza USXamarin Team Xamurai

Let me welcome you to the CocosSharp forum, the place where we discuss the future of the open source and cross platform CocosSharp stack.

CocosSharp offers a carefully crafted API that follows the .NET conventions and idioms and is delivered as a NuGet package in both full-stack access and Portable Class Library modes. We also ship with very comprehensive platform support. From Xamarin's favorites: Android, iOS and Mac to four variations of Windows and Windows Phone.

CocosSharp owes a lot to the great work that the Cocos2D-XNA team did (Jake and Gena at Totally Evil) and the many hackers that built Cocos2D-X and Cocos2D for Objective-C.

In the last couple of months we have shared this project with a few developers outside of Xamarin and we saw them contribute great pieces of technology like a C# implementation of Chipmunk (



  • _ab__ab_ TWMember ✭✭

    Just when you thought things couldn't get any better ............................

  • JoseMedranoJoseMedrano ESMember

    Nice work!

  • FelzuraFelzura NLMember

    Great work. Thanks for the detailed 'key differences between cocos2d' page on github!

  • mikeberlinmikeberlin USInsider, Beta, University, Developer Group Leader ✭✭

    Nice, looking forward to working with this!

  • jacobandersonjacobanderson USMember

    Great! Thanks for stealing the project instead of just contributing to it. Maybe next we'll just go steal Mono and rename it to something else and announce it as 'look at the wonderful new project from us.'

    Enjoy the wonderful prosperity of stealing other people's work and claiming it for your own.

  • jacobandersonjacobanderson USMember

    The purpose of the MIT license is to unencumber your fair use. Not to encourage you to take software, rebrand it as your own, and then "take it in a new direction" as you say.

    While not illegal, it is unethical. I am sure Microsoft, one of Xamarin's key partners, is quite happy to know that Miguel is actively engaged in this type of unethical behavior.

    We worked quite hard on box2d for C#, thanks for taking that too. We even thought about charging for that effort, but decided that doing so would be unethical eventhough the box2d license allows us to do that.

    So again, thanks Xamarin. Thanks for stealing our work. Thanks for not contributing to the effort, but rather having your tantrum and then making the project your own. Good luck. Can't wait to see the $900 premium version where you charge money for the work we did.

    Thanks again for making open source software such a great experience. I am sure this will encourage even more people to contribute their time and effort to free software for Xamarin to suck up under the guise of "fair use."

  • bradmbradm AUMember ✭✭✭

    Would there be any benefits in porting an already existing MonoGame game running on iOS and Android to use CocosSharp instead of MonoGame?

  • TonyFonagerTonyFonager DKInsider ✭✭

    Miguel, thanks - you guys keep pushing the limit of awesomeness ;-)

  • imkowJackimkowJack CNMember ✭✭

    it would be great to see Xamarin donate some money to Cocos2D-XNA

  • JoelMartinezJoelMartinez USXamarin Team Xamurai
    edited August 2014

    @bradm‌ If the game is already up and running, then there's probably not much value in moving to CocosSharp, which is built on top of MonoGame. CocosSharp gives you the elements of a 2d game engine that you would have otherwise had to implement yourself when programming directly against monogame/xna, such as the scene graph, physics, and other elements such as actions, audio, animations, etc.

    However, if you're starting up a new game, or if your game could benefit from the services provided by CocosSharp, then by all means, port away! :)

  • MigueldeIcazaMigueldeIcaza USXamarin Team Xamurai


    MonoGame is the low-level framework that powers CocosSharp. So the question as to whether you want to port or not depends on whether the Cocos2D model is good enough for you or not.

    If you are building your own game engine, MonoGame will give you access to the lower-level features that you need to roll out your own system. But if you want a simple system that provides animations, actors, actions, simple physics and so on, CocosSharp is for you.

  • Hey everyone.

    We have opened a public irc channel #cocossharp on for all who like to interact with irc.

  • tinlamtinlam USMember, University

    @MigueldeIcaza‌, great work! having it in a PCL helps simplify the projects/solution A LOT! any timeline on supporting SpriteBuilder? :-) thanks!

  • tinlamtinlam USMember, University

    @bradm‌, cocossharp has the libraries in PCLs. so compared with the cocos2d-xna approach, the solution/projects setup is greatly simplified, that alone is good enough reasons for me. the cocos2d-iphone is now on 3.x (support of SpriteBuilder), cocos2d-xna is still on 2.x (still just the old CocosBuilder). i left a message on a few weeks ago asking 3.x and spritebuilder timeline, but as of today, there's still no response on that.

  • FunkmothFunkmoth CAMember

    There's probably an obvious solution (I'm rather new and incompetent with platforms/inter-project relations in this area), but I noticed no mention of Linux support or projects anywhere. Working from Linux with MonoDevelop 4.x is rather important for me, seeing as how it's my primary development platform. Is there an easy way to do this myself? Or is there an ETA for it? Sorry to be a bother.

  • MigueldeIcazaMigueldeIcaza USXamarin Team Xamurai


    While we do not have a solution or a package ready to go yet, you should be able to build the source code and get up and running on Linux.

  • overdugaoverduga MXMember

    Great effort, I'm eager to work on this.

    is there some plans for supporting the PS Vita platform?

  • MigueldeIcazaMigueldeIcaza USXamarin Team Xamurai

    The underlying platform (MonoGame) has support for PS Vita, so it should work.

    Let us know if you get it going, it should be simple.

  • Since nobody is going to cut Jacob some slack I just want to add that I can understand his frustration. Totally Evil did a great job and chances are that cocos2d-xna is basically history now. OS totally depends on adoption so the claim that they can compete with an official Xamarin project is a bit inane.

    As a developer I can only welcome anything that strengthens my chosen tools. So this is good news I guess.

    The king is dead, long live the king.

  • Danny_GloverDanny_Glover IEMember

    This is a most welcome addition. Hopefully it is well documented. Cocos2d as a whole is lacking in documentation I feel, unless i was looking in the wrong place.

    In any case, cheers! :)

  • MigueldeIcazaMigueldeIcaza USXamarin Team Xamurai

    I am not going to claim that this is the most documented Cocos implementation, as it is not :-)

    But we are working on it! Tell me what you would like to see better documented, and we will add that to our priority queue.

  • Danny_GloverDanny_Glover IEMember

    @MigueldeIcaza‌ Appreciate the offer! I'll start by looking over what is currently there and get back to you.

    Looking forward to using Xamarin for game dev now too :>


  • john82john82 ITMember ✭✭✭

    I'm really happy to see that Xamarin decided to support (and "port") the most famous game engine used to make 2d games, but I'm wondering if it's considerable stable for production purpose. The guide states that CocosSharp is based on Monogame, which has many bugs that still need to be resolved (I'm talking about iOS, Android and WP8). Don't get me wrong, CocosSharp and MG are two great projects, but I know MG since the begin and I know for sure that it still need a lot of work for being considerable a "stable product". Am I wrong? Maybe Xamarin can give it a boost?

  • Shooter25Shooter25 USMember
    edited August 2014

    I know there are several books on cocos2d. I saw one in javascript i believe and I was reading one for objective-c. My question is will cocosharp use the new sprite-kit (objective-c) under the covers for cocosharp? Has Monogame aways been the lower level of cocos2d or is this new for the cocos2d version of cocosharp? TIA!

  • MigueldeIcazaMigueldeIcaza USXamarin Team Xamurai

    Hello Francesco,

    It is our intention to contribute to MonoGame to improve that stack and improve the working pipeline.


  • RyanDavisRyanDavis AUInsider, University ✭✭

    For someone who is not familiar with the Cocos2D framework but wants to start with CocosSharp, how would you recommended beginning to learn? Would a book on CocosXNA or Cocos2D still be useful to give some grounding, or are there enough differences that it would cause problems?

  • RamiTabbaraRamiTabbara AUMember, Xamarin Team Xamurai

    Hi Ryan,

    I think the best way to dive into CocosSharp is to check out the GoneBananas walkthrough found here. The walkthrough is very well-written and self-contained so I think it should definitely equip you with enough information to get started.

    But there's certainly no harm is supplementing your knowledge with books on Cocos2D to give you a grounding as long as you're aware of the key differences as mentioned here.

  • SuhairZainSuhairZain USMember

    I'm sorry. I just got lost in all the arguments over FOSS and proprietary s/w. My question is, will it cost me anything to:

    1) Create a game
    2)Upload it to an app market
    3)Put it up for a price.

    And do I need a Xamarin account to use CocosSharp?

    Also, if possible please point me to a page which explains up to the point of creating a new CocosSharp project.

  • RamiTabbaraRamiTabbara AUMember, Xamarin Team Xamurai

    Hi Suhair,

    CocosSharp is under the MIT license. The license outlines what you can and can't do with our library, but in general this is a highly permissive license.

    In terms of costs, releasing a game will incur the same additional costs as releasing any application dependent on which platforms you're targeting.

    No, you do not necessarily need a Xamarin account to use CocosSharp. CocosSharp is currently available as a NuGet package and you're free to install it now.

    To get started, there's a newly release walkthrough found here which outlines how to create a project from scratch.

    There are also Xamarin Studio project templates which you can install, details here which will setup a skeleton project for you.

  • Awesome stuff to create games....Here's my take on cocosSharp

  • SuhairZainSuhairZain USMember

    Hi Rami, thanks for your reply. I checked out your API and it looks good(I hope I'm not deceived by the looks though ;) ).

    I'm currently starting to develop on Linux and I was wondering if there was a way I could develop using Eclipse as the IDE. I saw in the readme file that it can be done using ProtoBuild. But I'm knew to all this and was wondering if you could help me or point me somewhere it's already mentioned. I tried googling for it, but couldn't find one.

  • RamiTabbaraRamiTabbara AUMember, Xamarin Team Xamurai

    Hi Suhair,

    If you're looking to target Android then you're going to encounter a problem because unfortunately Mono for Android on Linux is currently unsupported.

  • SuhairZainSuhairZain USMember

    Hi Rami,

    as a matter of fact, I was trying to develop with CocosSharp without using Xamarin Studio. Please forgive me if I'm rude, but its a whole lot bloody business getting it set up. Is there any way to use CocosSharp without Xamarin Studio, on Windows or Linux?

  • BenLevy.4265BenLevy.4265 USMember ✭✭

    @SuhairZain ,

    You can use CocosSharp to build Windows apps without Xamarin at all. If you want to build for iOS or Android with CocosSharp you will need Xamarin. You DON'T need to use Xamarin Studio, you can use Visual Studio even if you are using Xamarin.

    To build a CocosSharp Windows App without Xamarin, you will just need to get the template you want installed in VS and then create a new project. Be sure you get the correct NuGet package. Current templates use 1.7.x.

    If you are planning on actually releasing a Windows game, I would suggest you give Cocos2d-X a good look. Currently there is no way to properly resize a Windows desktop app in CocosSharp. Also, there is very little support and concern for non-mobile development.

    That being said, the Cocos2d docs are in a really bad state too. Lot's of 404's.

  • MounikaKolaMounikaKola USMember ✭✭

    How to add shadows to CCSprite?

Sign In or Register to comment.