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