Layering rendering now proper.
This commit is contained in:
+6
-2
@@ -5,8 +5,8 @@
|
||||
INCLUDE_ANIMATION_DATA
|
||||
INCLUDE_game
|
||||
|
||||
Effect::Effect(vf2d pos,float lifetime,AnimationState animation,float size,float fadeout,vf2d spd,Pixel col)
|
||||
:pos(pos),lifetime(lifetime),size(size),fadeout(fadeout),original_fadeoutTime(fadeout),spd(spd),col(col){
|
||||
Effect::Effect(vf2d pos,float lifetime,AnimationState animation,bool upperLevel,float size,float fadeout,vf2d spd,Pixel col)
|
||||
:pos(pos),lifetime(lifetime),upperLevel(upperLevel),size(size),fadeout(fadeout),original_fadeoutTime(fadeout),spd(spd),col(col){
|
||||
this->animation.AddState(animation,ANIMATION_DATA[animation]);
|
||||
}
|
||||
|
||||
@@ -33,4 +33,8 @@ void Effect::Draw(){
|
||||
|
||||
Animate2D::Frame Effect::GetFrame(){
|
||||
return animation.GetFrame(internal_animState);
|
||||
}
|
||||
|
||||
bool Effect::OnUpperLevel(){
|
||||
return upperLevel;
|
||||
}
|
||||
Reference in New Issue
Block a user