visualisation.py 733B

12345678910111213141516171819202122232425
  1. from xyworld.display.object.pygame.PygameImage import PygameImage
  2. from socialintengine.synergy.object.Bug import Bug
  3. from socialintengine.synergy.object.ant.Ant import Ant
  4. from socialintengine.synergy.object.Rock import Rock
  5. from os import getcwd
  6. # TODO: Url relative au fichier
  7. ant = PygameImage(getcwd()+'/socialintengine/display/pygame/image/ant2.png')
  8. bug = PygameImage(getcwd()+'/socialintengine/display/pygame/image/ant2.png')
  9. rock = PygameImage(getcwd()+'/socialintengine/display/pygame/image/rock.png')
  10. visualisation = {
  11. 'window': {},
  12. 'objects': {
  13. Ant: {
  14. 'default': ant
  15. },
  16. Bug: {
  17. 'default': bug
  18. },
  19. Rock: {
  20. 'default': rock
  21. }
  22. }
  23. }