Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use coordinates (x,y) instead of dict

  • Loading branch information...
commit e4ec12e80b24a824a93dfc0dd7810496991609ae 1 parent ba0087f
@maikroeder authored
Showing with 2 additions and 4 deletions.
  1. +1 −1  pyground/game.py
  2. +1 −3 pyground/templates/game.py
View
2  pyground/game.py
@@ -61,7 +61,7 @@ class Level:
def __init__(self, game, coords, surface):
path = "levels/%s/" % game
- path += "levels/level_%(x)s_%(y)s.txt" % coords
+ path += "levels/level_%s_%s.txt" % coords
self.level = ConfigObj(path)
self.surface = surface
View
4 pyground/templates/game.py
@@ -1,9 +1,7 @@
def main(winstyle = 0):
"""Start, loop, then end the game."""
game = Game(winstyle)
- coords = {'x': 1,
- 'y': 1}
- game.start("${levels}", coords)
+ game.start("${levels}", (1,1))
game.loop()
game.end()
Please sign in to comment.
Something went wrong with that request. Please try again.