|
|
|
@ -202,12 +202,12 @@ public: |
|
|
|
|
if (i!=tailSize-1&&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({(int)meercaPreviousPos[(i*8+6)],(int)meercaPreviousPos[(i*8+7)]},8); |
|
|
|
|
} |
|
|
|
|
if (scoreTransparency>0) { |
|
|
|
|
scorePos[1]-=0.03; |
|
|
|
|
scorePos[1]-=0.06; |
|
|
|
|
scoreTransparency--; |
|
|
|
|
DrawString({scorePos[0],scorePos[1]},"+"+to_string(scoreValue),olc::Pixel(0,0,255,scoreTransparency),2); |
|
|
|
|
DrawString({(int)scorePos[0],(int)scorePos[1]},"+"+to_string(scoreValue),olc::Pixel(0,0,255,scoreTransparency),2); |
|
|
|
|
} |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
@ -246,6 +246,9 @@ public: |
|
|
|
|
spawnBadNegg(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (meercaPos[0]<-8||meercaPos[0]>488||meercaPos[1]<-8||meercaPos[1]>488) { |
|
|
|
|
init(); |
|
|
|
|
} |
|
|
|
|
for (int i=0;i<badNeggCount;i++) { |
|
|
|
|
if (abs(meercaPos[0]-badNeggs[i*2])<6&&abs(meercaPos[1]-badNeggs[i*2+1])<6) { |
|
|
|
|
init(); |
|
|
|
|