diff options
author | Rodolfo D. Arce S <rodolfo.arce.s@gmail.com> | 2011-05-13 01:41:27 (GMT) |
---|---|---|
committer | Rodolfo D. Arce S <rodolfo.arce.s@gmail.com> | 2011-05-13 01:41:27 (GMT) |
commit | c6b7d7dbd1129c1597fe4b30ec7f1f90738cf781 (patch) | |
tree | f454dd55914fd6964e5c7340c1b54c268ddeddfc | |
parent | ce75b367b415edf0d524aea10c4281c5aaa54ae6 (diff) |
Removed some comments and functions no longer used
-rw-r--r-- | main.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -70,21 +70,22 @@ while not exit: # Score text score = 10 - score_current = "Score: " + str(score) + score_text = "Score: " + str(score) font = pygame.font.Font(None, 36) - text = font.render( score_current , 1, (0, 0, 0, 0)) + text = font.render( score_text , 1, (0, 0, 0, 0)) screen.blit(text, (0, 0)) # Robot - #screen.blit(object_robot, (position_robot[0], position_robot[1])) robot.draw(screen) # Garbage screen.blit(object_garbage, (position_garbage[0], position_garbage[1])) position_garbage = [((position_garbage[0] + random.randint(0,10) )%window_w), \ ((position_garbage[1] + random.randint(0,10) )%window_h) ] -# position_garbage = [(position_garbage[0] + 3 ), (position_garbage[1] + 3 ) ] + + robot.update() + # Add score if you pick garbage #if position_garbage == position_robot: # score = score + 1 |