Пример #1
0
 def build(self):
         state = factory.create(screen_width, screen_height, tile_size)
         tiles.add_tile_def(state, '+', ("assets/img/tiles/grid_simple.png",))
         tiles.add_tile_def(state, '#', ("assets/img/tiles/grid_double.png",))
         tiles.set_area(state, [
                                ['+', '+', '+',],
                                ['#', '+', '#',],
                                ['#', '+', '+',],
                                ['#', '#', '#',],
                                ])
         debug.print_line(state, "Area size %s" % str(tiles.get_area_size(state)))
         return ScreenWidget(state, debugging=True)
Пример #2
0
 def build(self):
         state = factory.create(screen_width, screen_height, tile_size)
         debug.print_line(state, "Hello World!")
         return ScreenWidget(state, debugging=True)