Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/physics.py
diff options
context:
space:
mode:
Diffstat (limited to 'physics.py')
-rw-r--r--physics.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/physics.py b/physics.py
index e42685c..958d4c1 100644
--- a/physics.py
+++ b/physics.py
@@ -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