Skip to content
Browse files

Added comment for scale_and_round().

  • Loading branch information...
1 parent e1834e1 commit 012f5cf5c93cc72138421aac29887adb28fd0aaa @asweigart committed Aug 7, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 square-shooter/square-shooter_makeover.py
View
1 square-shooter/square-shooter_makeover.py
@@ -50,6 +50,7 @@
def scale_and_round(x, y):
+ """Returns x and y coordinates from 0.0 to 1.0 scaled to 0 to MAP_WIDTH or MAP_HEIGHT."""
return int(round(x * MAP_WIDTH)), int(round(y * MAP_HEIGHT))

0 comments on commit 012f5cf

Please sign in to comment.
Something went wrong with that request. Please try again.