# # Fink.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: Salvatore S. Gionfriddo # Contributors: # Created: 2007.08.01 # Last Modified: 2007.11.03 # from Boss import Boss from Animation import Animation class Fink(Boss): ############### # FRAME TICKS # ############### ATTACK1_ANIMATION_FRAME_TICKS = 5 ################### # ANIMATION TABLE # ################### ANIMATION_TABLE = [ (Boss.IDLE, 'Fink_Run', Boss.IDLE_ANIMATION_FRAME_TICKS, Animation.NO_KEY_FRAME), (Boss.WALK_UP, 'Fink_Run', Boss.WALK_ANIMATION_FRAME_TICKS, Animation.NO_KEY_FRAME), (Boss.WALK_DOWN, 'Fink_Run', Boss.WALK_ANIMATION_FRAME_TICKS, Animation.NO_KEY_FRAME), (Boss.WALK_SIDE, 'Fink_Run', Boss.WALK_ANIMATION_FRAME_TICKS, Animation.NO_KEY_FRAME), (Boss.ATTACK1, 'Fink_Bite', ATTACK1_ANIMATION_FRAME_TICKS, Boss.ATTACK1_KEY_FRAME), ] ############# # MOVEMENTS # ############# SPEED = 6 # Y_MOVEMENT = 6 # MOVEMENTS = [(6,0), #WALK_SIDE # (0,0), #ATTACK1 # ] ######### # STATS # ######### MAX_HEALTH = 12000 ATTACK1_DAMAGE = 5 ######## # MISC # ######## CHANCE_TO_THROW = 50 # twenty in one-thousand CAN_THROW = True def __init__(self): Boss.__init__(self, "Fink")