Beispiel #1
0
 class ShooterEnemy:
     # Load and scale animations
     idleAnimation = tools.loadAnimation("idle",
                                         "sprites/enemies/shooterEnemy", 1,
                                         3)
     shootingAnimation = tools.loadAnimation(
         "shooting", "sprites/enemies/shooterEnemy", 1, 3)
Beispiel #2
0
    class ZombieEnemy:
        # Load and scale animations
        movingAnimation = tools.loadAnimation("Walk",
                                              "sprites/enemies/zombie/moving",
                                              1, 10)
        movingAnimation = tools.scaleImages(movingAnimation, 0.2)

        jumpingAnimation = tools.loadAnimation("Jump",
                                               "sprites/enemies/zombie/jump",
                                               1, 3)
        jumpingAnimation = tools.scaleImages(jumpingAnimation, 0.2)
Beispiel #3
0
    class Character:
        # Load animations
        runningAnimation = tools.loadAnimation("charRunning",
                                               "sprites/character/running", 1,
                                               27)
        idleAnimation = tools.loadAnimation("charIdle",
                                            "sprites/character/idle", 1, 22)
        runningDustAnimation = tools.loadAnimation(
            "dirtTrail", "sprites/character/dirt_trail", 1, 20)
        jumpingAnimation = tools.loadAnimation("jumping",
                                               "sprites/character/jumping", 1,
                                               3)
        fallingAnimation = tools.loadAnimation("falling",
                                               "sprites/character/falling", 1,
                                               3)

        # Scale animations
        runningAnimation = tools.scaleImages(runningAnimation, 0.5)
        idleAnimation = tools.scaleImages(idleAnimation, 0.5)
        runningDustAnimation = tools.scaleImages(runningDustAnimation, 0.5)
        jumpingAnimation = tools.scaleImages(jumpingAnimation, 0.5)
        fallingAnimation = tools.scaleImages(fallingAnimation, 0.5)
Beispiel #4
0
 class GhostEnemy:
     movingAnimation = tools.loadAnimation("ghost",
                                           "sprites/enemies/ghostEnemy", 1,
                                           5)
Beispiel #5
0
 class BatEnemy:
     # Load and scale animations
     mainAnimation = tools.loadAnimation("batEnemy",
                                         "sprites/enemies/batEnemy", 1, 9)
     mainAnimation = tools.scaleImages(mainAnimation, 0.3)
Beispiel #6
0
 class SlimeEnemy:
     # Load and scale animations
     movingAnimation = tools.loadAnimation("greenSlime",
                                           "sprites/enemies/slime", 1, 10)
     movingAnimation = tools.scaleImages(movingAnimation, 1.5)