OSDN Git Service

SlopeBlockClass引数など修正
authorttwilb <ttwilb@users.sourceforge.jp>
Sat, 10 Aug 2013 13:25:10 +0000 (22:25 +0900)
committerttwilb <ttwilb@users.sourceforge.jp>
Sat, 10 Aug 2013 13:25:10 +0000 (22:25 +0900)
www/corelib/classes/SlopeBlockClass.js

index d9cb1c1..bb9d77a 100644 (file)
@@ -1,9 +1,11 @@
 var SlopeBlockClass = function(ownerStage, args)
 {
-       SlopeBlockClass.base.apply(this, [ownerStage, image]);
+       SlopeBlockClass.base.apply(this, arguments);
        
-       this.collisionLeftHeight = 16;
-       this.collisionRightHeight = 16;
+       var colLH = args[1], colRH = args[2];
+       
+       this.collisionLeftHeight = colLH;               //\8d\8fã\82©\82ç\95Ó\82è\94»\92è\97Ì\88æ\82Ü\82Å\82Ì\8d\82  \82³
+       this.collisionRightHeight = colRH;              //\89E\8fã\82©\82ç\95Ó\82è\94»\92è\97Ì\88æ\82Ü\82Å\82Ì\8d\82\82³
        
 }.extend(BlockClass, {
        isCollided: function(x1, y1, x2, y2){