Here are the solutions for the problem you may encounter when using Cocos2d-iphone with CocosBuilder Extension.
Cocos2d-iphone Version: 2.0.0
CCBReader: v3
1. CCScrollView not showing and handle touch correct if the parent position is not CGZero
2. CCLayerColor and CCLayerGradient cannot show color
3. CCControl doesn't change to Disable Look when control.enable = NO
Keep your heart with all diligence, For out of it spring the issues of life. (HolyBible Proverb 4:23)
因為一 生的果效是由心發出 (聖經箴言 4:23)
2013-11-21
2013-11-17
List of "Got Stuck"
This is the list of technical issue that I got stuck :
Install pecl_http on Mac (MAMP) / 18 Nov 2013
Work around Solution: using curl function instead
More Information:
- PHP about PECL_HTTP: http://us3.php.net/manual/en/http.install.php
- CURL Usage: http://us3.php.net/manual/en/book.curl.php
2013-11-16
PHP Not Refresh
If you are using MAMP & Php 5.5.3, and found that the php logic is not updated;
Try to close the cache config;
See more at here:
http://stackoverflow.com/questions/19079089/mamp-time-between-seeing-live-changes
2013-11-04
Fixing CCBReader v.3 with Cocos2d-iphone v2.0.0
1. Occur Exception at CCLayer
Add the “setTouchEnable” method to CCLayer(at CCLayer.m)- (void)setTouchEnabled:(BOOL)enabled { [self setIsTouchEnabled:enabled]; }
2. Cannot see CCLayerColor properly
Add the follow code segment in CCBReader just before the code "if ([node isKindOfClass:[CCBFile class]])” in the method called "(CCNode*) readNodeGraphParent:(CCNode*)parent"
if([node isKindOfClass:[CCLayerColor class]]){ [(CCLayerColor *)node setOpacity:255]; }
3. Cannot see CCLayerGradient properly
Add the “init” method to CCLayerGradient (at CCLayer.m)- (id) init { return [self initWithColor:ccc4(0, 0, 0, 255) fadingTo:ccc4(0, 0, 0, 255)]; }
4. CCControl doesn't change to Disable Look when control.enable = NO
Problem: When CCBReader generate the ccbi, it use "3" as the disable state, but it is "4" is iOS now;
Solution:
Place the following in "CCBReader.m" at Method "readPropertyForNode" right before "if ([node isKindOfClass:[CCBFile class]])"
// Fix for DisableState if ([node isKindOfClass:[CCControl class]]) { // the disable state value is wrong!!!! // CCBReader use 3 as CCControlStateDisabled, but it is 4 in iOS now // Change "|3" -> "|4" name = [name stringByReplacingOccurrencesOfString:@"|3" withString:@"|4"]; }
Remark CocosBuilder is an user interface builder worth to integrate to your project; It can make your code more tidy and easy to modify later. This is the screen capture of the Demo GUI using CocosBuilder.
2013-11-02
Fixing CCBReader problem for CCScale9Sprite
Today, when making some unit tests to check the behaviour of the CCBReader (CocosBuilder Reader);
Found 2 issues when adding a CCScale9Sprite to the Interface;
1. Crash if the interface included a CCScale9Sprite Node:
https://github.com/cocos2d/CCBReader/issues/16
2. The CCScale9Sprite Node have a wrong opacity setting
https://github.com/cocos2d/CCBReader/issues/17
Hope this small pieces of information helps
Found 2 issues when adding a CCScale9Sprite to the Interface;
1. Crash if the interface included a CCScale9Sprite Node:
https://github.com/cocos2d/CCBReader/issues/16
2. The CCScale9Sprite Node have a wrong opacity setting
https://github.com/cocos2d/CCBReader/issues/17
Hope this small pieces of information helps
2013-09-24
尋找工作中的寶藏
工作佔了我們生活大部分時間,大概30~50%;假如不喜歡工作,當工作是一件苦差,那麼代表有三分一以上的時間,你是苦逼,不開心的;工作是辛苦是事實,而且我們也不能改變工作;但是我們可以改變心思,尋找工作中的寶藏和樂趣,讓生活變得喜樂健康;
這是我們能在工作找到的寶藏:
** 秘訣:當工作的時候,要感恩當刻的生活有一定保障;出糧時候,也記得興祝一番吧!
知識
工作中,為了令任務能夠達成,你的老闆或你自己會讓你會學習很多東西;這些知識,可能對你目前的生活,或下份工作有用;如果能好好地把握,這些知識和技能就是你的價值,你創業或就業的本錢了;
** 秘訣:多多整理和紀錄你工作學習了的知識或技能,當你自己回顧或準備面試,必有意外驚喜!
成就
把工作做好,就能給你成就,自己更能肯定自己,也能得到別人的認同和稱讚;不要把成就看未一件很宏大的事情;例如為公司的產品清理程序BUG, 提升品質,是一項成就;建立一個好的團隊,也是一項成就;
往往我們會忽略了我們成就,失去了那些成就帶給你的滿足感;
** 秘訣:多制定目標,並把它們達成;也可以利用社交工具(微博或Twitter)等,紀錄和分享一下;
友誼
工作中,你會跟很多人合作,那些人是和你有很多時間相處的人;在當中,你可以和你並肩作戰的人,你也可以在當中認識很多志同道合的人;
不過,人與人的關係很複雜的,未必人人能互相投緣的;
假如你的工作,沒有和你價值相同的人,其實應該考慮換換環境,碰上那些最能合作的伙伴;
** 秘訣:三人行必有我師,讓你的工作夥伴成為你的良師益友;
經歷神 (信耶穌的人獨有)
困難,挑戰,不可能任務;這些在工作中,必然會出現,越是高薪厚職,越常出現;
這些時候,如果我們相信神,就可以透過禱告,把事件交託給神,讓神介入,神往往給你有意外的驚喜,和給你最好的結果;有些這些寶貴的經歷,就能更確信神和他的供應,我們就能生活得更平靜安穩,不會被困難打垮,面對難處也能安然度過;
** 秘訣:應當仰望神,因他笑臉幫助我;我還要稱讚他(詩篇42:5)
結
聖經說:”六日要勞碌作你一切的工“;也說“你要吃勞碌得來的;你要享福,事情順利”;
工作是神的設計,雖然工作是付出勞力,但是同時它能帶給我們很多東西;如果單單看著
自己付出的,沒有看和吃所得的,你就可能錯過工作的樂趣了!
這是我們能在工作找到的寶藏:
供應
大部分的工作都是有成果的,成果就可以是金錢,也可以是食物或日用品;這些也是就是我們維持自己和家人生活的東西,沒有工作,就難有這些供應,就讓生活變得困難了;** 秘訣:當工作的時候,要感恩當刻的生活有一定保障;出糧時候,也記得興祝一番吧!
知識
工作中,為了令任務能夠達成,你的老闆或你自己會讓你會學習很多東西;這些知識,可能對你目前的生活,或下份工作有用;如果能好好地把握,這些知識和技能就是你的價值,你創業或就業的本錢了;
** 秘訣:多多整理和紀錄你工作學習了的知識或技能,當你自己回顧或準備面試,必有意外驚喜!
成就
把工作做好,就能給你成就,自己更能肯定自己,也能得到別人的認同和稱讚;不要把成就看未一件很宏大的事情;例如為公司的產品清理程序BUG, 提升品質,是一項成就;建立一個好的團隊,也是一項成就;
往往我們會忽略了我們成就,失去了那些成就帶給你的滿足感;
** 秘訣:多制定目標,並把它們達成;也可以利用社交工具(微博或Twitter)等,紀錄和分享一下;
友誼
工作中,你會跟很多人合作,那些人是和你有很多時間相處的人;在當中,你可以和你並肩作戰的人,你也可以在當中認識很多志同道合的人;
不過,人與人的關係很複雜的,未必人人能互相投緣的;
假如你的工作,沒有和你價值相同的人,其實應該考慮換換環境,碰上那些最能合作的伙伴;
** 秘訣:三人行必有我師,讓你的工作夥伴成為你的良師益友;
經歷神 (信耶穌的人獨有)
困難,挑戰,不可能任務;這些在工作中,必然會出現,越是高薪厚職,越常出現;
這些時候,如果我們相信神,就可以透過禱告,把事件交託給神,讓神介入,神往往給你有意外的驚喜,和給你最好的結果;有些這些寶貴的經歷,就能更確信神和他的供應,我們就能生活得更平靜安穩,不會被困難打垮,面對難處也能安然度過;
** 秘訣:應當仰望神,因他笑臉幫助我;我還要稱讚他(詩篇42:5)
結
聖經說:”六日要勞碌作你一切的工“;也說“你要吃勞碌得來的;你要享福,事情順利”;
工作是神的設計,雖然工作是付出勞力,但是同時它能帶給我們很多東西;如果單單看著
自己付出的,沒有看和吃所得的,你就可能錯過工作的樂趣了!
2013-09-17
Again?! What's a good game?
My company and I develop games for years; We always say "good games
make good returns"; However, what is a good game? We really don't have an good answer; Actually, I was making several games last few years but they are not good enough.
While I rethink about the definition of "GOOD", I remember the games I enjoyed and loved in my life. They recall me what are the elements of a "GOOD" game!
Here they are:
make good returns"; However, what is a good game? We really don't have an good answer; Actually, I was making several games last few years but they are not good enough.
While I rethink about the definition of "GOOD", I remember the games I enjoyed and loved in my life. They recall me what are the elements of a "GOOD" game!
Here they are:
- Comfortable to play
- Attractive Story or Scene
- Things to unlock
- Skill to master
- Make me great!
- Killing my time happily
- Beatable Challenges
- Wow! That's amazing!
- My princess is waiting for me!
PS: No more explanation about the points above, it should be straight forward if you play or make games.
Subscribe to:
Posts (Atom)