Forum Xamarin Xamarin.iOS

Cocossharp support for Xamarin.Mac

I am looking to develop a game using cocossharp targetting mac. When i am trying to add nuget packages, cocossharp packages are failing to add with the following error.

Could not install package 'CocosSharp 1.7.1'. You are trying to install this package into a project that targets 'Xamarin.Mac,Version=v2.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Could someone explain which is the right package or if there was a versioning problem that i am hitting into here.

I also noticed the - http://mono.github.io/CocosSharp/ where I see an issue "#371 CCGameView: Add Mac support" marked to be part of the next release. Does that mean, Cocossharp is currently not supported on Mac?

Posts

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    What target framework (https://developer.xamarin.com/guides/mac/advanced_topics/target-framework/) do you have selected in your project. Try XM 4.5, I doubt the nuget has a mobile version.

  • xamdevxamdev GBMember

    Thank you. That has resolved the package adding error.

    Just wondering if there are is any example Xamarin.Mac application that uses Cocossharp latest version. The angryninjas example does not seem to build on the latest Xamarin Studio though.

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    I know of no XM examples using Cocoasharp right now.

    If you get things working, posting a sample somewhere wouldn't be a terrible idea.

  • xamdevxamdev GBMember

    Thank you. The fact that the following issue is open -

    CCGameView: Add Mac support

    Does this mean, the latest version of CocosSharp does not work with CCGameView object in Mac. If so, what are the alternatives to use CocosSharp in Mac.

    Also, considering I am new to CocosSharp, could someone from Xamarin help put up a simple sample application just to how to instantiate the cocossharp view in Mac and I can then other examples to build the rest of the application.

    Can someone offer help.

  • xamdevxamdev GBMember

    It looks like there are many others looking for the same thing. Can you offer help.

    https://github.com/mono/CocosSharp/issues/394

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    I did some quick poking around, and I was not successful with the current 1.7.1 build on Mac after a few minutes.

    You'll have to contact the CocoaSharp team or take a look at their code (since it is open source) for specific details.

    Sorry.

  • MigueldeIcazaMigueldeIcaza USXamarin Team Xamurai

    You might want to consider UrhoSharp that also has a 2D backend.

  • xamdevxamdev GBMember

    Thank you Miguel. Few queries:

    1. Are there sample MAC applications that use UrhoSharp.
    2. Is there a reason you are suggesting UrhoSharp compared to CocosSharp
    3. If there is existing CocosSharp, is it easy to port to UrhoSharp.
  • xamdevxamdev GBMember

    @ChrisHamons said:
    I did some quick poking around, and I was not successful with the current 1.7.1 build on Mac after a few minutes.

    You'll have to contact the CocoaSharp team or take a look at their code (since it is open source) for specific details.

    Sorry.

    Chris,

    Thank you. I could not even build and open the mac solution on my macbook. Could you build it?

    How do I contact the team. Is there a slack public chat that I can join or any other means?

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    Yes, the samples are totally broken on XM right now me locally.

    http://lists.ximian.com/mailman/listinfo/cocoa-sharp is likely the best place to contact anyone working on it.

    1. See - https://github.com/xamarin/urho-samples. I was able to build the feature sample and run it out of the box on mac.
    2. I believe the community around UrhoSharp is larger right now.
    3. You'll likely have to redo all of the UI.
  • xamdevxamdev GBMember

    Chris,

    the following seem to refer to CocoaSharp. Are we referring to CocosSharp or CocoaSharp.

    http://lists.ximian.com/mailman/listinfo/cocoa-sharp

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    Woops. Wrong list. One second.

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    Ok, I was mistaken. There is no public mailing list. Your best bet is to contact via issues on github, but I'll second Miguel's suggestion to move to UrhoSharp.

    There is a lot of activity over there.

  • xamdevxamdev GBMember

    Hi Chris,

    Can you share few real game name built with UrhoSharp and loaded into stores.

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai

    Unfortunately, my knowledge of UrhoSharp is limited to what can be found with a quick google search. You might be able to find more specific information by posting to the Urho forum:

    https://forums.xamarin.com/categories/urhosharp

  • xamdevxamdev GBMember

    Thanks Chris.

    as per your request, have posted the following item.

    https://forums.xamarin.com/discussion/79077/is-urhosharp-production-ready

  • xamdevxamdev GBMember

    Hi Miguel, Chris,

    I have downloaded UrhoSharp samples and got them working both on WPF and Mac. WPF one, it shows integration into a GUI app using WindowsFormsHost.

    However, I am trying to do a Xamarin.MAC application that has an UI built using storyboards. I could not find an example showing the integration of the UrhoSharp with the ViewControllers.

    Can you let me know if this scenario is supported. if so, could you kindly point me towards a sample application.

Sign In or Register to comment.