TGViewer
>TOTAL.SCENE >TOTAL.SCENE @total_scene · 51 subscribers
Post #18 230
-- Спасибо за особые поздравления Monika, Nils и Miner, но вы всё забываете, ктож я таков.

————————————————

package TestClass;

import com.ts.src.hpbzdy.Defender
import com.ts.src.hpbzdy.PlatformModel

public DefensePlatform(int x, int y, int width, int height) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
}

public boolean checkCakeDeflected(int cakeX, int cakeY) {
boolean hitX = cakeX >= this.x && cakeX <= (this.x + this.width);
boolean hitY = cakeY >= this.y && cakeY <= (this.y + this.height);

if (hitX && hitY) {
System.out.println("LOGGER:(\"Система защиты: Торт успешно заблокирован платформой кода!\")");
return true;
}
return false;
}

public int getX() { return x; }
public int getY() { return y; }
public int getWidth() { return width; }
public int getHeight() { return height; }
}
  • ❤ 1
More from @total_scene
  1. Sep 22, 2026——————————————— Жаль, будто бы ничего-о-о 🎶 Так и не произошло. Только звёзды погасли все…
  2. Sep 19, 2026video post
  3. Sep 17, 2026>> Мощный совет по анимированию. << > Step-by-step & Stop motion стили. ——————————————— >…
  4. Sep 17, 2026>> Я не знаю почему вы на @TOTAL_BRED не подписаны, там же такой полный.BRED .
  5. Sep 16, 2026>> \\\tsk. Он видит всё, но никто не видит его. Всю правду, всю ложь. Ничто не скрыть от н…
  6. Sep 15, 2026>> T.PAIN TOMORROWno <<
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →