忍者ブログ
  • 2024.03
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 2024.05
[PR]
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

【2024/04/30 06:29 】 |
playground
なんとなくKlabのplaygroundを使ってみる。

インストール手順発見。なんの因果かちょうど昨日今日ハッカソンやってる…
http://www.slideshare.net/KeiNakazawa/131102-playgroundthon


macportsのアップデートがうまくいかないので、面倒なのでhomebrewに乗り換えた
http://d.hatena.ne.jp/fuzzy31u/20130717/1374078678


でインストールできる。楽チンだ
インストールディレクトリは /usr/local/bin/以下。

$ ln -s /usr/local/bin/XXX ~/bin/XXX

oggencのみ、brew install oggenc ができなかった。ググると、

$ brew install vorbis-tools
というので行けた。

で、playgroundのソースはここ。git-hubにあるので取ってくる。
https://github.com/KLab/PlaygroundOSS




ここまでに実行したコマンド
$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
$ brew install lame
$ brew install lua
$ brew install swfmill
$ brew install vorbis-tools
$ ln -s /usr/local/bin/lame ~/bin/lame
$ ln -s /usr/local/bin/luac ~/bin/luac52
$ ln -s /usr/local/bin/swfmill ~/bin/swfmill
$ ln -s /usr/local/bin/oggenc ~/bin/oggenc
$ git clone https://github.com/KLab/PlaygroundOSS




で、README を読んだ(全部英語…)。
MacでiOSでサンプルプロジェクトを動かすための最短ルートをまとめるとこうなる。
(以降のディレクトリ表記は、取って来たgit管理下のトップディレクトリ PlaygroundOSS が基点)

XCodeを開いて、以下のプロジェクトを開く。
Engine/porting/iOS/Project/SampleProject/SampleProject.xcodeproj



左のプロジェクトビュー(Cmd + 1 で表示)の"ProjectResources"と"SampleProject" に、
Tutorial/01.SimpleItem/.publish/iphone
をドロップする。



するとこんな感じになる




で、Cmd + R で実行!

おお、動いた。





というわけだ。
要するに、.publish/iphone ができていればほぼ完成したも同然、というところだ。
そこをどうやって作るのかは次回の記事に。
(キーワードは Lua と Toboggan)

PR
【2013/11/03 17:51 】 | 未選択 | 有り難いご意見(0)
<<apache + fcgi + Perl まとめ | ホーム | macportsでgitをインストール>>
有り難いご意見
貴重なご意見の投稿














<<前ページ | ホーム | 次ページ>>