This commit is contained in:
33333-33333 2026-06-26 19:04:32 +09:00
commit 077d4ab9ac
71 changed files with 2905 additions and 1063 deletions

View file

@ -3,7 +3,7 @@
// Layer: entity-runtime/tarinai/update-system
// Owns pointer proximity care and cursor-heart effects.
(function (global) {
function legacyMethod(dt) {
function updateBody(dt) {
const pointer = this.world?.pointer;
if (!pointer?.inside || !this.isAwakeCursorFriendly()) return;
const d = distXY(this.x, this.y, pointer.x, pointer.y);
@ -29,12 +29,12 @@
function updateOne(tarinai, dt) {
if (!tarinai || tarinai.dead) return false;
legacyMethod.call(tarinai, dt);
updateBody.call(tarinai, dt);
return true;
}
global.TarinaiCursorCareSystem = Object.freeze({
legacyMethod,
updateBody,
updateOne,
});
})(typeof window !== "undefined" ? window : globalThis);