# # DeadKid.py # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # Copyright # Author: Nicholas F. Hoover # Contributors: Salvatore S. Gionfriddo # Created: 2007.06.25 # Last Modified: 2007.07.08 # from Character import Character from Animation import Animation class DeadKid(Character): ############## # ANIMATIONS # ############## NUM_ANIMATIONS = 1 DEAD = 0 LEFT = NUM_ANIMATIONS ################### # ANIMATION TABLE # ################### ANIMATION_TABLE = [ (DEAD, 'BasicKid_Dead_Right', 1, Animation.NO_KEY_FRAME), (DEAD + LEFT, 'BasicKid_Dead_Left', 1, Animation.NO_KEY_FRAME), ] DEFAULT_ANIMATION = DEAD ############# # MOVEMENTS # ############# MOVEMENTS = [ (0,0), #DEAD_LEFT (0,0)] #DEAD_RIGHT ######## # MISC # ######## RECT_SIZE = (50, 30) def __init__(self, facing): Character.__init__(self) self.currentAnimation = DeadKid.DEAD self.facing = facing def update(self): self.animations[self.currentAnimation].update() self.updateCurrentImage()