Code Archive Skip to content Google About Google Privacy Terms
大åé£ä¼åã«Pythonçcocos2dã触ã£ã¦ã¿ã¦ãäºæ³éãã¤ã³ã¹ãã¼ã«ãã¦ãµã³ãã«ãã¡ãã£ã¨åãããã ãã§é£½ããããã ããããæ°æ¥iPhoneçã®cocos2dãå°ãããã£ã¦ãã¦ããåºæ¬çãªæ¦å¿µãåããªãã°Pythonã§ãã£ãæ¹ããããã¿ã¤ãã³ã°ã«ã¯ãããããã¨æãå§ããããããã¿ã¤ãã³ã°ã®éè¦æ§ã¯ããã«æ¸ããéããObjective-CãæªããªãããããPythonã¨åãããã好ããªè¨èªã ããThinkPadãUbuntuã§ã¯éçºã§ããªãã®ãããã¯ãMacã§ã¯ãã¼ãã¼ãã«æ©ã¾ããã¦ãããã¿ã¤ãã³ã°ã«éä¸ã§ããªããé話ä¼é¡ãPythonçcocos2dã¯los-cocosã¨ããååã§ã¬ãã¸ããªãç»é²ããã¦ããã®ã§ãä»å¾ã¯iPhoneçcocos2dã¨åºå¥ããããã«ãlos-cocosã¨å¼ã¶ãã¨ã«ãããlos-cocosã«ã¯tetricoã¨ãããããªã¹ã£ã½ããµã³ãã«ã²ã¼ã ãã¤ãã¦ããã®ã§
NSStringã¯ã©ã¹ã¯ãObjective-Cã§æååãæ±ãã¯ã©ã¹ã§ããNSStringã¯å¤æ´ä¸å¯ãªã®ã§ãå¯å¤ã®æååãæ±ãããå ´åã¯NSMutalbeStringã¯ã©ã¹ã使ç¨ãã¾ãã NSStringã®ã¯ã©ã¹é層 NSStringã®çæ // æååçæä¾ï¼ NSString *str = @"ã»ã"; str â "ã»ã" // æååçæä¾ï¼ NSString *str = [NSString stringWithString:@"ã»ã"]; str â "ã»ã" // ç½®ææååã使ç¨ããçæä¾ NSString *str = [NSString stringWithFormat:@"%@ã¯%fkmã§ãã", @"ãã«ãã©ã½ã³", 42.195]; str â "ãã«ãã©ã½ã³ã¯42.195kmã§ãã" // é åã®çæä¾ NSString *strs[] = {@"ã", @"ã
以åããæ°ã«ãªã£ã¦ããã¨ã§ããã以ä¸ã®ã¨ã³ããªã«ã¤ãã¦ã iPhoneã¢ããªãä½ã£ã¦ã¿ããï¼ç®æ¬¡ã¨ã³ããªã¼ - ãã¨ã¾ãæ¥è¨ ããï¼å¹´ä»¥ä¸ãåã®è¨äºãªã®ã§ãå 容çã«å¤ããªã£ã¦ãã¾ã£ã¦ãæã ã§ææ°ã®å 容ã¨ã¯ç°ãªãåãããã¦ããã ãããªãã¨æã£ã¦ã¾ãããã¨ã¯ãããéæ対å¿ãã¦ããã®ã¯ãªããªãã·ã³ãã¤ãã¨ãããå®è³ªç¡çã§ãããªã®ã§ãã£ã¨æ¾ç½®ãã¦ããã§ãããå æ¥å ¬éãããXcode4ã§UIçã大ããæ§å¤ãããããã¨ãããããã®æ©ä¼ã«ææ°ã®å 容ã«å¯¾å¿ããè¨äºãç¨æãã¦ãããããªãã¨èãã¾ããã ã¦ãã¨ã§ã第ï¼åç®ã¯ãã£ã±ãããããããã²ã¼ã ãã§ããä»åã¯ä»å¾ã®ãã¨ãè¸ã¾ãã¦è©¦ãã¦ã¿ãããã¨ãããã®ã§ãæ§æã以åã¨ã¯å¤ãã¦ãï¼è¨äºã§å ¨å 容ã¨ãã¦ããããå°ã éãããããã¾ããããäºæ¿ãã ããm(_ _)m ãããã¼ã° ä»åã®é¡æããããããã²ã¼ã ãã®ã¤ã¡ã¼ã¸ã¯ä»¥ä¸ã§ãã é£ããé¨åã¯ä¸åãªãããã®ä»çµã¿
Objective-Cã®ãé ãããè¨æ¸¬ããããJavaãC++ã®5åãé ãã£ã: ãã¥ã¼ã¹ã®ç¤¾ä¼ç§å¦çãªè£å´ via ã¡ã½ããå¼ã³åºãã«ã¼ããã³ãã«Smalltalkã§åæ¦ãã¦ã¿ã (Smalltalkã®tã¯å°æåã§ã) ãã ãã¼ãï¼ OãObjective-C ããããããªã«é ãã¯ããªããããã¡ãã¡ããªã©ã¨ã¯é²ã»ã©ã«ãæããã Objective-C ãé ããã¨ã«ç°è°ã¯ããã¾ãããããåçè¨èªã§ããObjective-Cã¯è§£æ±ºä¸å¯è½ãªå¼±ç¹ã¨ãã¦æ®ã£ã¦ãã¾ã£ã¦ããããã«æããããã«ã¯åæã§ãã¾ããã解決ä¸å¯è½ã£ã¦ããããªãã¨æãã¾ãã Objective-C ãé ãã®ã¯ããæå³å½ç¶ã§ãããåç´ãªæé©åããæ½ããã¦ããªãããã§ããåºæ¬çã«ã¯ã©ã³ã¿ã¤ã å´ã§ä¸åº¦å¼ã³åºããã¡ã½ããããã£ãã·ã¥ããç¨åº¦ã§ããã Mac OS X 10.3 ãããããã³ã³ãã¤ã©å´ã«ãããã¤ãæé©åãªãã·ã§ã³ã追å ãã
iPhoneéçºã§ãã¡ã¢ãªç®¡çã®åºç¤ã社å¡ã«ä¼ãããã¨ãå¢ãã¦ããã®ã§ãã¨ã³ããªã¨ãã¦æ¸ããã Objective-Cåºç¤ ã¡ã¢ãªç®¡çã®åã«ObjCã®åºç¤ã¨ãã¦ãã¡ã½ããå¼ã³åºãã®è©±ã ã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹aãmethodAãã³ã¼ã«ããã¨ãã¯ã [a methodA] ã¨æ¸ãããã®ã¨ããaãnilã ã£ãã¨ãã¯ãã¨ã©ã¼ã§ã¯ãªããã³ã¼ã«ãããªããmethodAã«æ»ãå¤ãããã¨ãã¯ãããã¯ã0ãnilãNOãè¿ããObjCã§ã¯ã void dealloc { if(a!=nil){ [a release]; } [super dealloc]; } ã¯ãæ°æã¡æªãã®ã§ãnilãã§ãã¯ã¯ããã¾ãããã ãªããObjCã§ã¯ãåçã«ã¡ã½ãããå·®ãæ¿ãããã¨ãã§ããã³ã¼ã«ã®åº¦ã«ã¡ã½ãããåå¨ãã¦ãããã確èªãã¦ãã¾ãããã®ãããLLè¨èª(ã©ã¤ãã¦ã§ã¤ãè¨èªãã¹ã¯ãªããï¼ã®ããã«æè»ãªè¨è¿°ãå¯è½ã§ãããã
Sony ã¯ã³ã³ã·ã¥ã¼ãã¼åãé»åããã¤ã¹ã®æ¬¡ä¸ä»£ã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ "SNAP" (Sony's Networked Application Platform) ãçºè¡¨ãã (æ¬å®¶ /. è¨äºãã)ã SNAP ã¯å®é¨çãªç 究éçºããã¸ã§ã¯ãã§ãObjective-C 㨠GNUstep ããã¼ã¹ã«ãªããSony 㧠GNUstep ã¨ãã㨠PS2 Linux ãæãåºãã¦ãã¾ãã®ã ããObjective-C ãæ¡ç¨ããçç±ãæ°ã«ãªããCocoa Touch ãã¬ã¼ã ã¯ã¼ã¯ã iOS ã®éçºã«æ £ãã¦ãã人ã«ã¨ã£ã¦ã¯æå ±ãããããªãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}