X-Git-Url: https://git.yukkurigames.com/?a=blobdiff_plain;f=src%2Fyuu%2Fcore.js;h=1923d2cdf700086f60fd3997d1251794ed2faf33;hb=31d7c13b8e02f6d4218cd5477e8229ec4cb0d427;hp=b526131c6f1ec2d4ea90217c721ca918df1eb5ce;hpb=c952777104ad747e255efd1bcc395fcb04d09ed1;p=featherfall2.git diff --git a/src/yuu/core.js b/src/yuu/core.js index b526131..1923d2c 100644 --- a/src/yuu/core.js +++ b/src/yuu/core.js @@ -740,6 +740,9 @@ size: { swizzle: "wh" }, + hw: { get: function () { return this.w / 2; } }, + hh: { get: function () { return this.h / 2; } }, + contains: yf.argcd( function (p) { return this.contains(p.x, p.y); }, function (x, y) {