view pytouhou/game/player.pxd @ 574:94229756abd9

Give extra lives to the player once she has reached a certain score, and increment the default score on continue.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 26 Jul 2014 13:07:26 +0200
parents 6be9c99a3a24
children a6af3ff86612
line wrap: on
line source

from pytouhou.game.element cimport Element
from pytouhou.game.game cimport Game

cdef class Player(Element):
    cdef public Game _game
    cdef public long death_time
    cdef public bint touchable, focused
    cdef public long character, score, effective_score, lives, bombs, power
    cdef public long graze, points

    cdef long number
    cdef long invulnerable_time, power_bonus, continues, continues_used, miss,
    cdef long bombs_used

    cdef object anm
    cdef tuple speeds
    cdef long fire_time, bomb_time, direction

    cdef void set_anim(self, index) except *
    cdef void play_sound(self, str name) except *
    cdef void collide(self) except *
    cdef void fire(self) except *
    cpdef update(self, long keystate)