Questions tagged [cocossharp]

.Net cross platform library for 2D games using C# and F#. It is a .NET port of the popular Cocos2D engine.

76 questions
4
votes
1 answer

Xamarin Add-ins Aren't working, cannot see list of add ins

I'm just getting started with CocosSharp in Xamarin Studio on Mac. I'm trying to follow this walk-through. https://developer.xamarin.com/guides/cross-platform/game_development/cocossharp/first_game/part1/ The first step in the Walk-through is to…
crpDave
  • 71
  • 6
3
votes
1 answer

Xamarin Forms Detect if Screen Active and/or Device Locked

I have a Xamarin Forms app that produces background audio and thus the app can run while the device is in lock mode and/or when the screen is not active (screen sleep). I have a need to prevent screen updates while the Xamarin Forms MainPage (a…
robbpriestley
  • 3,050
  • 2
  • 24
  • 36
3
votes
0 answers

Navigation Cocossharp and xamarin.forms

I have 2 pages, In first page when I click one of the item in listview, it should navigate to 2nd page and here in 2nd page snow particles are appeared. After that, when I click back button, as usual it goes to first page and again when I click any…
uncle_scrooge
  • 409
  • 1
  • 5
  • 28
3
votes
0 answers

Xamarin Android CCGameView Transparent Background

I have a Xamarin.Android project with a camera preview. I want to layer a CCGameView over the Preview using the live camera feed as the "background". I have tried setting the opacity of the CCScene to 0 and the Color of the CCLayerColor to…
Androprise
  • 128
  • 10
3
votes
1 answer

What is the right way to wait for MoveTo action to be completed?

I created an app that is essentially a rippof of candy crush using CocosSharp, which is something that I'm actually using for the first time, same for C# and Xamarin. To do the animations I'm using the provided MoveTo method, but I'm not sure how I…
Havik IV
  • 193
  • 4
  • 12
3
votes
2 answers

Android game : Drag one image at a time into screen from a group of images

I have 5 images stacked in the bottom of my screen. My game's aim is to drag these images and connect them on certain conditions.(Sort of jigsaw puzzle) I used the following code var touchListener = new CCEventListenerTouchAllAtOnce…
Binoy
  • 151
  • 1
  • 14
3
votes
0 answers

Same color is displayed differently on CCLabel and CCSprite in CocosSharp (Cocos2D)

I'm using CocosSharp in Xamarin to display a label (CCLabel) and a sprite with a background color (CCSprite). Both nodes have been assigned the same color value, but the colors are displayed differently on the device and in the simulator. Has…
Ruud van Falier
  • 8,765
  • 5
  • 30
  • 59
2
votes
1 answer

Trying to figure out how to pause and resume in Cocossharp (BouncyGame)

So I'm playing around with the BouncyGame. I made it so that when you start the game you need to press the screen for it to start. I would like to implement this whenever you play a new round as well. I tried to reuse this att the bottom of my code…
Gustav Eiman
  • 101
  • 2
  • 11
2
votes
0 answers

CocosSharp - using device camera as a game background

I am currently going through some game cross-platform frameworks and I really like the sound and look for CocosSharp. However I haven't been able to find out if it is possible to use device camera in the game itself. In my case I would like to use…
Jakub Holovsky
  • 6,543
  • 10
  • 54
  • 98
2
votes
0 answers

How To Implement Rich Text in CocosSharp?

Is there a good way to implement Rich Text using the existing CCLabel class or another class? I'ma ttempting to render something like the image below I wasn't able to find any information in the guides on rich text, the wiki entry on CCLabel…
Noah Callaway
  • 617
  • 5
  • 16
2
votes
1 answer

create a cocossharp project in xamarin

Im new in xamarin studio and im trying to create a cocosproject following the official guide, but this document is not very clear and my project have so many errors. https://developer.xamarin.com/guides/xamarin-forms/advanced/cocossharp/#nuget I've…
RN Vi
  • 68
  • 9
2
votes
0 answers

Cocossharp support for Xamarin.Mac

I am looking to develop a game using cocossharp targeting 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…
2
votes
0 answers

CocosSharp + Xamarin.forms + Carousel Page

I'm working on game in Xamarin.forms. I'm using CocosSharp as my graphic engine and it is great, but I have an question. My game is suppose to have 3 diffrent tabs/pages, so I used an Carousel Pages to do that. And now my question can I have…
2
votes
2 answers

Black border all around simulation / viewport in iOS using Xamarin + CocosSharp

I'm just getting started with Xamarin and CocosSharp so it's possible I've missed something basic here.. but whatever it is I can't seem to figure it out. I'm trying to get my app/game to be fullscreen (I would prefer to see the status bar with…
JensB
  • 6,663
  • 2
  • 55
  • 94
2
votes
2 answers

CocosSharp and touches

I have several sprites in a CocosSharp game, and for each of them I add a CCEventListenerTouchAllAtOnce. I noticed that it doesn't matter where I touch, all of the sprites receive the OnTouchesBegan/Moved/Ended event. Is there a way to make a…
Idov
  • 5,006
  • 17
  • 69
  • 106
1
2 3 4 5 6