cocossharp

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

ぐ巨炮叔叔 提交于 2020-01-02 06:14:15
问题 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 open up Xamarin Studio, and install the CocosSharp add-in. "If running on a Mac, select Xamarin Studio > Add-in Manager...Click the Gallery tab, expand the CocosSharp item, select CocosSharp project templates, and finally click Install... ." When I do

How do you exit an application in CocosSharp?

不想你离开。 提交于 2019-12-25 20:04:46
问题 I am trying to add "Exit Game" functionality in my CocosSharp game (for Windows phone) but I am unable to find any sample code/ guidance online. Any pointers would be welcome. User should be able to quit the game by pressing a button image on the screen. 回答1: Mobile apps are not closed. They run forever unless they crash, are forced closed by the user, or are shut down by the OS to free up resources. It's not to say you cannot invoke a system call to exit your program but it is simply not the

“Type or namespace Box2D could not be found” on Android (Xamarin/CocosSharp)

左心房为你撑大大i 提交于 2019-12-25 06:20:39
问题 Im building a simple game with Xamarin/Cocossharp in a Shared Project. I added some physics with Box2D and everything works well on WP8.1. I import Box2D and i access to the methods and class provided without problem on Windows Phone, but when i try to compile it for Android it says that the type or namespace "Box2D" could not be found. Intellisense doesn't shows any error... error output I'm new to game dev and also to VS2015 so it may be something simple but i dont understand what I'm

Game wont fully load on Android (Xamarin/CocosSharp)

北城以北 提交于 2019-12-13 01:25:07
问题 Let me start by saying that i'm new to Xamarin/Cocossharp and game development in general. I did a very basic game/application starting from the Cocossharp template for Shared application in VS2015. Now my app works well on WP (Emulator & Device) but wont start up on android. After the emulator laoded this is what i get: android 4.4 emulator No Exception has been generated. I only get those errors in the output window, but they don't actually crash the application: debug output it looks like

create a cocossharp project in xamarin

半城伤御伤魂 提交于 2019-12-11 02:05:07
问题 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 created a xamarin.form with IOS, android and PCL as guide say I've added the cocosSharp packages to IOS and Android projects BUT if i don't add the cocosSharp package to PCL target, the cocos Classes cant be found by the code And if I try to add

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

十年热恋 提交于 2019-12-06 07:13:58
问题 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 (); touchListener.OnTouchesEnded = OnTouchesEnded; touchListener.OnTouchesMoved = HandleTouchesMoved; AddEventListener (touchListener, this); void HandleTouchesMoved (List touches, CCEvent touchEvent) { foreach(var tap in touches) { var locationOnScreen = tap

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

自闭症网瘾萝莉.ら 提交于 2019-12-04 12:45:47
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 (); touchListener.OnTouchesEnded = OnTouchesEnded; touchListener.OnTouchesMoved = HandleTouchesMoved; AddEventListener (touchListener, this); void HandleTouchesMoved (List touches, CCEvent touchEvent) { foreach(var tap in touches) { var locationOnScreen = tap.Location; alarmicSprite.PositionY = locationOnScreen.Y; alarmicSprite.PositionX = locationOnScreen.X;