0
import arcade

class MyGameWindow (arcade.Window):
    def __init__ (self, width, height, title):
        super().__init__(width, height, title)
        self.set_location(896, 384)

        arcade.set_background_color(arcade.color.BLACK)

        self.ground_list = None

        self.setup()

    def setup(self):
        my_map = arcade.read_tmx("este si My map.tms.tmx")

        self.ground_list = arcade.generate_sprites(my_map, "asteroides")

    def on_draw(self):
        arcade.start_render()
        self.ground_list.draw()

    def on_update(self):
        pass

MyGameWindow (896, 384, "platform template")
arcade.run()
4

0 回答 0