블로그 이미지
박황기
최근에 스마트폰에 관심이 많습니다. 예전에 상상하던 모습들이 점차 이루어지고 있는게 신기하네요.

calendar

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

Notice

2015. 2. 1. 02:03 모바일/COCOS2d

cocos2d-x 2 버전에서 이전에 개발했었는데 

새로 개발하면서 cocos2d-x 3버전을 사용해 보니 

이전에 모듈로 개발했던것을 재사용 하려 하니 deprecated 된것이 많았다.


최신 c++11을 사용하고 있으며 auto키워드를 사용하는 부분과 

CCSprite CCRect 와 같이 접두어로 CC가 붙은것은 Sprite Rect와 같이 접두어가 없어졌으며

CCArray -> cocos2d:Vector

CCDictionary -> cocos2d:Map 

자료형을 사용하도록 변경되었다.


자료형 변경관련 참조 URL

http://www.cocos2d-x.org/docs/manual/framework/native/v3/data-structure/vector/en

http://dev.bunnyhero.org/2014/01/cocos2d-x-30-beta-the-new-vector-class/

http://blog.csdn.net/legendof1991/article/details/22822485


cocos2d-x 3

http://www.cocos2d-x.org/news/216


cocos2dx mapping guide

http://www.redtgames.com/blog/cocos2d-x-v2-to-v3-mapping-guide/

http://www.cocos2d-x.org/wiki/User_Tutorial-CPP_Migration_from_v2_2_*_to_v3_0

http://www.gmtdev.com/blog/2014/07/24/cocos2d-x-upgrading-projects-from-v2-to-v3-replacement-a-b-list/




 




'모바일 > COCOS2d' 카테고리의 다른 글

cocos2d-x v3.x CCCalFunc to CalFunc  (0) 2015.02.21
cocos2d-x 3.x Label Example  (0) 2015.02.18
cocos2d-x 3.3 programing guide  (0) 2015.01.25
COCOS2DX 3.2 설치  (0) 2015.01.18
cocos2d google play game service  (0) 2013.08.09
posted by 박황기
2015. 1. 25. 02:20 모바일/COCOS2d

'모바일 > COCOS2d' 카테고리의 다른 글

cocos2d-x 3.x Label Example  (0) 2015.02.18
cocos2dX 2.x to 3.x  (0) 2015.02.01
COCOS2DX 3.2 설치  (0) 2015.01.18
cocos2d google play game service  (0) 2013.08.09
get miliseconds  (0) 2013.07.10
posted by 박황기
2015. 1. 18. 21:46 모바일/COCOS2d

*cocos2d-x 는 멀티플랫폼을 지원한다. 툴에서 프로젝트를 생성하지 않고

커맨드라인에서 프로젝트를 생성하면 

각 플랫폼 환경별로 폴더가 생성된다. 

개발할 플랫폼을 선택해서 툴에서 로딩한후 개발을 진행한다. 


 http://www.cocos2d-x.org/wiki/Getting_Started_with_Cocos2d-x


*커맨드라인툴 설치 

https://github.com/cocos2d/cocos2d-console


*코코스2dx 설치

https://github.com/cocos2d/cocos2d-x/


*코코스2dx 프로젝트 생성 

http://cocos2d-x.org/wiki/How_to_Start_A_New_Cocos2D-X_Game


Create A New Project

$ cd cocos2d-x
$ ./setup.py
$ source ~/.bash_profile # may be ~/.bash_login or ~/.profile, depends on your environemnt
$ cocos new MyGame -p com.MyCompany.MyGame -l cpp -d ~/MyCompany
  • MyGame: name of your project
  • -p com.MyCompany.MyGame: package name for android
  • -l cpp: programming language used for the project, valid value is cppand lua
  • -d ~/MyCompany: directory to hold your project



'모바일 > COCOS2d' 카테고리의 다른 글

cocos2dX 2.x to 3.x  (0) 2015.02.01
cocos2d-x 3.3 programing guide  (0) 2015.01.25
cocos2d google play game service  (0) 2013.08.09
get miliseconds  (0) 2013.07.10
cocos2d-x muti 해상도 지원 관련  (0) 2013.06.30
posted by 박황기
2014. 10. 5. 21:34 모바일/아이폰

인터페이스 빌더에서 분명 테이블뷰와 셀뷰에 

clear color로 설정해서 투명색 처리를 했더라도

ios7에서 배경색이 흰색으로 나타난다.


이럴경우엔 코드상에서 배경색을 설정하면 투명색으로 설정이 된다.

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

하위에 

 [tableView setBackgroundColor:[UIColor clearColor]];

 [cell setBackgroundColor:[UIColor clearColor]];


posted by 박황기
2014. 4. 6. 14:11 모바일/안드로이드

SDK Manager에서 Android SDK Tools항목을 최신 버전으로 업그레이드 하면

갑자기 전체 프로젝트가 빌드에러가 나면서 안드로이드 SDK를 못찾는 현상이 나타난다.

 

 

 

 

그럴경우엔 ADT 버전이 맞지 않아서 발생한 현상이므로 ADT를 업데이트 해줘야 한다.

[Help]-[Install New software]를 실행해서

아래 URL를 선택해서 실행한후 ADT를 체크해서 업데이트 한다.

Android Developer Tools Update Site - http://dl-ssl.google.com/android/eclipse/ 

(한가지 주의할점은 하단의 Contact all update sites during install to find required software

체크를 해제 하고 next를 클릭해서 설치를 해야한다. ADT설치가 실패 할 수 있다. )

 

 

 

 

 

 

 

 

 

 

'모바일 > 안드로이드' 카테고리의 다른 글

android 폰 mac에서 데이터 복사하기  (0) 2016.09.11
Cloud Save in Android  (0) 2013.09.07
Google Play Game Service  (0) 2013.08.04
URLEncoding  (0) 2013.04.24
eclipse 에서 android source code 연결해서 보기  (0) 2013.03.14
posted by 박황기
2014. 3. 8. 17:09 모바일/JQueryMobile

예전 버전의 이클립스에서는 한글 폰트 크기가 불편한점이 없었는데

최신 버전의 kepler로 업데이트 하면 한글이 영어에 비해 너무 작게 표기가 된다.

 

Windows->Preference->General->Appearance->Text Editor Block Selection Font->Editor로

폰트크기를 기본 10에서 9로 변경 한다.

 

posted by 박황기
2013. 10. 25. 04:00 모바일/Unity

[참고] 

http://answers.unity3d.com/questions/234407/how-is-clicktouch-input-handled-when-using-differe.html

http://www.tasharen.com/forum/index.php?topic=1081.0

http://www.tasharen.com/forum/index.php?topic=138.0


NGUI를 이용해서 게임루프안의 메뉴나 버튼을 구성할경우에

앵그리보트 와 같이 주인공이 마우스나 터치 이벤트로 액션을

처리하고 있을 경우에 NGUI로 구성한 버튼 이벤트가 

처리가 되지 않는다.


이런 경우엔 유니티 메뉴에서

Edit->Project Setting-> Physics 를 실행한후

인스펙터에서 Raycast Hit Triggers를 체크 한후에 

게임을 실행해보면 NGUI의 버튼이 정상적으로 작동한다.



'모바일 > Unity' 카테고리의 다른 글

GUITexture & Screen Size  (0) 2013.10.17
Unity Native 2D Tools  (0) 2013.10.01
ex2D Sprite Engine For Unity  (0) 2013.09.30
NGUI (Next-Gen UI)  (0) 2013.09.30
Unity Study Reference  (0) 2013.09.29
posted by 박황기
2013. 10. 17. 16:01 모바일/Unity

'모바일 > Unity' 카테고리의 다른 글

[NGUI] 게임안의 이벤트와 NGUI 버튼 이벤트가 겹칠경우  (0) 2013.10.25
Unity Native 2D Tools  (0) 2013.10.01
ex2D Sprite Engine For Unity  (0) 2013.09.30
NGUI (Next-Gen UI)  (0) 2013.09.30
Unity Study Reference  (0) 2013.09.29
posted by 박황기
2013. 10. 1. 17:08 모바일/Unity

http://blogs.unity3d.com/2013/08/28/unity-native-2d-tools/


unity 4.3버전에서 공식적인 2d 엔진이 추가될 예정이다.


Unity Native 2D Tools

August 28, 2013 in Company News and InfoDemos, Tutorials and TipsUnite by 

As part of our Unity 4.3 announcement here at Unite ’13, we’re thrilled to show off our native support for 2D development. Our users have been making 2D games for many years at this stage, and we felt it was about time we stepped up and acknowledged that fact, and brought native support for Sprites and related 2D workflows to Unity.

With the knowledge that Unity users love making 2D games in Unity – evidenced by some incredible titles (see BattleHeartTumbledropSki SafariBad PiggiesYear Walk, to name but a few) as well as some fantastic tools in our Asset Store – we decided to look at how to make the Unity workflow you already know and better support 2D. In future you’ll see a lot more in these tools, but as part of the first release you can expect features such as -

  • New Sprite type, with an editor that will auto slice your 2D graphics for you
  • Upgraded Animation window with Dopesheet style view and quicker parameter animation
  • Integration with the Animator to easily create states for 2D animated characters
  • An integrated 2D physics engine with rigidbodies, colliders, joints

We have also created a demo project to show our beta users how they can make a game with these new tools. Our Learn team has created this in much the same way we expect users to use our 3D tools, so we hope it’ll be both familiar and reassuring to those wondering how these 2D workflows make sense in a 3D engine.

unity 2d game development

We look forward to seeing what you create with these new tools and workflows in Unity, have fun!


'모바일 > Unity' 카테고리의 다른 글

[NGUI] 게임안의 이벤트와 NGUI 버튼 이벤트가 겹칠경우  (0) 2013.10.25
GUITexture & Screen Size  (0) 2013.10.17
ex2D Sprite Engine For Unity  (0) 2013.09.30
NGUI (Next-Gen UI)  (0) 2013.09.30
Unity Study Reference  (0) 2013.09.29
posted by 박황기
2013. 10. 1. 13:27 모바일/아이폰
posted by 박황기