Guest User

Untitled

a guest
Jun 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.15 KB | None | 0 0
  1. # Image assignments are listed below. These tuples store the images for the robot's various states. They can be accessed
  2. # via a 0-based index (for example, the first idle image can be accessed using idleImages[0]). We used tuples because
  3. # these values never change during the code.
  4.  
  5. # Tuple for idle images
  6. idleImages = (pygame.image.load("../Roboto/images/robot/Idle1.png"),
  7. pygame.image.load("../Roboto/images/robot/Idle2.png"),
  8. pygame.image.load("../Roboto/images/robot/Idle3.png"),
  9. pygame.image.load("../Roboto/images/robot/Idle4.png"),
  10. pygame.image.load("../Roboto/images/robot/Idle5.png"),
  11. pygame.image.load("../Roboto/images/robot/Idle6.png"),
  12. pygame.image.load("../Roboto/images/robot/Idle7.png"),
  13. pygame.image.load("../Roboto/images/robot/Idle8.png"),
  14. pygame.image.load("../Roboto/images/robot/Idle9.png"),
  15. pygame.image.load("../Roboto/images/robot/Idle10.png"))
  16.  
  17. # Tuple for running images
  18. runImages = (pygame.image.load("../Roboto/images/robot/Run1.png"),
  19. pygame.image.load("../Roboto/images/robot/Run2.png"),
  20. pygame.image.load("../Roboto/images/robot/Run3.png"),
  21. pygame.image.load("../Roboto/images/robot/Run4.png"),
  22. pygame.image.load("../Roboto/images/robot/Run5.png"),
  23. pygame.image.load("../Roboto/images/robot/Run6.png"),
  24. pygame.image.load("../Roboto/images/robot/Run7.png"),
  25. pygame.image.load("../Roboto/images/robot/Run8.png"))
  26.  
  27. # Tuple for jumping images
  28. jumpImages = (pygame.image.load("../Roboto/images/robot/Jump1.png"),
  29. pygame.image.load("../Roboto/images/robot/Jump2.png"),
  30. pygame.image.load("../Roboto/images/robot/Jump3.png"),
  31. pygame.image.load("../Roboto/images/robot/Jump4.png"),
  32. pygame.image.load("../Roboto/images/robot/Jump5.png"),
  33. pygame.image.load("../Roboto/images/robot/Jump6.png"),
  34. pygame.image.load("../Roboto/images/robot/Jump7.png"),
  35. pygame.image.load("../Roboto/images/robot/Jump8.png"))
  36.  
  37. # Tuple for idle and shooting images
  38. idleShootImages = (pygame.image.load("../Roboto/images/robot/Shoot1.png"),
  39. pygame.image.load("../Roboto/images/robot/Shoot2.png"),
  40. pygame.image.load("../Roboto/images/robot/Shoot3.png"),
  41. pygame.image.load("../Roboto/images/robot/Shoot4.png"))
  42.  
  43. # Tuple for running and shooting images
  44. runShootImages = (pygame.image.load("../Roboto/images/robot/RunShoot1.png"),
  45. pygame.image.load("../Roboto/images/robot/RunShoot2.png"),
  46. pygame.image.load("../Roboto/images/robot/RunShoot3.png"),
  47. pygame.image.load("../Roboto/images/robot/RunShoot4.png"),
  48. pygame.image.load("../Roboto/images/robot/RunShoot5.png"),
  49. pygame.image.load("../Roboto/images/robot/RunShoot6.png"),
  50. pygame.image.load("../Roboto/images/robot/RunShoot7.png"),
  51. pygame.image.load("../Roboto/images/robot/RunShoot8.png"),
  52. pygame.image.load("../Roboto/images/robot/RunShoot9.png"))
  53.  
  54. # Tuple for jumping and shooting images
  55. jumpShootImages = (pygame.image.load("../Roboto/images/robot/JumpShoot1.png"),
  56. pygame.image.load("../Roboto/images/robot/JumpShoot2.png"),
  57. pygame.image.load("../Roboto/images/robot/JumpShoot3.png"),
  58. pygame.image.load("../Roboto/images/robot/JumpShoot4.png"),
  59. pygame.image.load("../Roboto/images/robot/JumpShoot5.png"))
  60.  
  61. # Tuple for bullet images
  62. bulletImages = (pygame.image.load("../Roboto/images/projectiles/PlayerBullet1.png"),
  63. pygame.image.load("../Roboto/images/projectiles/PlayerBullet2.png"),
  64. pygame.image.load("../Roboto/images/projectiles/PlayerBullet3.png"),
  65. pygame.image.load("../Roboto/images/projectiles/PlayerBullet4.png"),
  66. pygame.image.load("../Roboto/images/projectiles/PlayerBullet5.png"))
  67.  
  68. # Tuple for muzzle images
  69. muzzleImages = (pygame.image.load("../Roboto/images/projectiles/PlayerMuzzle1.png"),
  70. pygame.image.load("../Roboto/images/projectiles/PlayerMuzzle2.png"),
  71. pygame.image.load("../Roboto/images/projectiles/PlayerMuzzle3.png"),
  72. pygame.image.load("../Roboto/images/projectiles/PlayerMuzzle4.png"),
  73. pygame.image.load("../Roboto/images/projectiles/PlayerMuzzle5.png"))
  74.  
  75. # Tuple for dead images
  76. deadImages = (pygame.image.load("../Roboto/images/robot/Dead1.png"),
  77. pygame.image.load("../Roboto/images/robot/Dead2.png"),
  78. pygame.image.load("../Roboto/images/robot/Dead3.png"),
  79. pygame.image.load("../Roboto/images/robot/Dead4.png"),
  80. pygame.image.load("../Roboto/images/robot/Dead5.png"),
  81. pygame.image.load("../Roboto/images/robot/Dead6.png"),
  82. pygame.image.load("../Roboto/images/robot/Dead7.png"),
  83. pygame.image.load("../Roboto/images/robot/Dead8.png"),
  84. pygame.image.load("../Roboto/images/robot/Dead9.png"),
  85. pygame.image.load("../Roboto/images/robot/Dead10.png"))
Add Comment
Please, Sign In to add comment