comparison skaapsteker/level.py @ 632:0675f390653c

Initial port to Python 3 and Pygame 2.
author Simon Cross <hodgestar@gmail.com>
date Fri, 20 Jan 2023 20:01:06 +0100
parents 65881746dc20
children
comparison
equal deleted inserted replaced
631:672e6e7ecfe9 632:0675f390653c
175 for object_ in objects: 175 for object_ in objects:
176 if [x, y] == object_['pos']: 176 if [x, y] == object_['pos']:
177 break 177 break
178 else: 178 else:
179 tile = self.get_debug_tile(x, y) 179 tile = self.get_debug_tile(x, y)
180 print "Debug tile at (%i, %i)" % (x, y) 180 print("Debug tile at (%i, %i)" % (x, y))
181 self.tiles.add(tile) 181 self.tiles.add(tile)
182 self.sprites.add(tile) 182 self.sprites.add(tile)
183 183
184 184
185 def get_debug_tile(self, x, y): 185 def get_debug_tile(self, x, y):