Questions tagged [cocos2d-x-for-xna]

Cocos2D for XNA is a C# Port of the Cocos2D Framework using MonoGame behind the Scenes.

Cocos2D for XNA is a C# Port of the Cocos2D Framework. XNA got discontinued by Microsoft, and doesn't get supported in newer VS Versions (2010 Last). Cocos2D for XNA now runs on the MonoGame platform, that is an OpenSource successor of XNA, that runs on many platforms, so don't get mislead by the name of the Framework.

http://www.cocos2dxna.com/

8 questions
12
votes
1 answer

cocos2d-xna: sprite is not drawn if using instance of a class inherited from sprite

I have a game project built upon Cocos2D XNA and MonoGame. I wanted to add a little bit of custom logic into CCSprite class, so I created a class which inherits from CCSprite. I added a dummy auto property and tried to use this class, but for some…
DarkDeny
  • 1,750
  • 2
  • 21
  • 31
1
vote
1 answer

How to play sound from cocos2d-xna personal folder

How can I play a sound from the System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal folder? I have tried: string path = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal),…
Jaakers
  • 11
  • 2
1
vote
3 answers

Can I disable multitouch for a Windows Phone Application?

I'm currently working on a game for Windows Phone 7, using the XNA version of Cocos2d. Due to the rules of the game, I need it so that the user can only touch one thing at a time but multitouch seems to be always in effect. Additionally I don't know…
0
votes
1 answer

Cocos2d retain an object in C#

I have a method which sets up CCAnimation's for me public CCAnimation SetupAnimations(string prefixOFSprite, int numberOfFrames, int startFrame) { //me getting desperate and doing any old initilisation CCAnimation finalAnimation…
user819640
  • 250
  • 5
  • 14
0
votes
0 answers

Cocos2d XNA CCApplication should be reference on Microsoft.XNA.Framework.Game

I try develop HelloWorld Game on Windows Phone 8 (VS 2013) with Cocos2D XNA + Monogame. I install Monogame,create a project, add reference through Nuget on Cocos2d XNA. Then i copy example from documentation https://cocos2dxna.codeplex.com using…
0
votes
1 answer

Cocos2d-XNA: How to integrate MonoGame

I have a confusion regarding Cocos2d-XNA. Is it already have MonoGame in it? If not, how do I combine those two? If yes, what is the role of Cocos2d-XNA and what is the role of MonoGame? I tried to look for both website but not able to find these…
Fadli
  • 976
  • 9
  • 24
0
votes
1 answer

CCMenuItem that added as a child to another CCMenuItem doesn't respond to touch

I'm implementing a decorator pattern for adding the selected/unselected events to CCMenuItem inheritors: public class MenuItemDecorator : CCMenuItem { public event EventHandler OnSelected; public event EventHandler OnUnselected; …
Veikedo
  • 1,453
  • 1
  • 18
  • 25
-1
votes
1 answer

Cocos2d structure and navigation

Cocos 2d xna c#. I'm using windows tamplate. I have next classes Programm, Game1, AppDelegate, IntroLayer, MainLayer. Programm, Game1, AppDelegate - I understand that it's begin and settings, like resolution, touch and ect. From AppDelegate we run…
Denis
  • 2,622
  • 3
  • 22
  • 24