Research portable Memory game | Исследовать портируемую игру Память
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

29 строки
701B

  1. import arcade
  2. from desktop_aux import *
  3. class desktop_Window(arcade.Window):
  4. def __init__(self, p):
  5. super().__init__(
  6. p.c.windowWidth,
  7. p.c.windowHeight,
  8. p.c.windowTitle,
  9. )
  10. self.antialiasing = p.c.windowAntialiasing
  11. self.background_color = arcade.color_from_hex_string(p.c.windowBackgroundColor)
  12. self.p = p
  13. def on_draw(self):
  14. arcade.start_render()
  15. self.p.sprites.draw()
  16. def on_mouse_press(self, x, y, button, key_modifiers):
  17. id = desktop_aux_tileIdAt(self.p, x, y)
  18. if (
  19. id != None
  20. ):
  21. self.p.ctrl.set("selectedId", id)
  22. def on_update(self, delta):
  23. self.p.sprites.update_animation()
  24. self.p.sequentialTimer.update()