stable
This commit is contained in:
parent
86226ccc94
commit
077d4ab9ac
71 changed files with 2905 additions and 1063 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue