Public Member Functions | |
| def | __init__ |
| def | animate |
| def | left |
| def | right |
| def | up |
| def | down |
Public Attributes | |
| state | |
| image | |
SuperClass for user ships
alpha - alpha color
x,y - initial coordinates of object
speed - speed
nSprites - number of sprites in sprite sheet
sprRow - number of the row where the sprites are located (assuming animation is in same row)
sprWidth - width of each sprite
sprHeight - height of each sprite
Methods are defined for updating ship animation and moving it
| def player.Ship.animate | ( | self | ) |
Method for updating sprite animation
| def player.Ship.down | ( | self | ) |
Method for moving ship down
| def player.Ship.left | ( | self | ) |
Method for moving ship left
| def player.Ship.right | ( | self | ) |
Method for moving ship right
| def player.Ship.up | ( | self | ) |
Method for moving ship up
1.7.6.1