ã¯ããã«
Unity WebGL x WebSocket ã§ããããã®ãªãã¸ã§ã¯ããåæãã前回ã®ä»çµã¿ãå©ç¨ãã¦ããã¼ã¿ã®æ°¸ç¶åã®å®é¨ããã¦ã¿ã¾ããã
ãã¢
ãã¤ã¯ã©ãã©ãã§ããå ¨å¡ããã°ã¢ã¦ããã¦ããã¼ã¿ããµã¼ãã«ä¿æãã¦ããããã«ãã¾ãããã¿ãªããã®ãååã®ãé°ã§é¢ç½ã空éãã§ããã¨æãã¾ãï¼ãããã¨ããããã¾ãã
ããããèããã¨å¥ã« WebGL ãã«ãããªãã¦ããã¹ã¯ãããã¢ããªã¨ãã¦ãåãã®ã§åæã«é å¸ãã¾ãããWebGL ã ã¨ãã£ã±ã表ç¾åãå¼±ãã®ã§è¦ãç®ã¯ãã¹ã¯ãããã¢ããªã®ã»ãã綺éºã§ããã
ç¾å¨ã¯åæ¢ãã¦ããã¾ãï¼
Online DemoWin: https://dl.dropboxusercontent.com/u/7131835/Programs/CrowdCraftOnlineWin.zipMac: https://dl.dropboxusercontent.com/u/7131835/Programs/CrowdCraftOnlineMac.zip
ãããã¯ã®æ°ãç¾ç¶ããªãå¤ãã®ã§éãã¦åããªãå¯è½æ§ãããã¾ãããäºæ¿ä¸ããã
ã³ã¼ã
ã³ã¼ãã¯ååã¨åãå ´æã«ããã¸ã§ã¯ãä¸å¼ããã¦ããã¾ãã
ä»çµã¿
åºæ¬çã«ã¯ååã¨åãä»çµã§ãããisSavedToServer
ãã©ã°ã®ç«ã£ããªãã¸ã§ã¯ãã«ç´ä»ããã³ã³ãã¼ãã³ãã¯ãµã¼ãå´ã«æ°¸ç¶åãããããã«ãã¾ãããä¾ãã°ä¿åããã¦ãããã¡ã¤ã«ã¯ä»¥ä¸ã®æ§ãªæãã§ãã
ãããåã¯ã©ã¤ã¢ã³ãã®ãã°ã¤ã³æã«éã£ã¦å¾©å ãã¦ãã¾ããå¾ã¯ååã¨åãããã«ãã°ã¤ã³ãã¦ããåã¯ã©ã¤ã¢ã³ãã®ãã¼ã«ã«ãªæ å ±ãéæãµã¼ãçµç±ã§ããã¼ããã£ã¹ããã¾ãã
åç
ãã°ãããã¤ãåºããªããããã¿ãªããã®ãååã®ãé°ã§ä½ã¨ãéã¹ãã¬ãã«ã«ã¯ãªã£ãã®ã§ã¯ãªããã¨æãã¾ãã
ãã ããªãã¸ã§ã¯ãã¯ãããã§ãç½®ããããã«ããçµæãç¾å¨ä¿åããã¦ãããã¼ã¿ã¯ 31000 è¡ãããããããããã¯ã«ï¼ã¤ã«ã¤ãä½ç½®æ å ±ãä¿åããã³ã³ãã¼ãã³ãã¨è²æ å ±ãä¿åããã³ã³ãã¼ãã³ããã¤ãã¦ããã®ã§ãåè¨ã§ 15000 åãããã®ãããã¯ãç½®ããã¦ãããã¨ã«ãªãã¾ãããä½é¨ããã ãã or ãå¯ãã®éããã¡ããã¡ãéãã§ãã
éãåå ã¯ä¸çªã¯ãããã¯ã®æç»ãäºçªç®ã MonoBehaviour.Update()ãå¾è ã¯æ±ç¨çãªä½ãã«ããé¢ä¿ä¸ä»æ¹ãªããã©ãåè ã¯ä½ã¨ãããããªããã©ãããããããã ããã·ã§ã¼ã軽ããããããªã
— å¹ (@hecomi) 2015å¹´1æ6æ¥
å¾è ã¯ãä»çµã¿çã«åæ£ãã¦ãªãã¸ã§ã¯ã管çããæ¹å¼ããã¦ãã¹ã¿ã¼ãå± ãæ¹å¼ã«ããã°è»½ããªãã¨æããä»ã¯ WebSocket + ãµã¼ãã§ãã¼ã¿ä¿æã ãã©ããã¹ã¿ã¼ããæ¹å¼ã§ WebRTC + LocalStorage or IndexedDB ãæ¤è¨ãããã
— å¹ (@hecomi) 2015å¹´1æ6æ¥
ãã®å¾ãrenderer.material.color
ã«ã¢ã¯ã»ã¹ããã¨ãããªã¢ã«ã®ã³ãã¼ãèµ°ãã®ã§ãã£ãã·ã¥ãã¦ãã¤ãããã¯ãããã³ã°ãå¹ãããã«ãã¨ãè²ã
調æ´ãã¦ã¡ãã£ã¨ã¯è»½ããªãã¾ããããããã§ãã¾ã éãã¦ããã©ãã§ãããããã¯ã¯ Particle System ã§æãã¦ã³ã©ã¤ãã ã GameObject ã«ããã¨ããä½ãè²ã
ã¨å·¥å¤«ããªãã¨å³ããããªæãããã¾ãããããã ã大éã®ãªãã¸ã§ã¯ããåæããã®ã¯ç¹æ®ã±ã¼ã¹ã ã¨æãã®ã¨ããã®ã²ã¼ã ã®ããã ãã«æé©åãã¦ãå¾®å¦ãªæ°ãããã®ã§æ¬¡ã«ç§»ããã¨æãã¾ãã
ãããã«
ä»åã¯å®é¨ãå ¼ãã¦ããã®ã§ãã©ããããè¡ãããå¶éãè¨ããã«ãã£ã¦ã¿ã¾ããããæã£ã¦ããããã¯ãã¾ãåããã¨æãã¾ãã次㯠AI ãã©ãåãããã®å®é¨ããWebSocket x ãµã¼ããã¼ã¿ä¿æã«ä»£ãã WebRTC x LocalStorage ã®å®é¨ããã¦ã¿ããã¨æãã¾ãã