Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Image assignments are listed below. These tuples store the images for the robot's various states. They can be accessed
- # via a 0-based index (for example, the first idle image can be accessed using idleImages[0]). We used tuples because
- # these values never change during the code.
- # Tuple for idle images
- idleImages = (pygame.image.load("../Roboto/images/robot/Idle1.png"),
- pygame.image.load("../Roboto/images/robot/Idle2.png"),
- pygame.image.load("../Roboto/images/robot/Idle3.png"),
- pygame.image.load("../Roboto/images/robot/Idle4.png"),
- pygame.image.load("../Roboto/images/robot/Idle5.png"),
- pygame.image.load("../Roboto/images/robot/Idle6.png"),
- pygame.image.load("../Roboto/images/robot/Idle7.png"),
- pygame.image.load("../Roboto/images/robot/Idle8.png"),
- pygame.image.load("../Roboto/images/robot/Idle9.png"),
- pygame.image.load("../Roboto/images/robot/Idle10.png"))
- # Tuple for running images
- runImages = (pygame.image.load("../Roboto/images/robot/Run1.png"),
- pygame.image.load("../Roboto/images/robot/Run2.png"),
- pygame.image.load("../Roboto/images/robot/Run3.png"),
- pygame.image.load("../Roboto/images/robot/Run4.png"),
- pygame.image.load("../Roboto/images/robot/Run5.png"),
- pygame.image.load("../Roboto/images/robot/Run6.png"),
- pygame.image.load("../Roboto/images/robot/Run7.png"),
- pygame.image.load("../Roboto/images/robot/Run8.png"))
- # Tuple for jumping images
- jumpImages = (pygame.image.load("../Roboto/images/robot/Jump1.png"),
- pygame.image.load("../Roboto/images/robot/Jump2.png"),
- pygame.image.load("../Roboto/images/robot/Jump3.png"),
- pygame.image.load("../Roboto/images/robot/Jump4.png"),
- pygame.image.load("../Roboto/images/robot/Jump5.png"),
- pygame.image.load("../Roboto/images/robot/Jump6.png"),
- pygame.image.load("../Roboto/images/robot/Jump7.png"),
- pygame.image.load("../Roboto/images/robot/Jump8.png"))
- # Tuple for idle and shooting images
- idleShootImages = (pygame.image.load("../Roboto/images/robot/Shoot1.png"),
- pygame.image.load("../Roboto/images/robot/Shoot2.png"),
- pygame.image.load("../Roboto/images/robot/Shoot3.png"),
- pygame.image.load("../Roboto/images/robot/Shoot4.png"))
- # Tuple for running and shooting images
- runShootImages = (pygame.image.load("../Roboto/images/robot/RunShoot1.png"),
- pygame.image.load("../Roboto/images/robot/RunShoot2.png"),
- pygame.image.load("../Roboto/images/robot/RunShoot3.png"),
- pygame.image.load("../Roboto/images/robot/RunShoot4.png"),
- pygame.image.load("../Roboto/images/robot/RunShoot5.png"),
- pygame.image.load("../Roboto/images/robot/RunShoot6.png"),
- pygame.image.load("../Roboto/images/robot/RunShoot7.png"),
- pygame.image.load("../Roboto/images/robot/RunShoot8.png"),
- pygame.image.load("../Roboto/images/robot/RunShoot9.png"))
- # Tuple for jumping and shooting images
- jumpShootImages = (pygame.image.load("../Roboto/images/robot/JumpShoot1.png"),
- pygame.image.load("../Roboto/images/robot/JumpShoot2.png"),
- pygame.image.load("../Roboto/images/robot/JumpShoot3.png"),
- pygame.image.load("../Roboto/images/robot/JumpShoot4.png"),
- pygame.image.load("../Roboto/images/robot/JumpShoot5.png"))
- # Tuple for bullet images
- bulletImages = (pygame.image.load("../Roboto/images/projectiles/PlayerBullet1.png"),
- pygame.image.load("../Roboto/images/projectiles/PlayerBullet2.png"),
- pygame.image.load("../Roboto/images/projectiles/PlayerBullet3.png"),
- pygame.image.load("../Roboto/images/projectiles/PlayerBullet4.png"),
- pygame.image.load("../Roboto/images/projectiles/PlayerBullet5.png"))
- # Tuple for muzzle images
- muzzleImages = (pygame.image.load("../Roboto/images/projectiles/PlayerMuzzle1.png"),
- pygame.image.load("../Roboto/images/projectiles/PlayerMuzzle2.png"),
- pygame.image.load("../Roboto/images/projectiles/PlayerMuzzle3.png"),
- pygame.image.load("../Roboto/images/projectiles/PlayerMuzzle4.png"),
- pygame.image.load("../Roboto/images/projectiles/PlayerMuzzle5.png"))
- # Tuple for dead images
- deadImages = (pygame.image.load("../Roboto/images/robot/Dead1.png"),
- pygame.image.load("../Roboto/images/robot/Dead2.png"),
- pygame.image.load("../Roboto/images/robot/Dead3.png"),
- pygame.image.load("../Roboto/images/robot/Dead4.png"),
- pygame.image.load("../Roboto/images/robot/Dead5.png"),
- pygame.image.load("../Roboto/images/robot/Dead6.png"),
- pygame.image.load("../Roboto/images/robot/Dead7.png"),
- pygame.image.load("../Roboto/images/robot/Dead8.png"),
- pygame.image.load("../Roboto/images/robot/Dead9.png"),
- pygame.image.load("../Roboto/images/robot/Dead10.png"))
Add Comment
Please, Sign In to add comment