Guest User

Untitled

a guest
Jul 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. # in enums.py
  2.  
  3. # used for collision points. Note that top, and bottom refer to corners, where as upper and lower refer to edges (eg, top-right # corner, verses upper-right edge)
  4. TOP_RIGHT, UPPER_RIGHT, LOWER_RIGHT, BOTTOM_RIGHT, BOTTOM_LEFT, LOWER_LEFT, UPPER_LEFT, TOP_LEFT = range(8)
  5.  
  6. # in any script
  7.  
  8. import enums
  9.  
  10. L = []
  11.  
  12. L[enums.TOP_RIGHT] # would produce 0
  13. L[enums.TOP_LEFT] # would produce 7
Add Comment
Please, Sign In to add comment