Posted By

anosognosia on 06/08/10


Tagged

python id dictionary touch Tiles visited


Versions (?)

tiles_visited


 / Published in: Python
 

URL: http://paste.pocoo.org/show/222912/

  1. tiles_visited = touch.userdata.get(\'tiles_visited\')
  2. if tiles_visited is None:
  3. tiles_visited = touch.userdata[\'tiles_visited\'] = []
  4. if tile_id not in tiles_visited:
  5. play_sound()
  6. tiles_visited.append(tile_id)

Report this snippet  

You need to login to post a comment.