Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
lordmauve committed Oct 10, 2019
1 parent 18bb48e commit ab914dc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions examples/tron/tron.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ def screen_to_grid(x, y):
return round(x / GRID_SIZE), round(y / GRID_SIZE)


def grid_to_screen(x, y):
"""Convert screen coordinates x, y to grid coords."""
return (x + 0.5) * GRID_SIZE, (y + 0.5) * GRID_SIZE


trails = Surface(screen_to_grid(WIDTH, HEIGHT))


Expand Down

0 comments on commit ab914dc

Please sign in to comment.