OSDN Git Service

WarpItemClass.js の鋳型
authorttwilb <ttwilb@users.sourceforge.jp>
Mon, 2 Sep 2013 07:45:03 +0000 (16:45 +0900)
committerttwilb <ttwilb@users.sourceforge.jp>
Mon, 2 Sep 2013 07:45:03 +0000 (16:45 +0900)
www/corelib/classes/WarpItemClass.js [new file with mode: 0644]

diff --git a/www/corelib/classes/WarpItemClass.js b/www/corelib/classes/WarpItemClass.js
new file mode 100644 (file)
index 0000000..fead97e
--- /dev/null
@@ -0,0 +1,23 @@
+// args[0] : stageName  if blank warp in the stage
+// args[1] : move_to x  location(pixel) to warp
+// args[2] : move_to y
+// args[3] : size_x
+// args[4] : size_y
+
+var WarpItemClass = function(){
+       WarpItemClass.base.apply(this, [false, function(main, obj_x, obj_y){
+               
+       }]);
+       
+       if(args[3])
+       {
+               this.size.x = args[3];
+       }
+       if(args[4])
+       {
+               this.size.y = args[4];
+       }
+
+}.extend(FreeItemClass, {
+
+});
\ No newline at end of file