joybox 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/Gemfile.lock +1 -1
- data/LICENSE +1 -1
- data/LICENSE_Box2D +20 -0
- data/LICENSE_Cocos2D +24 -0
- data/README.md +34 -66
- data/Rakefile +2 -3
- data/bin/joybox +49 -0
- data/command/joybox/USAGE +24 -0
- data/command/joybox/templates/layer.erb +11 -0
- data/command/joybox/templates/layer_spec.erb +3 -0
- data/command/joybox/templates/scene.erb +11 -0
- data/command/joybox/templates/scene_spec.erb +3 -0
- data/command/joybox/templates/sprite.erb +11 -0
- data/command/joybox/templates/sprite_spec.erb +3 -0
- data/command/joybox_generate_command.rb +114 -0
- data/joybox.gemspec +44 -0
- data/lib/joybox/joybox-ios.rb +47 -0
- data/lib/joybox/joybox-osx.rb +47 -0
- data/lib/joybox/version.rb +1 -1
- data/lib/joybox.rb +18 -36
- data/{lib/joybox/cocos2d → motion/joybox}/actions/actions.rb +0 -0
- data/motion/joybox/actions/animate.rb +22 -0
- data/motion/joybox/actions/bezier.rb +33 -0
- data/motion/joybox/actions/blink.rb +24 -0
- data/motion/joybox/actions/ease.rb +149 -0
- data/motion/joybox/actions/fade.rb +38 -0
- data/motion/joybox/actions/jump.rb +39 -0
- data/{lib/joybox/cocos2d → motion/joybox}/actions/move.rb +4 -2
- data/motion/joybox/actions/place.rb +22 -0
- data/{lib/joybox/cocos2d → motion/joybox}/actions/repeat.rb +10 -1
- data/{lib/joybox/cocos2d → motion/joybox}/actions/rotate.rb +4 -2
- data/{lib/joybox/cocos2d → motion/joybox}/actions/scale.rb +4 -2
- data/{lib/joybox/cocos2d → motion/joybox}/actions/sequence.rb +3 -3
- data/{lib/joybox/cocos2d → motion/joybox}/actions/skew.rb +0 -0
- data/motion/joybox/actions/spawn.rb +22 -0
- data/motion/joybox/actions/tint.rb +37 -0
- data/motion/joybox/animations/animation.rb +60 -0
- data/{lib/joybox/cocos2d → motion/joybox}/common/color.rb +12 -1
- data/{lib/joybox/cocos2d → motion/joybox}/common/gc_size.rb +4 -4
- data/{lib/joybox/cocos2d → motion/joybox}/common/ns_set.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox}/common/numeric.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox}/common/screen.rb +4 -4
- data/motion/joybox/core/layer.rb +51 -0
- data/{lib/joybox/cocos2d → motion/joybox}/core/node.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox}/core/scene.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox}/core/sprite.rb +22 -3
- data/{lib/joybox/cocos2d → motion/joybox}/core/sprite_batch.rb +0 -0
- data/motion/joybox/core/sprite_frame_cache.rb +147 -0
- data/{lib/joybox/cocos2d/cocos2d.rb → motion/joybox/joybox.rb} +3 -1
- data/{lib/joybox/cocos2d → motion/joybox}/macros.rb +0 -0
- data/{lib/joybox/box2d → motion/joybox/physics}/body.rb +44 -17
- data/{lib/joybox/cocos2d/core → motion/joybox/physics}/physics_sprite.rb +1 -1
- data/motion/joybox/physics/world.rb +79 -0
- data/{lib/joybox/cocos2d → motion/joybox}/ui/label.rb +3 -2
- data/{lib/joybox/cocos2d → motion/joybox}/ui/menu.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox}/ui/menu_image.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox}/ui/menu_label.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox}/ui/ui.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox-ios}/common/cg_point.rb +9 -2
- data/{lib/joybox/cocos2d → motion/joybox-ios}/common/ui_touch.rb +1 -1
- data/{lib/joybox/cocos2d → motion/joybox-ios}/configuration/configuration.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox-ios}/configuration/file_utils.rb +0 -3
- data/{lib/joybox/cocos2d → motion/joybox-ios}/configuration/gl_view.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox-ios}/configuration/texture_2d.rb +0 -0
- data/{lib/joybox/cocos2d → motion/joybox-ios}/core/layer.rb +1 -45
- data/{lib/joybox/cocos2d → motion/joybox-ios}/director.rb +6 -6
- data/motion/joybox-osx/common/ats_point.rb +48 -0
- data/motion/joybox-osx/common/ns_event.rb +8 -0
- data/motion/joybox-osx/configuration/configuration.rb +46 -0
- data/motion/joybox-osx/configuration/gl_view.rb +57 -0
- data/motion/joybox-osx/core/layer.rb +135 -0
- data/motion/joybox-osx/director.rb +42 -0
- data/template/joybox-ios/files/Rakefile.erb +9 -0
- data/{app → template/joybox-ios/files/app}/app_delegate.rb +1 -5
- data/{resources → template/joybox-ios/files/resources}/fps_images-hd.png +0 -0
- data/{resources → template/joybox-ios/files/resources}/fps_images-ipadhd.png +0 -0
- data/{resources → template/joybox-ios/files/resources}/fps_images.png +0 -0
- data/template/joybox-ios/files/spec/main_spec.rb.erb +9 -0
- data/template/joybox-osx/files/Rakefile.erb +9 -0
- data/template/joybox-osx/files/app/app_delegate.rb +23 -0
- data/template/joybox-osx/files/app/layers/default_layer.rb +5 -0
- data/template/joybox-osx/files/app/menu.rb +51 -0
- data/template/joybox-osx/files/resources/Credits.rtf +29 -0
- data/template/joybox-osx/files/resources/fps_images-hd.png +0 -0
- data/template/joybox-osx/files/resources/fps_images-ipadhd.png +0 -0
- data/template/joybox-osx/files/resources/fps_images.png +0 -0
- data/template/joybox-osx/files/spec/main_spec.rb.erb +9 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Box2D +0 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Box2D.framework.bridgesupport +47 -37
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Box2D +0 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Collision/B2DContactListener.h +0 -0
- data/vendor/vendor-ios/Box2D.framework/Versions/A/Headers/Collision/Shapes/B2DCircleShape.h +16 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Collision/Shapes/B2DEdgeShape.h +0 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Collision/Shapes/B2DPolygonShape.h +0 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Collision/Shapes/B2DShape.h +0 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Dynamics/B2DBody.h +6 -6
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Headers/Dynamics/B2DWorld.h +0 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Resources/Box2DConfig.cmake +0 -0
- data/vendor/{Box2D.framework → vendor-ios/Box2D.framework}/Versions/A/Resources/CMakeLists.txt +0 -0
- data/vendor/vendor-ios/Box2D.framework/Versions/A/Resources/LICENSE +22 -0
- data/vendor/vendor-ios/cocos_2d/cocos_2d.bridgesupport +9154 -0
- data/vendor/vendor-ios/cocos_2d/cocos_2d_exceptions.bridgesupport +39 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCAction.h +23 -23
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionCamera.h +21 -19
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionCatmullRom.h +18 -6
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionEase.h +117 -31
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionGrid.h +19 -17
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionGrid3D.h +45 -42
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionInstant.h +21 -13
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionInterval.h +123 -81
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionManager.h +2 -2
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionPageTurn3D.h +2 -1
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionProgressTimer.h +4 -4
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionTiledGrid.h +46 -38
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCActionTween.h +3 -3
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCAnimation.h +8 -8
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCAnimationCache.h +2 -2
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCAtlasNode.h +19 -17
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCCamera.h +12 -12
- data/vendor/vendor-ios/cocos_2d/include/CCClippingNode.h +77 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCConfiguration.h +31 -13
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCDirector.h +51 -42
- data/vendor/vendor-ios/cocos_2d/include/CCDrawNode.h +65 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCDrawingPrimitives.h +42 -8
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCGLProgram.h +56 -21
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCGrabber.h +2 -2
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCGrid.h +29 -29
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCLabelAtlas.h +5 -2
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCLabelBMFont.h +56 -32
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCLabelTTF.h +20 -20
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCLayer.h +107 -79
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCMenu.h +10 -14
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCMenuItem.h +37 -32
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCMotionStreak.h +18 -19
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCNode+Debug.h +0 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCNode.h +87 -37
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCParallaxNode.h +2 -2
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCParticleBatchNode.h +2 -2
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCParticleExamples.h +22 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCParticleSystem.h +51 -40
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCParticleSystemQuad.h +4 -4
- data/vendor/vendor-ios/cocos_2d/include/CCPhysicsDebugNode.h +58 -0
- data/vendor/vendor-ios/cocos_2d/include/CCPhysicsSprite.h +82 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCProgressTimer.h +9 -11
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCProtocols.h +54 -26
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCRenderTexture.h +29 -9
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCScene.h +4 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCScheduler.h +94 -40
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCShaderCache.h +1 -1
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCSprite.h +21 -28
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCSpriteBatchNode.h +16 -9
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCSpriteFrame.h +10 -10
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCSpriteFrameCache.h +6 -6
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTMXLayer.h +16 -16
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTMXObjectGroup.h +4 -4
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTMXTiledMap.h +9 -9
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTMXXMLParser.h +44 -33
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTexture2D.h +17 -25
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTextureAtlas.h +10 -10
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTextureCache.h +4 -4
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTexturePVR.h +25 -8
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTileMapAtlas.h +6 -6
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTransition.h +57 -12
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTransitionPageTurn.h +2 -2
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/CCTransitionProgress.h +27 -5
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms}/CCGL.h +4 -2
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms}/CCNS.h +0 -0
- data/vendor/vendor-ios/cocos_2d/include/Platforms/Mac/CCDirectorMac.h +110 -0
- data/vendor/vendor-ios/cocos_2d/include/Platforms/Mac/CCEventDispatcher.h +343 -0
- data/vendor/vendor-ios/cocos_2d/include/Platforms/Mac/CCGLView.h +103 -0
- data/vendor/vendor-ios/cocos_2d/include/Platforms/Mac/CCWindow.h +41 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCDirectorIOS.h +12 -5
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCES2Renderer.h +12 -12
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCESRenderer.h +0 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCGLView.h +28 -13
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCTouchDelegateProtocol.h +4 -4
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCTouchDispatcher.h +2 -2
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Platforms/iOS}/CCTouchHandler.h +7 -7
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/CCArray.h +1 -1
- data/vendor/vendor-ios/cocos_2d/include/Support/CCFileUtils.h +394 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/CCProfiling.h +0 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/CCVertex.h +1 -1
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/CGPointExtension.h +4 -2
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/NSThread+performBlock.h +0 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/OpenGL_Internal.h +0 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/TGAlib.h +0 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/TransformUtils.h +0 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/ZipUtils.h +4 -4
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/base64.h +0 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/ccCArray.h +15 -15
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/ccUtils.h +0 -0
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/uthash.h +129 -184
- data/vendor/{Cocos2D/include → vendor-ios/cocos_2d/include/Support}/utlist.h +298 -55
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/ccConfig.h +56 -9
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/ccDeprecated.h +131 -0
- data/vendor/vendor-ios/cocos_2d/include/ccFPSImages.h +39 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/ccGLStateCache.h +44 -26
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/ccMacros.h +9 -9
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionColorLengthTexture_frag.h +41 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionColorLengthTexture_vert.h +47 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionColor_frag.h +37 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionColor_vert.h +40 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTextureA8Color_frag.h +41 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTextureA8Color_vert.h +45 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTextureColorAlphaTest_frag.h +47 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTextureColor_frag.h +39 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTextureColor_vert.h +45 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTexture_frag.h +38 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTexture_uColor_frag.h +41 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTexture_uColor_vert.h +41 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_PositionTexture_vert.h +41 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_Position_uColor_frag.h +37 -0
- data/vendor/vendor-ios/cocos_2d/include/ccShader_Position_uColor_vert.h +43 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/ccShaders.h +11 -0
- data/vendor/vendor-ios/cocos_2d/include/ccTypes.h +392 -0
- data/vendor/vendor-ios/cocos_2d/include/cocos2d-ios-exceptions.bridgesupport +39 -0
- data/vendor/{Cocos2D → vendor-ios/cocos_2d}/include/cocos2d.h +28 -3
- data/vendor/vendor-ios/cocos_2d/include/gen_cocos2d_bridgesupport.sh +17 -0
- data/vendor/vendor-ios/cocos_2d/include/gen_cocos2d_complement.sh +17 -0
- data/vendor/vendor-ios/cocos_2d/libcocos2d.a +0 -0
- data/vendor/vendor-osx/box_2d/box_2d.bridgesupport +176 -0
- data/vendor/vendor-osx/box_2d/include/B2DBody.h +46 -0
- data/vendor/vendor-osx/box_2d/include/B2DCircleShape.h +16 -0
- data/vendor/vendor-osx/box_2d/include/B2DContactListener.h +30 -0
- data/vendor/vendor-osx/box_2d/include/B2DEdgeShape.h +17 -0
- data/vendor/vendor-osx/box_2d/include/B2DPolygonShape.h +16 -0
- data/vendor/vendor-osx/box_2d/include/B2DShape.h +18 -0
- data/vendor/vendor-osx/box_2d/include/B2DWorld.h +44 -0
- data/vendor/vendor-osx/box_2d/libBox2D.a +0 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d.bridgesupport +8292 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCAction.h +195 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionCamera.h +75 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionCatmullRom.h +151 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionEase.h +245 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionGrid.h +167 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionGrid3D.h +208 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionInstant.h +235 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionInterval.h +473 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionManager.h +113 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionPageTurn3D.h +43 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionProgressTimer.h +59 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionTiledGrid.h +219 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCActionTween.h +62 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCAnimation.h +150 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCAnimationCache.h +74 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCAtlasNode.h +98 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCCamera.h +98 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCClippingNode.h +77 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCConfiguration.h +144 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCDirector.h +353 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCDrawNode.h +65 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCDrawingPrimitives.h +173 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCGLProgram.h +185 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCGrabber.h +44 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCGrid.h +130 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCLabelAtlas.h +71 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCLabelBMFont.h +240 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCLabelTTF.h +132 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCLayer.h +308 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCMenu.h +96 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCMenuItem.h +428 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCMotionStreak.h +86 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCNode+Debug.h +39 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCNode.h +619 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCParallaxNode.h +50 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCParticleBatchNode.h +99 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCParticleExamples.h +117 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCParticleSystem.h +464 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCParticleSystemQuad.h +73 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCPhysicsDebugNode.h +58 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCPhysicsSprite.h +82 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCProgressTimer.h +92 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCProtocols.h +160 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCRenderTexture.h +159 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCScene.h +47 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCScheduler.h +284 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCShaderCache.h +60 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCSprite.h +281 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCSpriteBatchNode.h +145 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCSpriteFrame.h +126 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCSpriteFrameCache.h +121 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTMXLayer.h +164 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTMXObjectGroup.h +67 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTMXTiledMap.h +145 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTMXXMLParser.h +228 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTexture2D.h +349 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTextureAtlas.h +188 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTextureCache.h +146 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTexturePVR.h +146 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTileMapAtlas.h +83 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTransition.h +341 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTransitionPageTurn.h +60 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/CCTransitionProgress.h +84 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/CCGL.h +74 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/CCNS.h +54 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/Mac/CCDirectorMac.h +110 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/Mac/CCEventDispatcher.h +343 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/Mac/CCGLView.h +103 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Platforms/Mac/CCWindow.h +41 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/CCArray.h +119 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/CCFileUtils.h +394 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/CCProfiling.h +89 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/CCVertex.h +36 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/CGPointExtension.h +346 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/NSThread+performBlock.h +22 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/OpenGL_Internal.h +86 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/TGAlib.h +55 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/TransformUtils.h +36 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/ZipUtils.h +91 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/base64.h +33 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/ccCArray.h +229 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/ccUtils.h +36 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/uthash.h +917 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/Support/utlist.h +733 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccConfig.h +292 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccDeprecated.h +431 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccFPSImages.h +39 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccGLStateCache.h +156 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccMacros.h +353 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionColorLengthTexture_frag.h +41 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionColorLengthTexture_vert.h +47 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionColor_frag.h +37 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionColor_vert.h +40 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTextureA8Color_frag.h +41 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTextureA8Color_vert.h +45 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTextureColorAlphaTest_frag.h +47 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTextureColor_frag.h +39 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTextureColor_vert.h +45 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTexture_frag.h +38 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTexture_uColor_frag.h +41 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTexture_uColor_vert.h +41 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_PositionTexture_vert.h +41 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_Position_uColor_frag.h +37 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShader_Position_uColor_vert.h +43 -0
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/ccShaders.h +56 -0
- data/vendor/{Cocos2D/include → vendor-osx/cocos_2d/cocos_2d_include}/ccTypes.h +39 -35
- data/vendor/vendor-osx/cocos_2d/cocos_2d_include/cocos2d.h +203 -0
- data/vendor/vendor-osx/cocos_2d/libcocos2d.a +0 -0
- metadata +363 -195
- data/app/layers/box2d_layer.rb +0 -109
- data/app/layers/cocos2d_layer.rb +0 -14
- data/app/layers/cocos_motion_layer.rb +0 -145
- data/app/layers/menu_layer.rb +0 -59
- data/lib/joybox/box2d/world.rb +0 -79
- data/resources/box2d/blocks_sprite_sheet.png +0 -0
- data/resources/cocos_motion/dot.png +0 -0
- data/resources/cocos_motion/dot_selected.png +0 -0
- data/resources/cocos_motion/grossini.png +0 -0
- data/resources/cocos_motion/grossinis_sister.png +0 -0
- data/resources/cocos_motion/grossinis_sister_two.png +0 -0
- data/resources/cocos_motion/left_arrow.png +0 -0
- data/resources/cocos_motion/left_arrow_selected.png +0 -0
- data/resources/cocos_motion/right_arrow.png +0 -0
- data/resources/cocos_motion/right_arrow_selected.png +0 -0
- data/vendor/Cocos2D/Cocos2D.bridgesupport +0 -7808
- data/vendor/Cocos2D/include/CCFileUtils.h +0 -188
- data/vendor/Cocos2D/include/CocosDenshion/CDAudioManager.h +0 -243
- data/vendor/Cocos2D/include/CocosDenshion/CDConfig.h +0 -60
- data/vendor/Cocos2D/include/CocosDenshion/CDOpenALSupport.h +0 -77
- data/vendor/Cocos2D/include/CocosDenshion/CDXPropertyModifierAction.h +0 -45
- data/vendor/Cocos2D/include/CocosDenshion/CocosDenshion.h +0 -440
- data/vendor/Cocos2D/include/CocosDenshion/SimpleAudioEngine.h +0 -90
- data/vendor/Cocos2D/include/RubyMotionSchedule.h +0 -7
- data/vendor/Cocos2D/include/ccShader_PositionColor_frag.h +0 -12
- data/vendor/Cocos2D/include/ccShader_PositionColor_vert.h +0 -17
- data/vendor/Cocos2D/include/ccShader_PositionTextureA8Color_frag.h +0 -16
- data/vendor/Cocos2D/include/ccShader_PositionTextureA8Color_vert.h +0 -21
- data/vendor/Cocos2D/include/ccShader_PositionTextureColorAlphaTest_frag.h +0 -23
- data/vendor/Cocos2D/include/ccShader_PositionTextureColor_frag.h +0 -14
- data/vendor/Cocos2D/include/ccShader_PositionTextureColor_vert.h +0 -22
- data/vendor/Cocos2D/include/ccShader_PositionTexture_frag.h +0 -13
- data/vendor/Cocos2D/include/ccShader_PositionTexture_uColor_frag.h +0 -16
- data/vendor/Cocos2D/include/ccShader_PositionTexture_uColor_vert.h +0 -18
- data/vendor/Cocos2D/include/ccShader_PositionTexture_vert.h +0 -17
- data/vendor/Cocos2D/include/ccShader_Position_uColor_frag.h +0 -12
- data/vendor/Cocos2D/include/ccShader_Position_uColor_vert.h +0 -19
- data/vendor/Cocos2D/include/kazmath/GL/mat4stack.h +0 -51
- data/vendor/Cocos2D/include/kazmath/GL/matrix.h +0 -58
- data/vendor/Cocos2D/include/kazmath/aabb.h +0 -53
- data/vendor/Cocos2D/include/kazmath/kazmath.h +0 -39
- data/vendor/Cocos2D/include/kazmath/mat3.h +0 -75
- data/vendor/Cocos2D/include/kazmath/mat4.h +0 -93
- data/vendor/Cocos2D/include/kazmath/neon_matrix_impl.h +0 -41
- data/vendor/Cocos2D/include/kazmath/plane.h +0 -70
- data/vendor/Cocos2D/include/kazmath/quaternion.h +0 -113
- data/vendor/Cocos2D/include/kazmath/ray2.h +0 -50
- data/vendor/Cocos2D/include/kazmath/utility.h +0 -74
- data/vendor/Cocos2D/include/kazmath/vec2.h +0 -64
- data/vendor/Cocos2D/include/kazmath/vec3.h +0 -68
- data/vendor/Cocos2D/include/kazmath/vec4.h +0 -68
- data/vendor/Cocos2D/libCocosDenshion.a +0 -0
- data/vendor/Cocos2D/libcocos2d.a +0 -0
@@ -0,0 +1,146 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
File: PVRTexture.h
|
4
|
+
Abstract: The PVRTexture class is responsible for loading .pvr files.
|
5
|
+
|
6
|
+
Version: 1.0
|
7
|
+
|
8
|
+
Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc.
|
9
|
+
("Apple") in consideration of your agreement to the following terms, and your
|
10
|
+
use, installation, modification or redistribution of this Apple software
|
11
|
+
constitutes acceptance of these terms. If you do not agree with these terms,
|
12
|
+
please do not use, install, modify or redistribute this Apple software.
|
13
|
+
|
14
|
+
In consideration of your agreement to abide by the following terms, and subject
|
15
|
+
to these terms, Apple grants you a personal, non-exclusive license, under
|
16
|
+
Apple's copyrights in this original Apple software (the "Apple Software"), to
|
17
|
+
use, reproduce, modify and redistribute the Apple Software, with or without
|
18
|
+
modifications, in source and/or binary forms; provided that if you redistribute
|
19
|
+
the Apple Software in its entirety and without modifications, you must retain
|
20
|
+
this notice and the following text and disclaimers in all such redistributions
|
21
|
+
of the Apple Software.
|
22
|
+
Neither the name, trademarks, service marks or logos of Apple Inc. may be used
|
23
|
+
to endorse or promote products derived from the Apple Software without specific
|
24
|
+
prior written permission from Apple. Except as expressly stated in this notice,
|
25
|
+
no other rights or licenses, express or implied, are granted by Apple herein,
|
26
|
+
including but not limited to any patent rights that may be infringed by your
|
27
|
+
derivative works or by other works in which the Apple Software may be
|
28
|
+
incorporated.
|
29
|
+
|
30
|
+
The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO
|
31
|
+
WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
|
32
|
+
WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
33
|
+
PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
|
34
|
+
COMBINATION WITH YOUR PRODUCTS.
|
35
|
+
|
36
|
+
IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
|
37
|
+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
38
|
+
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
39
|
+
ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR
|
40
|
+
DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF
|
41
|
+
CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF
|
42
|
+
APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
43
|
+
|
44
|
+
Copyright (C) 2008 Apple Inc. All Rights Reserved.
|
45
|
+
|
46
|
+
*/
|
47
|
+
|
48
|
+
#import <Foundation/Foundation.h>
|
49
|
+
|
50
|
+
#import "Platforms/CCGL.h"
|
51
|
+
#import "CCTexture2D.h"
|
52
|
+
|
53
|
+
|
54
|
+
#pragma mark -
|
55
|
+
#pragma mark CCTexturePVR
|
56
|
+
|
57
|
+
struct CCPVRMipmap {
|
58
|
+
unsigned char *address;
|
59
|
+
unsigned int len;
|
60
|
+
};
|
61
|
+
|
62
|
+
typedef struct _ccPVRTexturePixelFormatInfo {
|
63
|
+
GLenum internalFormat;
|
64
|
+
GLenum format;
|
65
|
+
GLenum type;
|
66
|
+
uint32_t bpp;
|
67
|
+
BOOL compressed;
|
68
|
+
BOOL alpha;
|
69
|
+
CCTexture2DPixelFormat ccPixelFormat;
|
70
|
+
} ccPVRTexturePixelFormatInfo;
|
71
|
+
|
72
|
+
enum {
|
73
|
+
CC_PVRMIPMAP_MAX = 16,
|
74
|
+
};
|
75
|
+
|
76
|
+
/** CCTexturePVR
|
77
|
+
|
78
|
+
Object that loads PVR images.
|
79
|
+
|
80
|
+
Supported PVR formats:
|
81
|
+
- RGBA8888
|
82
|
+
- BGRA8888
|
83
|
+
- RGBA4444
|
84
|
+
- RGBA5551
|
85
|
+
- RGB565
|
86
|
+
- A8
|
87
|
+
- I8
|
88
|
+
- AI88
|
89
|
+
- PVRTC 4BPP
|
90
|
+
- PVRTC 2BPP
|
91
|
+
|
92
|
+
Limitations:
|
93
|
+
Pre-generated mipmaps, such as PVR textures with mipmap levels embedded in file,
|
94
|
+
are only supported if all individual sprites are of _square_ size.
|
95
|
+
To use mipmaps with non-square textures, instead call CCTexture2D#generateMipmap on the sheet texture itself
|
96
|
+
(and to save space, save the PVR sprite sheet without mip maps included).
|
97
|
+
*/
|
98
|
+
@interface CCTexturePVR : NSObject
|
99
|
+
{
|
100
|
+
struct CCPVRMipmap _mipmaps[CC_PVRMIPMAP_MAX]; // pointer to mipmap images
|
101
|
+
NSUInteger _numberOfMipmaps; // number of mipmap used
|
102
|
+
|
103
|
+
uint32_t _width, _height;
|
104
|
+
GLuint _name;
|
105
|
+
BOOL _hasAlpha;
|
106
|
+
BOOL _hasPremultipliedAlpha;
|
107
|
+
BOOL _forcePremultipliedAlpha;
|
108
|
+
|
109
|
+
// cocos2d integration
|
110
|
+
BOOL _retainName;
|
111
|
+
CCTexture2DPixelFormat _format;
|
112
|
+
|
113
|
+
const ccPVRTexturePixelFormatInfo *_pixelFormatInfo;
|
114
|
+
}
|
115
|
+
|
116
|
+
/** initializes a CCTexturePVR with a path */
|
117
|
+
- (id)initWithContentsOfFile:(NSString *)path;
|
118
|
+
/** initializes a CCTexturePVR with an URL */
|
119
|
+
- (id)initWithContentsOfURL:(NSURL *)url;
|
120
|
+
/** creates and initializes a CCTexturePVR with a path */
|
121
|
+
+ (id)pvrTextureWithContentsOfFile:(NSString *)path;
|
122
|
+
/** creates and initializes a CCTexturePVR with an URL */
|
123
|
+
+ (id)pvrTextureWithContentsOfURL:(NSURL *)url;
|
124
|
+
|
125
|
+
/** texture id name */
|
126
|
+
@property (nonatomic,readonly) GLuint name;
|
127
|
+
/** texture width */
|
128
|
+
@property (nonatomic,readonly) uint32_t width;
|
129
|
+
/** texture height */
|
130
|
+
@property (nonatomic,readonly) uint32_t height;
|
131
|
+
/** whether or not the texture has alpha */
|
132
|
+
@property (nonatomic,readonly) BOOL hasAlpha;
|
133
|
+
/** whether or not the texture has premultiplied alpha */
|
134
|
+
@property (nonatomic,readonly) BOOL hasPremultipliedAlpha;
|
135
|
+
/** whether or not the texture should use hasPremultipliedAlpha instead of global default */
|
136
|
+
@property (nonatomic,readonly) BOOL forcePremultipliedAlpha;
|
137
|
+
/** how many mipmaps the texture has. 1 means one level (level 0 */
|
138
|
+
@property (nonatomic, readonly) NSUInteger numberOfMipmaps;
|
139
|
+
|
140
|
+
// cocos2d integration
|
141
|
+
@property (nonatomic,readwrite) BOOL retainName;
|
142
|
+
@property (nonatomic,readonly) CCTexture2DPixelFormat format;
|
143
|
+
|
144
|
+
@end
|
145
|
+
|
146
|
+
|
@@ -0,0 +1,83 @@
|
|
1
|
+
/*
|
2
|
+
* cocos2d for iPhone: http://www.cocos2d-iphone.org
|
3
|
+
*
|
4
|
+
* Copyright (c) 2008-2010 Ricardo Quesada
|
5
|
+
* Copyright (c) 2011 Zynga Inc.
|
6
|
+
*
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
12
|
+
* furnished to do so, subject to the following conditions:
|
13
|
+
*
|
14
|
+
* The above copyright notice and this permission notice shall be included in
|
15
|
+
* all copies or substantial portions of the Software.
|
16
|
+
*
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
23
|
+
* THE SOFTWARE.
|
24
|
+
*
|
25
|
+
*/
|
26
|
+
|
27
|
+
#import "CCTextureAtlas.h"
|
28
|
+
#import "CCAtlasNode.h"
|
29
|
+
#import "Support/TGAlib.h"
|
30
|
+
|
31
|
+
/** CCTileMapAtlas is a subclass of CCAtlasNode.
|
32
|
+
|
33
|
+
It knows how to render a map based of tiles.
|
34
|
+
The tiles must be in a .PNG format while the map must be a .TGA file.
|
35
|
+
|
36
|
+
For more information regarding the format, please see this post:
|
37
|
+
http://www.cocos2d-iphone.org/archives/27
|
38
|
+
|
39
|
+
All features from CCAtlasNode are valid in CCTileMapAtlas
|
40
|
+
|
41
|
+
IMPORTANT:
|
42
|
+
This class is deprecated. It is maintained for compatibility reasons only.
|
43
|
+
You SHOULD not use this class.
|
44
|
+
Instead, use the newer TMX file format: CCTMXTiledMap
|
45
|
+
*/
|
46
|
+
@interface CCTileMapAtlas : CCAtlasNode
|
47
|
+
{
|
48
|
+
|
49
|
+
/// info about the map file
|
50
|
+
tImageTGA *_tgaInfo;
|
51
|
+
|
52
|
+
/// x,y to altas dictionary
|
53
|
+
NSMutableDictionary *_posToAtlasIndex;
|
54
|
+
|
55
|
+
/// numbers of tiles to render
|
56
|
+
int _itemsToRender;
|
57
|
+
}
|
58
|
+
|
59
|
+
/** TileMap info */
|
60
|
+
@property (nonatomic,readonly) tImageTGA *tgaInfo;
|
61
|
+
|
62
|
+
/** creates a CCTileMap with a tile file (atlas) with a map file and the width and height of each tile in points.
|
63
|
+
The tile file will be loaded using the TextureMgr.
|
64
|
+
*/
|
65
|
+
+(id) tileMapAtlasWithTileFile:(NSString*)tile mapFile:(NSString*)map tileWidth:(int)w tileHeight:(int)h;
|
66
|
+
|
67
|
+
/** initializes a CCTileMap with a tile file (atlas) with a map file and the width and height of each tile in points.
|
68
|
+
The file will be loaded using the TextureMgr.
|
69
|
+
*/
|
70
|
+
-(id) initWithTileFile:(NSString*)tile mapFile:(NSString*)map tileWidth:(int)w tileHeight:(int)h;
|
71
|
+
|
72
|
+
/** returns a tile from position x,y.
|
73
|
+
For the moment only channel R is used
|
74
|
+
*/
|
75
|
+
-(ccColor3B) tileAt: (CGPoint) position;
|
76
|
+
|
77
|
+
/** sets a tile at position x,y.
|
78
|
+
For the moment only channel R is used
|
79
|
+
*/
|
80
|
+
-(void) setTile:(ccColor3B)tile at:(CGPoint)position;
|
81
|
+
/** dealloc the map from memory */
|
82
|
+
-(void) releaseMap;
|
83
|
+
@end
|
@@ -0,0 +1,341 @@
|
|
1
|
+
/*
|
2
|
+
* cocos2d for iPhone: http://www.cocos2d-iphone.org
|
3
|
+
*
|
4
|
+
* Copyright (c) 2008-2010 Ricardo Quesada
|
5
|
+
* Copyright (c) 2011 Zynga Inc.
|
6
|
+
*
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
12
|
+
* furnished to do so, subject to the following conditions:
|
13
|
+
*
|
14
|
+
* The above copyright notice and this permission notice shall be included in
|
15
|
+
* all copies or substantial portions of the Software.
|
16
|
+
*
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
23
|
+
* THE SOFTWARE.
|
24
|
+
*
|
25
|
+
*/
|
26
|
+
|
27
|
+
|
28
|
+
#import "CCScene.h"
|
29
|
+
@class CCActionInterval;
|
30
|
+
@class CCNode;
|
31
|
+
|
32
|
+
/** CCTransitionEaseScene can ease the actions of the scene protocol.
|
33
|
+
@since v0.8.2
|
34
|
+
*/
|
35
|
+
@protocol CCTransitionEaseScene <NSObject>
|
36
|
+
/** returns the Ease action that will be performed on a linear action.
|
37
|
+
@since v0.8.2
|
38
|
+
*/
|
39
|
+
-(CCActionInterval*) easeActionWithAction:(CCActionInterval*)action;
|
40
|
+
@end
|
41
|
+
|
42
|
+
/** Orientation Type used by some transitions
|
43
|
+
*/
|
44
|
+
typedef enum {
|
45
|
+
/// An horizontal orientation where the Left is nearer
|
46
|
+
kCCTransitionOrientationLeftOver = 0,
|
47
|
+
/// An horizontal orientation where the Right is nearer
|
48
|
+
kCCTransitionOrientationRightOver = 1,
|
49
|
+
/// A vertical orientation where the Up is nearer
|
50
|
+
kCCTransitionOrientationUpOver = 0,
|
51
|
+
/// A vertical orientation where the Bottom is nearer
|
52
|
+
kCCTransitionOrientationDownOver = 1,
|
53
|
+
|
54
|
+
// Deprecated
|
55
|
+
// kOrientationLeftOver = kCCTransitionOrientationLeftOver,
|
56
|
+
// kOrientationRightOver = kCCTransitionOrientationRightOver,
|
57
|
+
// kOrientationUpOver = kCCTransitionOrientationUpOver,
|
58
|
+
// kOrientationDownOver = kCCTransitionOrientationDownOver,
|
59
|
+
} tOrientation;
|
60
|
+
|
61
|
+
/** Base class for CCTransition scenes
|
62
|
+
*/
|
63
|
+
@interface CCTransitionScene : CCScene
|
64
|
+
{
|
65
|
+
CCScene *_inScene;
|
66
|
+
CCScene *_outScene;
|
67
|
+
ccTime _duration;
|
68
|
+
BOOL _inSceneOnTop;
|
69
|
+
BOOL _sendCleanupToScene;
|
70
|
+
}
|
71
|
+
/** creates a base transition with duration and incoming scene */
|
72
|
+
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s;
|
73
|
+
/** initializes a transition with duration and incoming scene */
|
74
|
+
-(id) initWithDuration:(ccTime) t scene:(CCScene*)s;
|
75
|
+
/** called after the transition finishes */
|
76
|
+
-(void) finish;
|
77
|
+
/** used by some transitions to hide the outer scene */
|
78
|
+
-(void) hideOutShowIn;
|
79
|
+
@end
|
80
|
+
|
81
|
+
/** A CCTransition that supports orientation like.
|
82
|
+
* Possible orientation: LeftOver, RightOver, UpOver, DownOver
|
83
|
+
*/
|
84
|
+
@interface CCTransitionSceneOriented : CCTransitionScene
|
85
|
+
{
|
86
|
+
tOrientation orientation;
|
87
|
+
}
|
88
|
+
/** creates a base transition with duration and incoming scene */
|
89
|
+
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s orientation:(tOrientation)o;
|
90
|
+
/** initializes a transition with duration and incoming scene */
|
91
|
+
-(id) initWithDuration:(ccTime) t scene:(CCScene*)s orientation:(tOrientation)o;
|
92
|
+
@end
|
93
|
+
|
94
|
+
|
95
|
+
/** CCTransitionRotoZoom:
|
96
|
+
Rotate and zoom out the outgoing scene, and then rotate and zoom in the incoming
|
97
|
+
*/
|
98
|
+
@interface CCTransitionRotoZoom : CCTransitionScene
|
99
|
+
{}
|
100
|
+
// needed for BrdigeSupport
|
101
|
+
-(id) init;
|
102
|
+
@end
|
103
|
+
|
104
|
+
/** CCTransitionJumpZoom:
|
105
|
+
Zoom out and jump the outgoing scene, and then jump and zoom in the incoming
|
106
|
+
*/
|
107
|
+
@interface CCTransitionJumpZoom : CCTransitionScene
|
108
|
+
{}
|
109
|
+
// needed for BrdigeSupport
|
110
|
+
-(id) init;
|
111
|
+
@end
|
112
|
+
|
113
|
+
/** CCTransitionMoveInL:
|
114
|
+
Move in from to the left the incoming scene.
|
115
|
+
*/
|
116
|
+
@interface CCTransitionMoveInL : CCTransitionScene <CCTransitionEaseScene>
|
117
|
+
{}
|
118
|
+
/** initializes the scenes */
|
119
|
+
-(void) initScenes;
|
120
|
+
/** returns the action that will be performed */
|
121
|
+
-(CCActionInterval*) action;
|
122
|
+
@end
|
123
|
+
|
124
|
+
/** CCTransitionMoveInR:
|
125
|
+
Move in from to the right the incoming scene.
|
126
|
+
*/
|
127
|
+
@interface CCTransitionMoveInR : CCTransitionMoveInL
|
128
|
+
{}
|
129
|
+
// Needed for BridgeSupport
|
130
|
+
-(void) initScenes;
|
131
|
+
@end
|
132
|
+
|
133
|
+
/** CCTransitionMoveInT:
|
134
|
+
Move in from to the top the incoming scene.
|
135
|
+
*/
|
136
|
+
@interface CCTransitionMoveInT : CCTransitionMoveInL
|
137
|
+
{}
|
138
|
+
// Needed for BridgeSupport
|
139
|
+
-(void) initScenes;
|
140
|
+
@end
|
141
|
+
|
142
|
+
/** CCTransitionMoveInB:
|
143
|
+
Move in from to the bottom the incoming scene.
|
144
|
+
*/
|
145
|
+
@interface CCTransitionMoveInB : CCTransitionMoveInL
|
146
|
+
{}
|
147
|
+
// Needed for BridgeSupport
|
148
|
+
-(void) initScenes;
|
149
|
+
@end
|
150
|
+
|
151
|
+
/** CCTransitionSlideInL:
|
152
|
+
Slide in the incoming scene from the left border.
|
153
|
+
*/
|
154
|
+
@interface CCTransitionSlideInL : CCTransitionScene <CCTransitionEaseScene>
|
155
|
+
{}
|
156
|
+
/** initializes the scenes */
|
157
|
+
-(void) initScenes;
|
158
|
+
/** returns the action that will be performed by the incoming and outgoing scene */
|
159
|
+
-(CCActionInterval*) action;
|
160
|
+
@end
|
161
|
+
|
162
|
+
/** CCTransitionSlideInR:
|
163
|
+
Slide in the incoming scene from the right border.
|
164
|
+
*/
|
165
|
+
@interface CCTransitionSlideInR : CCTransitionSlideInL
|
166
|
+
{}
|
167
|
+
// Needed for BridgeSupport
|
168
|
+
-(void) initScenes;
|
169
|
+
@end
|
170
|
+
|
171
|
+
/** CCTransitionSlideInB:
|
172
|
+
Slide in the incoming scene from the bottom border.
|
173
|
+
*/
|
174
|
+
@interface CCTransitionSlideInB : CCTransitionSlideInL
|
175
|
+
{}
|
176
|
+
// Needed for BridgeSupport
|
177
|
+
-(void) initScenes;
|
178
|
+
@end
|
179
|
+
|
180
|
+
/** CCTransitionSlideInT:
|
181
|
+
Slide in the incoming scene from the top border.
|
182
|
+
*/
|
183
|
+
@interface CCTransitionSlideInT : CCTransitionSlideInL
|
184
|
+
{}
|
185
|
+
// Needed for BridgeSupport
|
186
|
+
-(void) initScenes;
|
187
|
+
@end
|
188
|
+
|
189
|
+
/**
|
190
|
+
Shrink the outgoing scene while grow the incoming scene
|
191
|
+
*/
|
192
|
+
@interface CCTransitionShrinkGrow : CCTransitionScene <CCTransitionEaseScene>
|
193
|
+
{}
|
194
|
+
// needed for BrdigeSupport
|
195
|
+
-(id) init;
|
196
|
+
@end
|
197
|
+
|
198
|
+
/** CCTransitionFlipX:
|
199
|
+
Flips the screen horizontally.
|
200
|
+
The front face is the outgoing scene and the back face is the incoming scene.
|
201
|
+
*/
|
202
|
+
@interface CCTransitionFlipX : CCTransitionSceneOriented
|
203
|
+
{}
|
204
|
+
// needed for BrdigeSupport
|
205
|
+
-(id) init;
|
206
|
+
@end
|
207
|
+
|
208
|
+
/** CCTransitionFlipY:
|
209
|
+
Flips the screen vertically.
|
210
|
+
The front face is the outgoing scene and the back face is the incoming scene.
|
211
|
+
*/
|
212
|
+
@interface CCTransitionFlipY : CCTransitionSceneOriented
|
213
|
+
{}
|
214
|
+
// needed for BrdigeSupport
|
215
|
+
-(id) init;
|
216
|
+
@end
|
217
|
+
|
218
|
+
/** CCTransitionFlipAngular:
|
219
|
+
Flips the screen half horizontally and half vertically.
|
220
|
+
The front face is the outgoing scene and the back face is the incoming scene.
|
221
|
+
*/
|
222
|
+
@interface CCTransitionFlipAngular : CCTransitionSceneOriented
|
223
|
+
{}
|
224
|
+
// needed for BrdigeSupport
|
225
|
+
-(id) init;
|
226
|
+
@end
|
227
|
+
|
228
|
+
/** CCTransitionZoomFlipX:
|
229
|
+
Flips the screen horizontally doing a zoom out/in
|
230
|
+
The front face is the outgoing scene and the back face is the incoming scene.
|
231
|
+
*/
|
232
|
+
@interface CCTransitionZoomFlipX : CCTransitionSceneOriented
|
233
|
+
{}
|
234
|
+
// needed for BrdigeSupport
|
235
|
+
-(id) init;
|
236
|
+
@end
|
237
|
+
|
238
|
+
/** CCTransitionZoomFlipY:
|
239
|
+
Flips the screen vertically doing a little zooming out/in
|
240
|
+
The front face is the outgoing scene and the back face is the incoming scene.
|
241
|
+
*/
|
242
|
+
@interface CCTransitionZoomFlipY : CCTransitionSceneOriented
|
243
|
+
{}
|
244
|
+
// needed for BrdigeSupport
|
245
|
+
-(id) init;
|
246
|
+
@end
|
247
|
+
|
248
|
+
/** CCTransitionZoomFlipAngular:
|
249
|
+
Flips the screen half horizontally and half vertically doing a little zooming out/in.
|
250
|
+
The front face is the outgoing scene and the back face is the incoming scene.
|
251
|
+
*/
|
252
|
+
@interface CCTransitionZoomFlipAngular : CCTransitionSceneOriented
|
253
|
+
{}
|
254
|
+
// needed for BrdigeSupport
|
255
|
+
-(id) init;
|
256
|
+
@end
|
257
|
+
|
258
|
+
/** CCTransitionFade:
|
259
|
+
Fade out the outgoing scene and then fade in the incoming scene.'''
|
260
|
+
*/
|
261
|
+
@interface CCTransitionFade : CCTransitionScene
|
262
|
+
{
|
263
|
+
ccColor4B color;
|
264
|
+
}
|
265
|
+
/** creates the transition with a duration and with an RGB color
|
266
|
+
* Example: [FadeTransition transitionWithDuration:2 scene:s withColor:ccc3(255,0,0)]; // red color
|
267
|
+
*/
|
268
|
+
+(id) transitionWithDuration:(ccTime)duration scene:(CCScene*)scene withColor:(ccColor3B)color;
|
269
|
+
/** initializes the transition with a duration and with an RGB color */
|
270
|
+
-(id) initWithDuration:(ccTime)duration scene:(CCScene*)scene withColor:(ccColor3B)color;
|
271
|
+
@end
|
272
|
+
|
273
|
+
|
274
|
+
/**
|
275
|
+
CCTransitionCrossFade:
|
276
|
+
Cross fades two scenes using the CCRenderTexture object.
|
277
|
+
*/
|
278
|
+
@class CCRenderTexture;
|
279
|
+
@interface CCTransitionCrossFade : CCTransitionScene
|
280
|
+
{}
|
281
|
+
// needed for BrdigeSupport
|
282
|
+
-(id) init;
|
283
|
+
@end
|
284
|
+
|
285
|
+
/** CCTransitionTurnOffTiles:
|
286
|
+
Turn off the tiles of the outgoing scene in random order
|
287
|
+
*/
|
288
|
+
@interface CCTransitionTurnOffTiles : CCTransitionScene <CCTransitionEaseScene>
|
289
|
+
{}
|
290
|
+
// needed for BrdigeSupport
|
291
|
+
-(id) init;
|
292
|
+
@end
|
293
|
+
|
294
|
+
/** CCTransitionSplitCols:
|
295
|
+
The odd columns goes upwards while the even columns goes downwards.
|
296
|
+
*/
|
297
|
+
@interface CCTransitionSplitCols : CCTransitionScene <CCTransitionEaseScene>
|
298
|
+
{}
|
299
|
+
-(CCActionInterval*) action;
|
300
|
+
@end
|
301
|
+
|
302
|
+
/** CCTransitionSplitRows:
|
303
|
+
The odd rows goes to the left while the even rows goes to the right.
|
304
|
+
*/
|
305
|
+
@interface CCTransitionSplitRows : CCTransitionSplitCols
|
306
|
+
{}
|
307
|
+
// Needed for BridgeSupport
|
308
|
+
-(CCActionInterval*) action;
|
309
|
+
@end
|
310
|
+
|
311
|
+
/** CCTransitionFadeTR:
|
312
|
+
Fade the tiles of the outgoing scene from the left-bottom corner the to top-right corner.
|
313
|
+
*/
|
314
|
+
@interface CCTransitionFadeTR : CCTransitionScene <CCTransitionEaseScene>
|
315
|
+
{}
|
316
|
+
-(CCActionInterval*) actionWithSize:(CGSize) vector;
|
317
|
+
@end
|
318
|
+
|
319
|
+
/** CCTransitionFadeBL:
|
320
|
+
Fade the tiles of the outgoing scene from the top-right corner to the bottom-left corner.
|
321
|
+
*/
|
322
|
+
@interface CCTransitionFadeBL : CCTransitionFadeTR
|
323
|
+
{}
|
324
|
+
-(CCActionInterval*) actionWithSize:(CGSize) vector;
|
325
|
+
@end
|
326
|
+
|
327
|
+
/** CCTransitionFadeUp:
|
328
|
+
* Fade the tiles of the outgoing scene from the bottom to the top.
|
329
|
+
*/
|
330
|
+
@interface CCTransitionFadeUp : CCTransitionFadeTR
|
331
|
+
{}
|
332
|
+
-(CCActionInterval*) actionWithSize: (CGSize) v;
|
333
|
+
@end
|
334
|
+
|
335
|
+
/** CCTransitionFadeDown:
|
336
|
+
* Fade the tiles of the outgoing scene from the top to the bottom.
|
337
|
+
*/
|
338
|
+
@interface CCTransitionFadeDown : CCTransitionFadeTR
|
339
|
+
{}
|
340
|
+
-(CCActionInterval*) actionWithSize: (CGSize) v;
|
341
|
+
@end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
/*
|
2
|
+
* cocos2d for iPhone: http://www.cocos2d-iphone.org
|
3
|
+
*
|
4
|
+
* Copyright (c) 2009 Sindesso Pty Ltd http://www.sindesso.com/
|
5
|
+
*
|
6
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
* of this software and associated documentation files (the "Software"), to deal
|
8
|
+
* in the Software without restriction, including without limitation the rights
|
9
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
* copies of the Software, and to permit persons to whom the Software is
|
11
|
+
* furnished to do so, subject to the following conditions:
|
12
|
+
*
|
13
|
+
* The above copyright notice and this permission notice shall be included in
|
14
|
+
* all copies or substantial portions of the Software.
|
15
|
+
*
|
16
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
* THE SOFTWARE.
|
23
|
+
*
|
24
|
+
*/
|
25
|
+
|
26
|
+
|
27
|
+
#import "CCTransition.h"
|
28
|
+
|
29
|
+
/** CCTransitionPageTurn transition.
|
30
|
+
* A transition which peels back the bottom right hand corner of a scene
|
31
|
+
* to transition to the scene beneath it simulating a page turn
|
32
|
+
*
|
33
|
+
* This uses a 3DAction so it is strongly recommended that depth buffering
|
34
|
+
* is turned on in CCDirector using:
|
35
|
+
*
|
36
|
+
* [[CCDirector sharedDirector] setDepthBufferFormat:kCCDepthBuffer16];
|
37
|
+
*
|
38
|
+
* @since v0.8.2
|
39
|
+
*/
|
40
|
+
@interface CCTransitionPageTurn : CCTransitionScene
|
41
|
+
{
|
42
|
+
BOOL _back;
|
43
|
+
}
|
44
|
+
/**
|
45
|
+
* creates a base transition with duration and incoming scene
|
46
|
+
* if back is TRUE then the effect is reversed to appear as if the incoming
|
47
|
+
* scene is being turned from left over the outgoing scene
|
48
|
+
*/
|
49
|
+
+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s backwards:(BOOL) back;
|
50
|
+
|
51
|
+
/**
|
52
|
+
* creates a base transition with duration and incoming scene
|
53
|
+
* if back is TRUE then the effect is reversed to appear as if the incoming
|
54
|
+
* scene is being turned from left over the outgoing scene
|
55
|
+
*/
|
56
|
+
-(id) initWithDuration:(ccTime) t scene:(CCScene*)s backwards:(BOOL) back;
|
57
|
+
|
58
|
+
-(CCActionInterval*) actionWithSize:(CGSize) vector;
|
59
|
+
|
60
|
+
@end
|