|
- import arcade
-
- class desktop_Window(arcade.Window):
- def __init__(self, p):
- super().__init__(
- p.windowWidth,
- p.windowHeight,
- p.windowTitle,
- )
- self.antialiasing = p.windowAntialiasing
- arcade.set_background_color(p.windowBackgroundColor)
- self.p = p
-
- def on_draw(self):
- arcade.start_render()
- self.p.sprites.draw()
-
- def on_mouse_press(self, x, y, button, key_modifiers):
- print("click", x, y)
-
- def on_update(self, delta):
- pass
|