Mercurial > touhou
view pytouhou/game/player.pxd @ 784:1f152ca95658
Replace pytouhou.utils.random.Random with a Rust version
libtouhou.Prng now supports having its seed generated randomly using the
getrandom crate, and is now exposed to Python.
| author | Link Mauve <linkmauve@linkmauve.fr> |
|---|---|
| date | Sun, 23 Nov 2025 12:48:03 +0100 |
| parents | a6af3ff86612 |
| children |
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 bint set_anim(self, index) except True cdef bint play_sound(self, str name) except True cdef bint collide(self) except True cdef bint fire(self) except True cpdef update(self, long keystate)
