Research portable Memory game | Исследовать портируемую игру Память
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

3 ay önce
1234567891011121314151617181920212223242526272829303132
  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.descSprites.draw()
  16. self.p.deselectedSprites.draw()
  17. self.p.selectedSprites.draw()
  18. self.p.splashSprites.draw()
  19. self.p.titleSprites.draw()
  20. def on_mouse_press(self, x, y, button, key_modifiers):
  21. id = desktop_aux_tileIdAt(self.p, x, y)
  22. if (
  23. id != None
  24. ):
  25. self.p.ctrl.set("selectedId", id)
  26. def on_update(self, delta):
  27. self.p.deselectedSprites.update_animation()
  28. self.p.sequentialTimer.update()