Only draw player velocity while player exists

Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com>
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2, Sig, Sigo 3 years ago committed by GitHub
parent 17953e0589
commit 8717d2270b
  1. BIN
      bin/RabiClone.jar
  2. 2
      src/sig/objects/LevelRenderer.java

Binary file not shown.

@ -41,8 +41,8 @@ public class LevelRenderer extends Object{
} }
if (RabiClone.player!=null) { if (RabiClone.player!=null) {
Draw_Animated_Object(RabiClone.player,RabiClone.player.facing_direction?Transform.HORIZONTAL:Transform.NONE); 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 @Override

Loading…
Cancel
Save