From 36832ff310802c3d27d79c3b2421e76fc0356a24 Mon Sep 17 00:00:00 2001 From: ttwilb Date: Mon, 2 Sep 2013 16:45:03 +0900 Subject: [PATCH] =?utf8?q?WarpItemClass.js=20=E3=81=AE=E9=8B=B3=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- www/corelib/classes/WarpItemClass.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 www/corelib/classes/WarpItemClass.js diff --git a/www/corelib/classes/WarpItemClass.js b/www/corelib/classes/WarpItemClass.js new file mode 100644 index 0000000..fead97e --- /dev/null +++ b/www/corelib/classes/WarpItemClass.js @@ -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 -- 2.11.0