config.py 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. from xyzworld.Context import Context as XyzContext
  2. from intelligine.synergy.Simulation import Simulation
  3. from intelligine.display.Pygame import Pygame
  4. from intelligine.display.pygame.visualisation import visualisation as pygame_visualisation
  5. from intelligine.sandbox.colored.colors_colonys import collections
  6. """
  7. TODO:
  8. * AttackAction :: comment choisir entre les actions ?
  9. * TakeAction, PutAction, Object Egg
  10. * --> frameworkiser les usage de states, metas etc ?
  11. * Plusieurs objets au mm endroit; Cinq oeuf => dessein de cinq oeuf; etc (image dynamique (param max_supperposer ?)
  12. * 3d
  13. * Optimisation display pygame: ne pas tout reafficher; opt google
  14. """
  15. config = {
  16. 'app': {
  17. 'name': 'StigEngine',
  18. 'classes': {
  19. 'Context': XyzContext
  20. }
  21. },
  22. 'engine': {
  23. 'fpsmax': 25,
  24. 'debug': {
  25. 'mainprocess': True,
  26. 'cycles': -1
  27. }
  28. },
  29. 'simulations' : [Simulation(collections)],
  30. 'connections': [Pygame],
  31. 'terminal': {
  32. 'pygame': {
  33. 'visualisation': pygame_visualisation,
  34. 'window_size': (800, 600),
  35. 'app': {
  36. 'name': 'SocialIntengine'
  37. },
  38. 'display': {
  39. 'grid': {
  40. 'size': 20
  41. }
  42. },
  43. 'font': {
  44. 'name': 'arial',
  45. 'size': 13
  46. },
  47. 'background': {
  48. 'color': (125, 125, 125)
  49. }
  50. }
  51. }
  52. }