generated from sigonasr2/CPlusPlusProjectTemplate
Collision with tailk
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
92bd237f30
commit
5d2458b576
BIN
MeercaChase
BIN
MeercaChase
Binary file not shown.
@ -153,6 +153,9 @@ public:
|
|||||||
}
|
}
|
||||||
for (int i=0;i<tailSize;i++) {
|
for (int i=0;i<tailSize;i++) {
|
||||||
if (meercaPreviousPos[(i*8+6)]!=0||meercaPreviousPos[(i*8+7)]!=0) {
|
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);
|
DrawCircle({(float)meercaPreviousPos[(i*8+6)],(float)meercaPreviousPos[(i*8+7)]},8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user