X-Git-Url: https://git.yukkurigames.com/?p=featherfall2.git;a=blobdiff_plain;f=src%2Fyuu%2Fcore.js;h=1923d2cdf700086f60fd3997d1251794ed2faf33;hp=b526131c6f1ec2d4ea90217c721ca918df1eb5ce;hb=ca536dd9d6bf0f56875175560c586c79a10eeade;hpb=c952777104ad747e255efd1bcc395fcb04d09ed1 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) {