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
0
votes
1 answer

Cocossharp Template not working

I'm new to cocossharp. I installed cocossharp templates for visual studio, when i select a new cocossharp android game, and run the application, all I get is a black screen with a logo at the top. From the code, I believe i am supposed to get a…
0
votes
1 answer

Android build issue --- android/gms/internal/zzkf$5

Xamarin and CocosSharp are used in Visual Studio 2015. When using 340m as heap space: Error java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize). Java ran out of memory while executing 'java.exe -Xmx340m -jar …
mnemonic
  • 1,605
  • 2
  • 17
  • 26
0
votes
1 answer

Placing an Admob banner at the bottom of screen

I have added a Admob banner to a scene in my app by using the example from: https://forums.xamarin.com/discussion/51779/cocossahrp-and-admob. The ad displays at the top of the screen but I want to display it at the bottom. I couldn't find any…
0
votes
1 answer

'ApplicationName' and 'Hello' strings missing in 'Resource.String' in Xamarin.Forms

I had fully working Xamarin.Forms (Android and iOS). HAXM is running. Then I installed CocosSharp from nuget in my PCL project and both Android and iOS projects. iOS project works great but Android... not. I have: 'Resource.String' does not contain…
Ish Thomas
  • 2,270
  • 2
  • 27
  • 57
0
votes
1 answer

How to install CocosSharp in Xamarin.Forms Protable project?

I created a Blank App (Xamarin.Forms Portable). I set up and run HAXM, Android and iOS projects works great. I wanted to add a CocosSharp view, so I tried to install CocosSharp nuget package. But I'm getting this errors: Is this another bug? How…
Ish Thomas
  • 2,270
  • 2
  • 27
  • 57
0
votes
0 answers

How to change images of sprites whch lie in the touch area on touch event

Here ballList is the list of sprites. On touching the sprites, the image changes. The problem is that the when two sprites are present in the touch area, i.e. in the list having positions where the sprites are placed for which image change should…
0
votes
0 answers

Game View disappears when moved from one tab to another

I have 2 tabs and on the view I have a game view. As I move from one tab to another, the game view disappears. ViewDidDisappear method is called. How to resolve this? public override void ViewWillAppear(bool animated) { …
0
votes
1 answer

I installed Xamarin Studio Community, and cannot access CocosSharp templates or add-ins

I recently downloaded and installed Xamarin Studio and would like to try using the CocosSharp libraries for a game idea I have in mind. The problem is I don't seem to have access to CocosSharp. The templates are not appearing in the Xamarin Studio…
0
votes
0 answers

Cannot render CocosSharpView at all in Xamarin.Forms

I'm having an issue using the very basis of CocosSharp - rendering with Xamarin.Forms. Having CocosSharp in version 1.7.1 and Xamarin 2.3.2.127. ViewCreated event is not called at all for my CocosSharpView (either created from code, or from xaml).…
mat.b
  • 1
  • 1
0
votes
1 answer

Check for multiple overlapping sprites

I've just started exploring CocosSharp library for mobile games, and can't figure out if there is some easier way for detecting collision between sprites on screen. I've watched some tutorials about collisions but can't find something about…
freshbm
  • 5,540
  • 5
  • 46
  • 75
0
votes
1 answer

vs2015 Cocossharp beginner's guide

i'm trying to get into 2d game development. my eyes are on cocossharp. now the guides that are out there quite outdate. with MS buying xamarin a few months ago i'm not sure how i can make this work as all the guides are stuck with the old xamarin…
wh3resmycar2
  • 191
  • 1
  • 13
0
votes
1 answer

How to scale a CCSprite to any resolution in CocosSharp (Android)?

I'm trying to scale a CCSprite to any resolution in CocosSharp, this is what I've got: void AddTruck () { var spriteSheet = new CCSpriteSheet ("animations/truck.plist"); var animationFrames = spriteSheet.Frames.FindAll ((x) =>…
OPMUANRK
  • 13
  • 5
0
votes
1 answer

Xamarin Forms CocosSharp pause / resume scene android not working

in Xamarin Forms i've added a CocosSharpView with a simple animation CCMoveTo myactions = new CCMoveTo(1f, new CCPoint(100, 100)); CCMoveTo myactions2 = new CCMoveTo(4f, new CCPoint(0, 100)); CCMoveTo myactions3 = new CCMoveTo(2f, new…
markus
  • 475
  • 10
  • 27
0
votes
1 answer

Can Xamarin.Android be used to develop Android games?

I have successfully developed an iOS game with Xamarin.iOS. Now, would someone please tell me if Xamarin.Android can be used to develop Android games ? On Xamarin website, when I search for samples of games for Xamarin.Android, I can only see…
Job_September_2020
  • 858
  • 2
  • 10
  • 25
0
votes
1 answer

How do you exit a cocossharp application?

How do you exit a cocossharp application ? And before you answer please note that CCApplication has been replaced with CCGameview in the latest version (V4.0.30319) of cocossharp. Thanks.