full totem destroyer prototype

full totem destroyer prototype

ID:22370566

大小:86.00 KB

页数:13页

时间:2018-10-28

full totem destroyer prototype_第1页
full totem destroyer prototype_第2页
full totem destroyer prototype_第3页
full totem destroyer prototype_第4页
full totem destroyer prototype_第5页
资源描述:

《full totem destroyer prototype》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库

1、FullTotemDestroyerprototype  SometimeagoIpostedCreateaFlashgamelikeTotemDestroyer,andnoshoadebyCollinDouch.  SuchdetectionadecustomizingBox2Dsb2ContactListenerclass.FormoreinformationaboutthisclassrefertoUnderstandinghoanagescollisions.  Thisisthemainfile:package{ i

2、mport flash.events.* import flash.events.MouseEvent import flash.display.Sprite import flash.text.* import Box2D.Dynamics.* import Box2D.Collision.* import Box2D.Collision.Shapes.* import Box2D.mon.Math.*  public class totem extends Sprite{   var boxDef:b2PolygonDef

3、  var bodyDef:b2BodyDef  var circleDef:b2CircleDef  var body:b2Body  var nx:Number  var ny:Number  var nn:String  var mousePVec:b2Vec2 = neber = 0  var bombCount = 3  var foundTotem:Boolean = false  var totemFound:b2Body = null  var n_ber  var n_height:Number  var n

4、_static:Boolean  var n_name:String  var n_destroyable:Boolean  var n_restitution:Number  var n_friction:Number  public function totem(){   addEventListener(Event.ENTER_FRAME,Update)   stage.addEventListener(MouseEvent.MOUSE_DO();   CreateLevel(nee("Box"),true,1,0.00

5、1,"Slimy"],[200,320,20,20,false,GetName("Box"),true,0.3,0.3,"Block"],[300,340,20,20,false,GetName("Box"),true,1,0.001,"Slimy"],[300,320,20,20,false,GetName("Box"),true,0.3,0.3,"Block"],[250,300,120,20,false,"BG",false,0.3,0.3,"unBreakable"],[200,280,20,20,false,GetN

6、ame("Box"),true,0.3,0.3,"Block"],[200,260,20,20,false,GetName("Box"),true,0.3,0.3,"Block"],[200,240,20,20,false,GetName("Box"),true,0.3,0.3,"Block"],[300,280,20,20,false,GetName("Box"),true,0.3,0.3,"Block"],[300,260,20,20,false,GetName("Box"),true,0.3,0.3,"Block"],[

7、300,240,20,20,false,GetName("Box"),true,0.3,0.3,"Block"],[250,220,120,20,false,"BB",false,0.3,0.3,"unBreakable"],[250,205,21.4,33.6,false,"Totem",false,0.3,012345下一页[感谢阅读这篇文章,..,].3,"Totem"]))  }  public function GetName(possName:String){   var nameing = "Box"+boxCo

8、unt   return "Box"+boxCount;   boxCount++  }  public function CreateLevel(LevelArray:Array){   for(var a:int=0;a<LevelArray.length;a++)

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。