Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added comment for scale_and_round().

  • Loading branch information...
commit 012f5cf5c93cc72138421aac29887adb28fd0aaa 1 parent e1834e1
Al Sweigart authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  square-shooter/square-shooter_makeover.py
1  square-shooter/square-shooter_makeover.py
View
@@ -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))
Please sign in to comment.
Something went wrong with that request. Please try again.