more rendering

This commit is contained in:
Anuken
2020-02-06 14:58:12 -05:00
parent ddecb2d831
commit e3136e9e09
4 changed files with 71 additions and 7 deletions

View File

@@ -25,6 +25,10 @@ abstract class HealthComp implements Entityc{
hitTime -= Time.delta() / hitDuration;
}
float hitAlpha(){
return hitTime / hitDuration;
}
void killed(){
//implement by other components
}