SlideShare ist ein Scribd-Unternehmen logo
1 von 45
Downloaden Sie, um offline zu lesen
cocos2d
    Kobold2D
@Seasons
cocos2d AUTHOR



Blog Seasons.NET
•cocos2d
•

@cocos2dfan_jp
•cocos2d
iOS




      2011 9,10
      IMPACT      !!
Kobold2D



    •   cocos2d
    •   MIT
    •   2D
    •
    •
    •
    •
    •   http://www.kobold2d.com
Kobold2D


             •   cocos3d(3D)
             •   wax(Lua,         )
             •   iAd(      )
             •   iSimulator(                  )
             •   SneakyInput(                         )
             •   cocos2d extensions(              )

Built in!!   •   Chipmunk(                )
             •   Box2D (              )
             •   ObjectAL(                        )
             •   CocosDension(                            )
Kobold2D

                cocos2d
                                !!

           1.
           2.
           3.


                              om e! !
                      Aw es
Kobold2D



           @gaminghorror

     cocos2d




               cocos2d     !!
cocos2d → Kobold2D
Users Guide
Kobold2D



    •   Xcode 4.0
    •   iOS 4.3
    •   Mac OS X Snow Leopard(10.6)
    •   500MB



    • Xcode 4.1 or
    • Mac OS X Lion(10.7)
    • Objective-C
Kobold2D



• Kobold2D
• Kobold2D.pkg
•                !!
•      =    :)
Kobold2D




               ~/Kobold2D/

           ※
Kobold2D



• Kobold2D Project Starter.app
•
• [   ]
 ➡ Add to Workspace
 ➡
• New Project Name
  ※Xcode



      Create Project
           Xcode                 !!
Kobold2D




※__Kobold2D__   Kobold2D



 Kobold2D
                           __Kobold2D__
Kobold2D



※Kobold2D            (Workspace)
• Kobold2D-X.Y
•
 ➡



※Kobold2D          (Project)
• Kobold2D
• Kobold2D       Xcode 4.0,
• Xcode Scheme
Kobold2D




※




           !!
Kobold2D

※Kobold2D
•
•                                          Xcode
    ➡                   Xcode         !!


※Kobold2D
•                      Kobold2D API
    ➡
    ➡ API                  Kobold2D


    Xcode4
Xcode                                              Kobold2D
             (         )
    2            ...
cocos2d




          How to migrate???
cocos2d




※cocos2d
1.         cocos2d
     ➡               Kobold2D


2.
     ➡
     ➡                     Kobold2D


3.
     ➡ Kobold2D
cocos2d




       Hello-Kobold2d template
    _Particle_Effects_template_
cocos2d

1. Kobold2D project

•
    HelloWorld.h/m , Pow.caf , ship.png
    ➡

         config.lua                        !!
cocos2d

2.

•
    ➡ Xcode   Add Files to                          Destination
                     iOS , Mac

                             !!

     •GameConfig.h
     •(ProjectName)AppDelegate.*
     •RootViewController.*
     •main.m
     •(ProjectName)_Prefix.h
     •                     (cocos2d,box2d,etc...)
cocos2d

3.

•
                                    !!


     •Info.plist
     •Default.png , Icon.png( @2x        )




                       Finder
          Info.plist       /
cocos2d

3.                (Info.plist)



       Kobold2D                  2   Info.plist
                            iOS , Mac
cocos2d

4. config.lua

• config.lua


    •FirstSceneClassName
      ➡
    •EnableUserInteraction,EnableMultiTouch
      ➡
    •DefaultTexturePixelFormat
      ➡
    •GLViewColorFormat
      ➡OpenGL
    •GLViewDepthFormat
      ➡OpenGL
cocos2d


•GLViewPreserveBackBuffer
 ➡OpenGL
•GLViewMultiSampling
 ➡OpenGL
•GLViewNumberOfSamples
 ➡
 [     ]YES



•Enable2DProjection
 ➡3D          (   )

•EnableRetinaDisplaySupport
 ➡RetinaDisplay        (      )

•DeviceOrientaion
 ➡
cocos2d



•AutorotationType
 ➡
•ShouldAutorotateToLandscapeOrientation
 ➡UIViewController
•ShouldAutorotateToPortraitOrientation
 ➡UIViewController
•AllowAutorotateOnFirstAndSecondGenerationDevices
 ➡ 1,2                             NO     AutorotationType


 [    ] 1,2
cocos2d

iAd

•EnableAdBanner
  ➡iAd            (   iAd   )

•LoadOnlyPortraitBanners
  ➡
•LoadOnlyLandscapeBanners
  ➡
•PlaceBannerOnBottom
  ➡
cocos2d

Mac OS X

•AutoScale
 ➡
•AcceptsMouseMovedEvents
 ➡
•WindowFrame
 ➡
cocos2d


※config.lua
1. FirstSceneClassName
  ➡

2. config.lua
  ➡ Kobold2D
                               cocos2d AppDelegate.m
      GameConfig.h



       config.lua         Kobold2D


                                           ...
 config.lua                !!
cocos2d


※config.lua
• config.lua




  KKStartupSettings Property name:
  gLViewColorFormat
  enableMultiTouch
  deviceOrientation

  config.lua Parameter name:
  GLViewColorFormat                  3
  EnableMultiTouch
  DeviceOrientation
cocos2d

5.

     Kobold2D      config.lua FirstSceneClass
                                 cocos2d       +(id)
     scene
                   +(id) scene




        Kobold2D       3
cocos2d

     1 scene -> node
+ (id) scene -> + (id) node
( interface , implementation   )
cocos2d

     2 + (id) scene    init

+ (id) scene           init

scene
                init


self addChild                 [self.parent
addChild:myLayer]
cocos2d

       3 - (void) initializationComplete

cocos2d
                     initializationComplete
runWithScene

1,2
      cocos2d                                 AppDelegate
initializationComplete          CCDirector runWithScene



- (void) initializationComplete {
  [[CCDirector sharedDirector] runWithScene:[MyFirstScene scene]];
}
cocos2d

6. AppDelegate,RootViewController


                 AppDelegate RootViewController
      Kobold2D

                                                  super


 Kobold2D                  AppDelegate RootViewController
    config.lua
cocos2d

7.

                                             ”            ”
                                  Kobold2D
                      (                           ^^; )


 • Info.plist
     ➡     /


 • Default.png , Icon.png
     ➡ Finder      Kobold2D           Resources
                          Xcode
cocos2d

8.




 • cocos2d
     ➡ Kobold2D

 •
     ➡
         Kobold2D
Kobold2D         Error Warning

Warning                    !!

Kobold2D


              100%

      Xcode            ”
               ”                Kobold2D
Kobold2D   iOS , Mac




1.
2.
3.
cocos2d → Kobold2D


Kobold2D             (
One more thing...
Kobold2D.com
(Japanese side)   !!
Kobold2D.com
.....
http://www.kobold2d.com/display/KKDOC/Kobold2D+User%27s+Guide
Enjoy Kobold2D!!

Weitere ähnliche Inhalte

Mehr von Keisuke Hata

CCSendMessages introduction
CCSendMessages introductionCCSendMessages introduction
CCSendMessages introductionKeisuke Hata
 
Cocos2d Performance Tips
Cocos2d Performance TipsCocos2d Performance Tips
Cocos2d Performance TipsKeisuke Hata
 
CCResourceAsyncLoader
CCResourceAsyncLoaderCCResourceAsyncLoader
CCResourceAsyncLoaderKeisuke Hata
 
Impact beginngers guide_1.19
Impact beginngers guide_1.19Impact beginngers guide_1.19
Impact beginngers guide_1.19Keisuke Hata
 
Introduction titanium
Introduction titaniumIntroduction titanium
Introduction titaniumKeisuke Hata
 
How To Build Last Fm For I Phone
How To Build Last Fm For I PhoneHow To Build Last Fm For I Phone
How To Build Last Fm For I PhoneKeisuke Hata
 
Mercurial&OnenoteServer
Mercurial&OnenoteServerMercurial&OnenoteServer
Mercurial&OnenoteServerKeisuke Hata
 
Are You Enjoy Ruby 1 Day
Are You Enjoy Ruby 1 DayAre You Enjoy Ruby 1 Day
Are You Enjoy Ruby 1 DayKeisuke Hata
 

Mehr von Keisuke Hata (16)

CCSendMessages introduction
CCSendMessages introductionCCSendMessages introduction
CCSendMessages introduction
 
Cocos2d Performance Tips
Cocos2d Performance TipsCocos2d Performance Tips
Cocos2d Performance Tips
 
CCResourceAsyncLoader
CCResourceAsyncLoaderCCResourceAsyncLoader
CCResourceAsyncLoader
 
Impact beginngers guide_1.19
Impact beginngers guide_1.19Impact beginngers guide_1.19
Impact beginngers guide_1.19
 
Advanced cocos2d
Advanced cocos2dAdvanced cocos2d
Advanced cocos2d
 
Introduction titanium
Introduction titaniumIntroduction titanium
Introduction titanium
 
Hello cocos2d ios
Hello cocos2d iosHello cocos2d ios
Hello cocos2d ios
 
Hello cocos2d ios
Hello cocos2d iosHello cocos2d ios
Hello cocos2d ios
 
Google wave2010
Google wave2010Google wave2010
Google wave2010
 
How To Build Last Fm For I Phone
How To Build Last Fm For I PhoneHow To Build Last Fm For I Phone
How To Build Last Fm For I Phone
 
Mercurial&OnenoteServer
Mercurial&OnenoteServerMercurial&OnenoteServer
Mercurial&OnenoteServer
 
Math1 Vector
Math1 VectorMath1 Vector
Math1 Vector
 
Wiipen
WiipenWiipen
Wiipen
 
Gl Rotate
Gl RotateGl Rotate
Gl Rotate
 
Gl Matrix
Gl MatrixGl Matrix
Gl Matrix
 
Are You Enjoy Ruby 1 Day
Are You Enjoy Ruby 1 DayAre You Enjoy Ruby 1 Day
Are You Enjoy Ruby 1 Day
 

Kürzlich hochgeladen

DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 

Kürzlich hochgeladen (20)

DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 

Kobold2d users_guide_japanese