模块 'time' 没有属性 'clock',代码没有导入时间

问题描述

import arcade

class MyGameWindow (arcade.Window):
    def __init__ (self,width,height,title):
        super().__init__(width,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()

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)