diff --git a/src/python/boytacean/gb.py b/src/python/boytacean/gb.py index 824dbeffa82d0105e5890f5cf21a79805e7fbf48..fd43147ac21a688698b67d8cbaf3a2c5f737d10a 100644 --- a/src/python/boytacean/gb.py +++ b/src/python/boytacean/gb.py @@ -81,6 +81,12 @@ This is a [Game Boy](https://en.wikipedia.org/wiki/Game_Boy) emulator built usin self._on_next_frame() return cycles + def skip_frames(self, count: int) -> int: + cycles = 0 + for _ in range(count): + cycles += self.next_frame() + return cycles + def frame_buffer(self): return self._system.frame_buffer()