Research portable Memory game | Исследовать портируемую игру Память
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.

23 lines
483B

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