cocos2d-x项目101次相遇-安装和环境搭建 -xcode

  1. cocos2d-x 101次相遇 / 文件夹 
    1   安装和环境搭建 -xcode 
    2   Scenes 。 Director, Layers, Sprites
    3   建立图片菜单 
    4   在HelloWorld上--建立新场景 
    5   添加一个精灵sprite 
    5.1   缩小sprite并使之完整显示
    6   action ,移动sprite 
    7   3.0 的点击事件,CCTouchDelegate已经停用了
    8   使用触摸事件移动 精灵


1   安装和环境搭建 -xcode

在xcode下使用 cocos2d-x

1 . 下载并创建项目 下载并解压 cocos2d-x-3.0beta2 (当前版本号2014年01月)


  1. cd

  2. cocos2d-x-3.0beta2/tools/project-creator

  3. project-creator hejiasheng$ ./create_project.py

a154e82aa34111e390edf23c91693c1b.png

2 . 启动项目

从 xcode 里打开项目文件(start.xcodeproj)


  1. /Users/hejiasheng/iOS-01/start/proj.ios_mac

  2. localhost:proj.ios_mac hejiasheng$ ls -l

  3. total 0

  4. drwxr-xr-x  25 hejiasheng  staff  85021423:01 ios

  5. drwxr-xr-x   6 hejiasheng  staff  20421423:01 mac

  6. drwxr-xr-x   5 hejiasheng  staff  1703410:08 start.xcodeproj

或者进入文件夹点击(start.xcodeproj)

469bc84ea34211e390edf23c91693c1b.png

原文地址:https://www.cnblogs.com/yxysuanfa/p/6748482.html