Mercurial > touhou
view pytouhou/ui/window.pxd @ 470:98995d8ac744
Reset ANMRunner.sprite_index_offset after the first frame, fixes bullettype 7; also forbid glitch bullet types.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Mon, 16 Sep 2013 18:41:51 +0200 |
parents | 36bc577b2392 |
children | 2276229282fd |
line wrap: on
line source
from pytouhou.lib cimport sdl cdef class Clock: cdef long _target_fps, _ref_tick, _ref_frame, _fps_tick, _fps_frame cdef double _rate cdef void set_target_fps(self, long fps) nogil cdef double get_fps(self) nogil cdef void tick(self) nogil except * cdef class Runner: cdef long width, height cdef void start(self) except * cdef void finish(self) except * cdef bint update(self) except * cdef class Window: cdef sdl.Window win cdef long fps_limit cdef public long x, y, width, height cdef public bint use_fixed_pipeline cdef Runner runner cdef Clock clock cdef void set_size(self, int width, int height) nogil cpdef set_runner(self, Runner runner=*) cpdef run(self) cdef bint run_frame(self) except? False cdef double get_fps(self) nogil