diff options
-rw-r--r-- | physics.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -227,6 +227,7 @@ class GrabTool(Tool): # use box2D mouse motion elif event.type == MOUSEMOTION and event.buttons[0]: world.mouse_move(event.pos) + def cancel(self): world.add.remove_mouseJoint() @@ -285,7 +286,6 @@ def setTool(tool,discard=None): currentTool.cancel() currentTool = tools[tool] - # setup the menus menu = MenuClass() menu.set_width(size[0]) @@ -322,13 +322,13 @@ while True: # draw the menu menu.draw(screen) - #Print all the text on the screen
- text = font.render("Current Tool: "+currentTool.name, True, (255,255,255))
- textpos = text.get_rect(left=700,top=7)
+ #Print all the text on the screen + text = font.render("Current Tool: "+currentTool.name, True, (255,255,255)) + textpos = text.get_rect(left=700,top=7) screen.blit(text,textpos) # Flip Display pygame.display.flip() # Try to stay at 30 FPS - clock.tick(30) # originally 50
\ No newline at end of file + clock.tick(30) # originally 50 |