mirror of
https://github.com/OMGeeky/pytiled_parser.git
synced 2026-01-22 02:21:37 +01:00
rf: change line length to 88 chars
This commit is contained in:
@@ -5,6 +5,7 @@ import pprint
|
||||
|
||||
pp = pprint.PrettyPrinter(indent=4, compact=True, width=200)
|
||||
|
||||
|
||||
class MyTestWindow(arcade.Window):
|
||||
def __init__(self, width, height, title, map_name):
|
||||
super().__init__(width, height, title)
|
||||
@@ -13,8 +14,11 @@ class MyTestWindow(arcade.Window):
|
||||
my_map = arcade.tiled.read_tiled_map(map_name, 1)
|
||||
pp.pprint(my_map.layers_int_data)
|
||||
for layer in my_map.layers_int_data:
|
||||
self.layers.append(arcade.tiled.generate_sprites(
|
||||
my_map, layer, 1, "../arcade/arcade/examples/"))
|
||||
self.layers.append(
|
||||
arcade.tiled.generate_sprites(
|
||||
my_map, layer, 1, "../arcade/arcade/examples/"
|
||||
)
|
||||
)
|
||||
|
||||
def on_draw(self):
|
||||
arcade.start_render()
|
||||
@@ -22,7 +26,7 @@ class MyTestWindow(arcade.Window):
|
||||
layer.draw()
|
||||
|
||||
|
||||
MAP_NAME = '../arcade/arcade/examples/map_base64_gzip.tmx'
|
||||
MAP_NAME = "../arcade/arcade/examples/map_base64_gzip.tmx"
|
||||
|
||||
test = MyTestWindow(640, 800, "meme", MAP_NAME)
|
||||
arcade.run()
|
||||
|
||||
Reference in New Issue
Block a user