Corrected set position bugs when X axis is not valid while Y is. Corrected staircase collision boxes. Upper Foreground tiles added.
This commit is contained in:
+6
-1
@@ -274,7 +274,12 @@ void Monster::SetVelocity(vf2d vel){
|
||||
this->vel=vel;
|
||||
}
|
||||
bool Monster::SetPosition(vf2d pos){
|
||||
return SetX(pos.x)|SetY(pos.y);
|
||||
bool resultX=SetX(pos.x);
|
||||
bool resultY=SetY(pos.y);
|
||||
if(resultY&&!resultX){
|
||||
resultX=SetX(pos.x);
|
||||
}
|
||||
return resultX|resultY;
|
||||
}
|
||||
AnimationState Monster::GetDeathAnimationName(){
|
||||
return MONSTER_DATA[type].GetDeathAnimation();
|
||||
|
||||
Reference in New Issue
Block a user