webgame 技術選型 讀書筆記

來源:互聯網
上載者:User

http://www.blogjava.net/pixysoft/

http://www.blogjava.net/pixysoft/archive/2010/06/17/323706.html

http://www.blogjava.net/pixysoft/archive/2010/06/17/323681.html

 

上文介紹了 Spring的一些配置、Ioc、整合blazeds等;介紹了flash的資料通訊方式。

 

------------------------------------------------------

 

http://bbs.blueidea.com/thread-2969949-1-1.html

至於後端的技術解決方案,我感覺如果是需要大量即時互動,並且對即時性要求很高的遊戲,就必須使用socket伺服器。而如果對即時性要求不高,完全可以用PHP,部分的即時互動可以用socket實現或者HTTP輪詢也可以。

 

記得我們的遊戲同時線上超過3000的時候,就已經有人開始攻擊我們的後端了

基於HTTP的請求不被截取是不可能的

 

這個說明了使用http去實現webgame的可行性 

--------------------------------- 

http://www.cnblogs.com/yahle/archive/2008/02/11/1066881.html 

 

一個用asp.net去做webgame的想法,並非經驗。 

比如用資料表去做觸發隊列。一些並發的處理思路。 

 

--------------------------------- 

http://www.cnblogs.com/stg609/archive/2009/04/24/1443098.html

pureMVC的一些思路

這個東西貌似無法實現不同技術之間互動,不是解決flash和java之間溝通的問題。而是解決flash前端的內部架構等。

 

---------------------------------

flash與java之間的通訊 使用RemoteObject 

http://www.blogjava.net/lzhidj/archive/2008/08/20/223199.html

1. 定義好一個對象,在java裡面。

2. 修改設定檔remoting-config.xml,添加 <destination id="">

3. 在flex裡面定義 <mx:RemoteObject id="hwro" destination="hw"></mx:RemoteObject>

4. flex直接調用這個 

問題:remoting-config.xml如何被載入?

http://www.riafan.com/article/backend/blazeds-remote-object-service.html

http://pipe.javaeye.com/blog/203347 

理論上,應該是blazeds又是預設載入了。

 

 

--------------------------------------

java+flash+amf 整合 

http://hereson.javaeye.com/blog/417648

這篇文章,通過httpServlet擷取flash的AMF資訊,轉化為ActionMessage這個對象。

 

http://secyaher.blog.163.com/blog/static/3895577201032814058356/

這裡使用了HashMap,制定了一個flash對象的各種property,然後用AMF發送到flash轉化為弱類型。

  1.    HashMap map=new HashMap();   
  2.    map.put("Event", "人物移動");   
  3.    map.put("user", "閃刀浪子");   
  4.    map.put("x", 100);   
  5.    map.put("y", 100); 
  6.    amfout.writeObject(map);//實際上是將map對象寫入到dataoutstream流中 

 

http://hjy2099.javaeye.com/blog/306376

這篇文章給出來了AMF的映射關係:

JAVA 中的 ArrayList                Array              HashMap.

                         |                       |                            |

AS 中的  ArrayCollection        Array                   Object 

 

 

---------------------------------------

http://hi.baidu.com/hujiangshui/blog/item/50dcd254f74baa5f574e0020.html

這篇文章,介紹了如何使用反射產生對象。 

---------------------------------------  

 

問題1:在原有的架構裡面,spring+blazeds如何自動反射參數?

答案是,沒有去做自動反射。

 

---------------------------------------

 

mina的架構:

http://mina.apache.org/part-ii-mina-core.html

 

本質上和.net的socket一樣,不過handler是個無狀態的,反而被暴露了出來。如果要做狀態處理,要自己寫filter。 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.