¡@

Home 

2014/10/15 ¤U¤È 10:05:11

iphone Programming Glossary: cocos2d

Cocos2D 2.0 screenshots on iOS 6

http://stackoverflow.com/questions/12413460/cocos2d-2-0-screenshots-on-ios-6

method I am using is not working anymore. I tested all I know to make it work googled around and found this http www.cocos2d iphone.org forum topic 37809 replies 22#post 180983 Users seem to agree that this is working on iOS 5 but I have tested.. on github and even his project is producing black screenshots on iOS 6. Any clues Thanks. thanks iphone ios ipad cocos2d iphone share improve this question I am not sure what the GitHub version does but this code will take a screenshot and..

Cocos2d Resources

http://stackoverflow.com/questions/2293457/cocos2d-resources

is the canonical place for all things Cocos2d Any sites you recommend Best practices Blogs Much appreciated iphone cocos2d iphone share improve this question I have used those sites and have also found Ray Wenderlich's tutorials very useful... found Ray Wenderlich's tutorials very useful. http www.raywenderlich.com 352 how to make a simple iphone game with cocos2d tutorial Also there are several references available here too http www.cocos2d iphone.org wiki doku.php resources iphone_recommended_reading.. how to make a simple iphone game with cocos2d tutorial Also there are several references available here too http www.cocos2d iphone.org wiki doku.php resources iphone_recommended_reading Happy coding B ADDITION I found these two questions have many..

How many times do I release an allocated or retained object?

http://stackoverflow.com/questions/3730804/how-many-times-do-i-release-an-allocated-or-retained-object

I release it as many times as its retainCount while bg retainCount 0 bg release Thanks for your help iphone memory cocos2d retain retaincount share improve this question Do not use retainCount. The absolute retain count of an object is meaningless...

Need 2D iPhone graphics designed

http://stackoverflow.com/questions/4104124/need-2d-iphone-graphics-designed

time and the budget is very small but i hope there is someplace to go for indie developers too iphone design graphics cocos2d iphone share improve this question Check out http gamedev.stackexchange.com . and the answers to some of these questions..

OGG Vorbis in iPhone sdk

http://stackoverflow.com/questions/4745618/ogg-vorbis-in-iphone-sdk

help me iphone audio ogg share improve this question Better late than never I have found the answer here Use cocos2d for playing ogg file in my project . PASoundMgr is a different sound engine that had support for ogg file playback. However.. is much more efficient from a cpu usage point of view. They mentioned PASoundMgr. It worked for me. I just copied from cocos2d framework all files libraries that SoundEngineTest was based on. And got rid of unnecessary code. Here is my demoProject.. library. My demo works on 4.3 simulator and on Device. Here are steps that I made to create demo First you will need cocos2d iphone framework. I've already had it but you can find it here cocos 2d_download . As you can notice SoundEngineTest depends..

how can I use animation in cocos2d?

http://stackoverflow.com/questions/486609/how-can-i-use-animation-in-cocos2d

can I use animation in cocos2d I am trying to develop a Roulette game for iPhone. How can I animation spin the Roulette board iphone objective c cocoa.. a Roulette game for iPhone. How can I animation spin the Roulette board iphone objective c cocoa touch animation cocos2d iphone share improve this question I have no idea how to do this in cocos2d or even what that is but you can do this.. objective c cocoa touch animation cocos2d iphone share improve this question I have no idea how to do this in cocos2d or even what that is but you can do this using Core Animation either with CALayers or UIViews. Probably the simplest way..

What open source Cocoa/Cocoa Touch Frameworks are out there?

http://stackoverflow.com/questions/501981/what-open-source-cocoa-cocoa-touch-frameworks-are-out-there

framework for doing mostly 2D animation in OpenGL on the phone and includes a physics library http code.google.com p cocos2d iphone This is under a BSD license so you can use it for non free applications. For more 3D oriented stuff there is SIO2..

Point in Tilt Direction - iPhone

http://stackoverflow.com/questions/5128861/point-in-tilt-direction-iphone

in Tilt Direction iPhone In my cocos2d game I have my player sprite and I want to have him move in the direction I tilt my iPhone. I can deal with that the hardest.. well in the 'Tilt to Live' game on the app store. I want controls just like that. My sprite for those unfamiliar with cocos2d does have a rotation value if that helps. Thanks. iphone objective c cocos2d iphone rotation accelerometer share improve.. My sprite for those unfamiliar with cocos2d does have a rotation value if that helps. Thanks. iphone objective c cocos2d iphone rotation accelerometer share improve this question If you don't like the above here's a simpler way to get a..

iPhone - having a Ripple effect on a UIImageView

http://stackoverflow.com/questions/5973530/iphone-having-a-ripple-effect-on-a-uiimageview

for windows and porting it to iOS. I have attempted to use http www.codeproject.com KB openGL dsaqua.aspx as well as cocos2d however I find the latter completely and utterly confusing. Would anyone be willing to give some suggestions or can point..

Moving a Stick figure, anchorpoints, animation, or something else…?

http://stackoverflow.com/questions/7808981/moving-a-stick-figure-anchorpoints-animation-or-something-else

a Stick figure anchorpoints animation or something else&hellip Ok so I am making a game with stick figures with cocos2d in objective c... Different things need to be animated so please give me a suggestion of what would be the best way to go.. tons of animations or is there another simpler way to combine many sprites into a single movement iphone objective c cocos2d share improve this question My general advice never ever modify the default anchorPoint 0.5f 0.5f unless you have a..

Simple gun in cocos2d+box2d game

http://stackoverflow.com/questions/9164146/simple-gun-in-cocos2dbox2d-game

gun in cocos2d box2d game I'm newbie in box2d. Can you help me I want to make gun touch move stopped ball flew . I make detection and.. I can't make popping of ball. How can I count velocity which I need to set to the ball Thank you very much iphone ios cocos2d box2d box2d iphone share improve this question The easiest way is to look at the direction the gun is pointing when..

Cocos2d Resources

http://stackoverflow.com/questions/2293457/cocos2d-resources

Resources Any recommendations on good sites resources on programming with the Cocos2d iPhone game engine What worked for.. Resources Any recommendations on good sites resources on programming with the Cocos2d iPhone game engine What worked for you What is the canonical place for all things Cocos2d Any sites you recommend Best practices.. on programming with the Cocos2d iPhone game engine What worked for you What is the canonical place for all things Cocos2d Any sites you recommend Best practices Blogs Much appreciated iphone cocos2d iphone share improve this question I have..

Where to start openGL ES to create and rotate a cube in an iPhone? [closed]

http://stackoverflow.com/questions/2857463/where-to-start-opengl-es-to-create-and-rotate-a-cube-in-an-iphone

start openGL ES to create and rotate a cube in an iPhone closed I've done some apps on iPhone using Objevtive C and Cocos2d and I'd like to start learning 3D. My first goal is to make a very simple app that Displays a 3D cube in the center of the..

Game engine for iPhone/Android [closed]

http://stackoverflow.com/questions/3996793/game-engine-for-iphone-android

what are all thinks i need to study to do this. iphone android game engine share improve this question Check out Cocos2d x. It's completely free and open source. There is also http www.appgamekit.com It's something I am interested in. It supports.. with it. And highly recommend it. If you are only targeting Android and iOS for a 2D game I would highly recommend Cocos2d x. It's one of the most game complete and free framework for C I've come across. The advantage of using Cocos2d x opposed.. Cocos2d x. It's one of the most game complete and free framework for C I've come across. The advantage of using Cocos2d x opposed to Marmalade is that most of the components of a game engine is written. You can prototype a game in less than..

Using custom fonts in Cocos2d

http://stackoverflow.com/questions/4228644/using-custom-fonts-in-cocos2d

custom fonts in Cocos2d How do I use custom TTF fonts in my Cocos2d iPhone apps iphone fonts cocos2d iphone share improve this question I.. custom fonts in Cocos2d How do I use custom TTF fonts in my Cocos2d iPhone apps iphone fonts cocos2d iphone share improve this question I searched for this for a while and decided to..

How can I create a count down timer for cocos2d?

http://stackoverflow.com/questions/446717/how-can-i-create-a-count-down-timer-for-cocos2d

rep to upvote Tom but he's absolutely right. Within the context of this question NSTimer is the WRONG solution. The Cocos2d framework provides a scheduler that integrates with other game features like Pause Resume and most likely uses NSTimer under..

Detect when UIGestureRecognizer is up, down, left and right Cocos2d

http://stackoverflow.com/questions/7420078/detect-when-uigesturerecognizer-is-up-down-left-and-right-cocos2d

when UIGestureRecognizer is up down left and right Cocos2d I have a CCSprite that I want to move around using gestures. Problem is I'm completely new to Cocos2D. I want my sprite..

How to do animations using images efficiently in iOS

http://stackoverflow.com/questions/8112698/how-to-do-animations-using-images-efficiently-in-ios

a sample code to do so. iphone ios crash core animation share improve this question My suggestion is using Cocos2d which is a framework based on Open GL specifically designed for games. In your case the advantages you would get are using.. at this tutorial . You could do the same by using Open GL or Core Animation directly but I think it is better letting Cocos2d deal with the low level stuff. For a Core Animation based tutorial for doing the same have a look at this post . As you..

Overlay Color Blend in OpenGL ES / iOS / Cocos2d

http://stackoverflow.com/questions/8771413/overlay-color-blend-in-opengl-es-ios-cocos2d

Color Blend in OpenGL ES iOS Cocos2d I'm trying to apply BlendModes to a GreyScale image in order to have reusable static resources I've been searching in the.. a certain color and apply a blending mode to the image only where the alpha is 1.0 Here is the Code this is part of a Cocos2d project although I think it can be applied to generic OGL ES void draw super draw glBlendColor 0 255 0 255 glBlendFunc GL_ZERO..

Convert .png to PVRTC *on* the iPhone

http://stackoverflow.com/questions/1020944/convert-png-to-pvrtc-on-the-iphone

save memory on disk. If this is for OpenGL based programs consider using an enhanced version of Texture2D such as from Cocos2D which supports alternate pixel formats such as 565 and 4444. This can greatly reduce the overhead in the graphics card with..

How to approach -hd files

http://stackoverflow.com/questions/10232539/how-to-approach-hd-files

looked more into stackoverflow and rephrased the problem as °how can I use only hd files and found this How do I stop Cocos2D from requiring standard definition resources SD images I will now try the proposed solution and if it works I will leave..

What are the “gotchas” when developing an iPhone Game?

http://stackoverflow.com/questions/1176266/what-are-the-gotchas-when-developing-an-iphone-game

the runtime type management of Objective C is too slow for complex games. People certainly make OK games using it with Cocos2D and other engines but again it depends on the game. There are professional developers who will only work with C or even..

Cocos2D 2.0 screenshots on iOS 6

http://stackoverflow.com/questions/12413460/cocos2d-2-0-screenshots-on-ios-6

2.0 screenshots on iOS 6 I have an application that takes a screenshot of a scene and saves it to a file. I have this working.. is working on iOS 5 but I have tested this on iOS 6 and it is producing black screenshots. I am not a specialist in Cocos2D so I cannot say exactly what is wrong with this guy's code. the author has a sample project on github and even his project..

Cocos2D with iOS6 faulty rotation

http://stackoverflow.com/questions/12681813/cocos2d-with-ios6-faulty-rotation

with iOS6 faulty rotation I am building an app which uses cocos2D. I developed my app using iOS 5 and now when I test with..

Open-source frameworks/projects for iPhone platform

http://stackoverflow.com/questions/1953550/open-source-frameworks-projects-for-iphone-platform

for the iPhone platform. I've found quite a few good frameworks and resources. Such as ASIHTTPRequest DrawKit and Cocos2D just to name a few. I'm just curious about the minor or unknown frameworks that have yet surfaced or that I'm unaware of...

How to get objects to react to touches in Cocos2D?

http://stackoverflow.com/questions/2437010/how-to-get-objects-to-react-to-touches-in-cocos2d

to get objects to react to touches in Cocos2D Alright so I'm starting to learn more about Coco2D but I'm kinda frusterated. A lot of the tutorials I have found are for..

How much more complex is it to draw simple curves, lines and circles in OpenGL ES rather than in Quartz 2D?

http://stackoverflow.com/questions/2720804/how-much-more-complex-is-it-to-draw-simple-curves-lines-and-circles-in-opengl-e

for this will take a tremendous amount of time and effort unless you are willing to use a third party framework like Cocos2D . Even then I bet that you'll find drawing complex 2 D elements to be as hard or harder than with Quartz. Instead my recommendation..

OpenGL ES - How to Draw a filled Polygon?

http://stackoverflow.com/questions/3872464/opengl-es-how-to-draw-a-filled-polygon

me I don't want to use CoreGraphics it's too slow for what I'm doing ^^ And if possible avoiding too big library like Cocos2D. Edit Working On the Problem here are some useful links will edit Links Polygon Triangulation http www.vterrain.org Implementation.. way PLEASE tell me with a comment ^^ Thanks iphone opengl es polygon tessellation share improve this question Cocos2D is cool library wrapping opengl and has many usefull features mainly for games but not limited to . For polygon tesselation..

Making games in iPhone

http://stackoverflow.com/questions/4677050/making-games-in-iphone

I'd say if you're reasonably competent with iOS Objective C then it might be worth taking a peek at the likes of Cocos2D. There's also the iOS port of Flixel which you can grab with the source to Canabalt which is sitting on Github but compared.. also the iOS port of Flixel which you can grab with the source to Canabalt which is sitting on Github but compared to Cocos2D it's a little less polished due to it only being recently out there. Unity's great if you're familiar with C# or JavaScript..

What open source Cocoa/Cocoa Touch Frameworks are out there?

http://stackoverflow.com/questions/501981/what-open-source-cocoa-cocoa-touch-frameworks-are-out-there

cocoa cocoa touch open source frameworks share improve this question I've not used it in a real app yet but the Cocos2D framework is a nice framework for doing mostly 2D animation in OpenGL on the phone and includes a physics library http code.google.com..

Integrating Cocos2D with UIKit

http://stackoverflow.com/questions/5566055/integrating-cocos2d-with-uikit

Cocos2D with UIKit I've looked around and i've seen very little material on how to integrate cocos2d with UIKit note not the other..

Add Cocos2D to project in xCode 4

http://stackoverflow.com/questions/5701263/add-cocos2d-to-project-in-xcode-4

Cocos2D to project in xCode 4 I'm working in a project that need to have same parts native cocoa touch and some parts in cocos2d...

CCMoveTo of Cocos2D

http://stackoverflow.com/questions/5734072/ccmoveto-of-cocos2d

of Cocos2D i have two CCSprite on the scene CCSprite spriteA CCSprite spriteB spriteB's position is fixed and spriteA's position is..

How can i apply lens effect to my UIImage?

http://stackoverflow.com/questions/6126515/how-can-i-apply-lens-effect-to-my-uiimage

learning topics lens.html iphone image processing uiimage share improve this question You can use the Cocos2D framework to do that. If you choose to use it here is how you can easily apply a lens effect void aFunction const CGSize..

Detect when UIGestureRecognizer is up, down, left and right Cocos2d

http://stackoverflow.com/questions/7420078/detect-when-uigesturerecognizer-is-up-down-left-and-right-cocos2d

left and right Cocos2d I have a CCSprite that I want to move around using gestures. Problem is I'm completely new to Cocos2D. I want my sprite to perform one action when the gesture is up another one when gesture is down another action when gesture..

Rotate a Sprite on a bezier path with touch - Cocos2D/Box2D

http://stackoverflow.com/questions/7494795/rotate-a-sprite-on-a-bezier-path-with-touch-cocos2d-box2d

a Sprite on a bezier path with touch Cocos2D Box2D I have an arrow that I rotate with touch. I was wondering if it was possible to rotate the arrow on a curved line..

Cocos2D with iOS6 faulty rotation

http://stackoverflow.com/questions/12681813/cocos2d-with-ios6-faulty-rotation

with iOS6 faulty rotation I am building an app which uses cocos2D. I developed my app using iOS 5 and now when I test with the iOS 6 simulator the entire app is rotated. My app is supposed..

wrong position of tile map when i convert to retina display

http://stackoverflow.com/questions/12837104/wrong-position-of-tile-map-when-i-convert-to-retina-display

something wrong iphone ios cocos2d iphone cocos2d share improve this question Me also observed same problem with cocos2D tile map and finally resolved by dividing CC_CONTENT_SCALE_FACTOR. In retina mode it gives 2.0. CCTMXObjectGroup objects..

How to get objects to react to touches in Cocos2D?

http://stackoverflow.com/questions/2437010/how-to-get-objects-to-react-to-touches-in-cocos2d

didn't work at all... so I'm doing something wrong. Help would be appreciated Going through the Touches project in cocos2D and seeing if I see how they did it. It looks like they made a subclass and overwrote the methods BOOL ccTouchBegan UITouch..

Problem with cocos2D for iPhone and touch detection

http://stackoverflow.com/questions/377785/problem-with-cocos2d-for-iphone-and-touch-detection

with cocos2D for iPhone and touch detection I just don't get it. I use cocos2d for development of a small game on the iPhone Pod. The..

Applying Zoom Effect In cocos2D gaming environment?

http://stackoverflow.com/questions/5919180/applying-zoom-effect-in-cocos2d-gaming-environment

Zoom Effect In cocos2D gaming environment I'm working on a game with cocos2D game engine and make load all the sprites while it load the level.. Zoom Effect In cocos2D gaming environment I'm working on a game with cocos2D game engine and make load all the sprites while it load the level now as because some of sprites obstacles are taller than..

Advantages of using Core Graphics

http://stackoverflow.com/questions/7669018/advantages-of-using-core-graphics

and maintain. That said there are some nice frameworks that have developed around abstracting away OpenGL ES such as cocos2D and Unity 3D which might make working with OpenGL ES easier in many situations. For each case you'll need to evaluate what..

cocos2d 2.0-rc2: end the director and restart

http://stackoverflow.com/questions/11037134/cocos2d-2-0-rc2-end-the-director-and-restart

UIApplication sharedApplication delegate I DO NOT PUSH BECAUSE I ALREADY PUSHED TO THIS CONTROLLER SO I ADD THE COCOS2D VIEW AS A SUBVIEW self.view addSubview director_ view Hope this code will help you because I spent a whole day trying to.. out. It may not be the correct way or even the prettiest way but it's working EDIT Also please not that if you POP the COCOS2D scene you don't have to CCDirector sharedDirector end as the animation will be stopped when the view is dealloc removed...

xcode basic game template

http://stackoverflow.com/questions/4342565/xcode-basic-game-template

Intersection Between 2 lines in COCOS2D

http://stackoverflow.com/questions/8076036/intersection-between-2-lines-in-cocos2d

Between 2 lines in COCOS2D I am developing a game using COCOS2D. In my game there are 4 points each point is connected with each other by one line... Between 2 lines in COCOS2D I am developing a game using COCOS2D. In my game there are 4 points each point is connected with each other by one line. When user moves the point the lines.. colored red And how to detect the intersection of two lines Can anyone help me to solve this intersection problem in COCOS2D iphone cocos2d iphone share improve this question There's a question that could be considered a duplicate of your question..