Collision with tailk

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
master
sigonasr2 2 years ago
parent 92bd237f30
commit 5d2458b576
  1. BIN
      MeercaChase
  2. 3
      MeercaChase.cpp

Binary file not shown.

@ -153,6 +153,9 @@ public:
}
for (int i=0;i<tailSize;i++) {
if (meercaPreviousPos[(i*8+6)]!=0||meercaPreviousPos[(i*8+7)]!=0) {
if (abs(meercaPos[0]-meercaPreviousPos[(i*8+6)])<8&&abs(meercaPos[1]-meercaPreviousPos[(i*8+7)])<8) {
init();
}
DrawCircle({(float)meercaPreviousPos[(i*8+6)],(float)meercaPreviousPos[(i*8+7)]},8);
}
}

Loading…
Cancel
Save