Cocos2d x

2,681 views

Published on

cocos2d-x

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,681
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Cocos2d x

  1. 1. cocos2d-x<br />win32<br />
  2. 2. Cocos2d-x<br />cocos2d-x is a multi-platform, light weight & developer-friendly C++ 2D mobile game engine, open source and released under MIT License. <br />코코스2d-x는 멀티-플랫폼, 경량 & 개발자-친화적c++ 2D 모바일 게임 엔진, 공개소스이고 MIT License 방식하에 공개된다.<br />It is a child branch of the famous "cocos2d-iphone" project, and will keep the primary features sync with it.<br />이것은 cocos2d-iphone으로 유명한 프로젝트의 child brach이며, 우선적 특징을 그것과 동일하게 유지한다.<br />The "X" in cocos2d-x means: <br />cocos2d-x의 X의 뜻은 :<br />means C++. Sometimes we write .cpp postfix as .cxx. <br />c++를 의미한다. 때때로 .cpp접미사를 .cxx로 쓰기도 한다.<br />So "X" means the project is written by C++, and offer C++ APIs means CROSS. <br />그래서X는c++로 쓰여진 프로젝트라는 의미이고, 제공하는c++ API의 의미는 교차이다.<br />The goal of this open project is to cross multi mobile platforms.<br />이 공개 프로젝의 최종 목적은 다종의 모바일플래폼을 교차(지원)하는 것이다.<br /> <br />http://www.cocos2d-x.org/projects/cocos2d-x/wiki<br />
  3. 3. Download / Unzip / Install<br />http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Download<br />
  4. 4. Install<br />Install-templates-msvc.bat<br />
  5. 5. Open project .sln<br />
  6. 6. Project option<br />
  7. 7. Run<br />
  8. 8. Add Sprite<br />Player <br />Projectile <br />Target<br />
  9. 9. Load Sprite / Add Child<br />boolHelloWorld::init()<br />{<br />boolbRet = false;<br />do<br /> {<br /> // ::::: Hello World 이미지 영역 ---- <br /> <br /> // 2. 아래에 코드를 추가 한다...<br />CCSizewinSize = CCDirector::sharedDirector()->getWinSize();<br /> <br /> //CCSprite *player <br />mPlayer = CCSprite::spriteWithFile("Player.png", CCRectMake(0,0,27,40) );<br />mPlayer->setPosition( ccp(mPlayer->getContentSize().width/2, winSize.height/2 ) ) ;<br /> this->addChild( mPlayer );<br /> <br /> //:::<br />bRet = true;<br /> <br /> <br /> } while (0);<br />}<br />
  10. 10. Back Color<br />class HelloWorld : public cocos2d::CCColorLayer // 상속 부분 수정<br />{<br /> // 교체 // 색상 설정<br />CCColorLayer::initWithColor( ccc4(255,255,255,255) ) ); //CCLayer::init());<br />}<br />
  11. 11. Run / Add a sprite<br />

×