seisatsu / BXEngine

Point-and-Click Adventure Engine with the goal of being able to make Myst-like adventure games.
MIT License
0 stars 1 forks source link

Video Overlays #15

Open seisatsu opened 3 years ago

seisatsu commented 3 years ago

Pygame supports mpeg1 video. Support overlaying a video onto the screen.

seisatsu commented 1 year ago

PyGame Movie is actually defunct. This should be implemented some other way.

seisatsu commented 1 year ago

It is probably easiest to implement this by using OverlayManager to swap through a directory full of frame images at a certain FPS with the help of TickManager. Audio can be played alongside if necessary. This can be wrapped as its own function which handles the setup.

All of the existing methods for playing a proper video file in Python are really bad actually.

An FFMPEG-based script for converting a video file into frames, audio, and a proper function call can be shipped with the engine as a utility.