O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

cocos2d-x で PlugAir を 使えるようにしてみた

1.400 visualizações

Publicada em

PlugAirを使ったゲームを作りたくて、PlugAir SDK を cocos2d-x から使えるようにしたくて…!そんなcocos2d-xとObjeCネイティブ連携のお話。

Publicada em: Tecnologia
  • ⇒⇒⇒WRITE-MY-PAPER.net ⇐⇐⇐ I love this site. It always finds me the best tutors in accordance with my needs. I have been using it since last year. The prices are not expensive compared to other sites. I am glad I discored this site:)
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui
  • accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes.........ACCESS WEBSITE Over for All Ebooks ..... (Unlimited) ......................................................................................................................... Download FULL PDF EBOOK here { https://urlzs.com/UABbn } .........................................................................................................................
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Responder 
    Tem certeza que deseja  Sim  Não
    Insira sua mensagem aqui

cocos2d-x で PlugAir を 使えるようにしてみた

  1. 1. cocos2d-x で PlugAir を 使えるようにしてみた Beatrobo, Inc. 竹井英行 第6回cocos2d-x勉強会 LT / Jul. 30, 2014
  2. 2. Agenda • PlugAirとは?! • cocos2d-xとネイティブ(ObjC)の連携方法 • 実機デモ • 実装コード解説
  3. 3. 環境 • 最新版を使用 • Cocos2d-x v3.2 • (Cocos Studio v1.5.0.1)
  4. 4. PlugAirとは?! • iPhone, Androidのイヤホンジャックに 挿すと、PlugAirの中に入っている音楽 や動画をすぐに視聴できる • PlugAirの中身はシリアルナンバーと 認証機構が入っている カギ • イヤホンの音声出力とマイクでデータ通 信を行っている • http://plugair.com
  5. 5. PlugAirでゲームしたい! •まずはPlugAirを挿せばロボットが 出現するものを作りました! • PlugAirをiPhoneに挿すとシリアル ナンバーがすぐに受信 • シリアルナンバーとロボットが対応 • Objective-Cで実装されたPlugAirの APIをcocos2d-xのcppから操作・ イベントハンドリング ①初期化 ②挿す ③シリアル ナンバー受信
  6. 6. cocos2d-xとObjCの連携方法 PlugAir API (ObjC) cocos2d-x (cpp) ロボット表示 PlugAir初期化 delegate設定 delegate経由で シリアルナンバー
  7. 7. デモ
  8. 8. コードの構成 iPhone PlugAirBridge.h PlugAirBridge.mm HelloWorldScene.cpp PlugAirBridge_objc.h PlugAirBridge_objc.m BISoftModem API
  9. 9. PlugAirBridge.h
  10. 10. PlugAirDelegate.h
  11. 11. PlugAirBridge.mm
  12. 12. PlugAirBridge_objc.h
  13. 13. PlugAirBridge_objc.mm ・・・ ・・・ BISoftModemの実装
  14. 14. HelloWorldScene.cpp ・・・ ・・・
  15. 15. ARCなライブラリのとき • cocos2d-xのプロジェクトはARCがOFF • 「Build Phases」にてライブラリのソースコードに    -fobjc-arc を適用することで一部ファイルのみ ARC有効にできる
  16. 16. ありがとうございました

×