CometZ  0.2
 All Classes Namespaces Functions
Public Member Functions | Public Attributes
player.Ship Class Reference
Inheritance diagram for player.Ship:
player.ShipY001

List of all members.

Public Member Functions

def __init__
def animate
def left
def right
def up
def down

Public Attributes

 state
 image

Detailed Description

    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


Member Function Documentation

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

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions