cocos2d– tag –
-
[:ja]【cocos2d-box2d】画面の向きを変更する[:en]【cocos2d-box2d】How to change screen orientation[:]
【cocos2d-box2d】画面の向きを変更する [1]AppDelegate.mmのapplicationDidFinishLaunchingメソッドを編集 [director setDeviceOrientation:kCCDeviceOrientationLandscapeLeft]を [director setDeviceOrientation:kCCDeviceOrientationPortrait]に変更 [... -
[:ja]【cocos2d】キャラを作成して配置する[:en]【cocos2d】make character set to potision[:]
cocos2dでは左下の座標が(0, 0) xとyの値はそれぞれ右に、上にあがることで上昇する。 ランドスケープ(横向き)にした場合に右上の座標は(480[横], 320[縦])になる キャラを作成。画像(縦 27px 横 40px)を貼り付けて、左端中央に配置する [objc] -(id) init... -
[:ja]【cocos2d】FPSを非表示にする[:en]【cocos2d】FPS is not display[:]
プロジェクトファイルを作成したときの初期状態から表示されるFPSの表示を非表示にする FPSとは FPS(Frames Per Second)とは1秒間に表示されるフレーム数 動画のなめらかさを表す指標。1秒間に何枚の画像を表示しているかを示す。 fpsとは【Frame Per Sec... -
[:ja]【cocos2d】画面の向きを変更する[:en]【cocos2d】change screen orientation of deviece[:]
端末の画面の向きを変更する RootViewController.mを編集する Landscape(横向き) ( UIInterfaceOrientationIsLandscape( interfaceOrientation ) );をreturnする Portrait(縦向き) ( UIInterfaceOrientationIsPortrait( interfaceOrientation ) );をretu... -
【cocos2d】最初に呼び出す画面を指定する場所cocos2d-first call screen
最初に呼び出す画面を指定するには AppDelegate.mを編集する [objc] // Run the intro Scene [[CCDirector sharedDirector] runWithScene: [HelloWorldLayer scene]]; [/objc] 変更する場合には [objc] [[CCDirector sharedDirector] runWithScene: [変更...
1