C.x = c[0] C.y = c[1] C.angle = c[2] WF.setLastRotation() WB.setLastRotation() # display update R.clearWindow() C.render(R) WF.render(R) WB.render(R) NG.render(R, WF.x - ground_display, WF.x + ground_display, 20) R.displayText("x: " + str(int(WF.x)), 100, 32) R.displayText("y: " + str(int(WF.y)), 100, 64) R.displayText("vx: " + str(int(WF.vx)), 300, 32) R.displayText("vy: " + str(int(WF.vy)), 300, 64) R.displayText("ax*100: " + str(int(WF.ax * 100)), 500, 32) R.displayText("ay*100: " + str(int(WF.ay * 100)), 500, 64) R.updateWindow() # quit at the end pygame.quit