Only draw player velocity while player exists

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
sigonasr2, Sig, Sigo 2022-06-09 18:32:50 +00:00 committed by GitHub
parent 17953e0589
commit 8717d2270b
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -41,8 +41,8 @@ public class LevelRenderer extends Object{
}
if (RabiClone.player!=null) {
Draw_Animated_Object(RabiClone.player,RabiClone.player.facing_direction?Transform.HORIZONTAL:Transform.NONE);
Draw_Text(4,4,new String(RabiClone.player.x_velocity),Font.PROFONT_12);
}
Draw_Text(4,4,new String(RabiClone.player.x_velocity),Font.PROFONT_12);
}
@Override