config.py 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. from xyzworld.Context import Context as XyzContext
  2. from socialintengine.synergy.Simulation import Simulation
  3. from socialintengine.synergy.Colony import Colony
  4. from socialintengine.synergy.ColonyConfiguration import ColonyConfiguration
  5. from socialintengine.synergy.Rocks import Rocks
  6. from socialintengine.synergy.RocksConfiguration import RocksConfiguration
  7. from socialintengine.display.Pygame import Pygame
  8. from socialintengine.display.pygame.visualisation import visualisation as pygame_visualisation
  9. config = {
  10. 'app': {
  11. 'name': 'StigEngine',
  12. 'classes': {
  13. 'Context': XyzContext
  14. }
  15. },
  16. 'engine': {
  17. 'fpsmax': 5,
  18. 'debug': {
  19. 'mainprocess': False,
  20. 'cycles': -1
  21. }
  22. },
  23. 'simulations' : [Simulation([Colony(ColonyConfiguration()), Rocks(RocksConfiguration())])],
  24. 'connections': [Pygame],
  25. 'terminal': {
  26. 'pygame': {
  27. 'visualisation': pygame_visualisation,
  28. 'window_size': (800, 600),
  29. 'app': {
  30. 'name': 'SocialIntengine'
  31. },
  32. 'display': {
  33. 'grid': {
  34. 'size': 20
  35. }
  36. },
  37. 'font': {
  38. 'name': 'arial',
  39. 'size': 13
  40. }
  41. }
  42. }
  43. }