You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
642B

  1. import arcade
  2. class desktop_Window(arcade.Window):
  3. def __init__(self, p):
  4. super().__init__(
  5. p.c.windowWidth,
  6. p.c.windowHeight,
  7. p.c.windowTitle,
  8. )
  9. self.antialiasing = p.c.windowAntialiasing
  10. self.background_color = arcade.color_from_hex_string(p.c.windowBackgroundColor)
  11. self.p = p
  12. def on_draw(self):
  13. arcade.start_render()
  14. self.p.staticSprites.draw()
  15. self.p.playerSprites.draw()
  16. def on_mouse_press(self, x, y, button, key_modifiers):
  17. print("mouse press:", x, y)
  18. pass
  19. def on_update(self, delta):
  20. pass