Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added comment for scale_and_round().

  • Loading branch information...
commit 012f5cf5c93cc72138421aac29887adb28fd0aaa 1 parent e1834e1
Al Sweigart authored August 07, 2012
1  square-shooter/square-shooter_makeover.py
@@ -50,6 +50,7 @@
50 50
 
51 51
 
52 52
 def scale_and_round(x, y):
  53
+    """Returns x and y coordinates from 0.0 to 1.0 scaled to 0 to MAP_WIDTH or MAP_HEIGHT."""
53 54
 	return int(round(x * MAP_WIDTH)), int(round(y * MAP_HEIGHT))
54 55
 
55 56
 

0 notes on commit 012f5cf

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