Sign in to follow this  
ms75214

video background

Recommended Posts

ms75214    143
I made a shooter game in C++, and I would like a video of some clouds to loop continuously in the background. Any ideas how to do this? I'm not sure how to load such a video.

Share this post


Link to post
Share on other sites
Burnt_Fyr    1665
If your camera is static, like duck hunt or similar, a simple solution is a few cloud sprites that move along the screen. Start them at a position that is <N on the axis of travel(probably the x axis), and update them until such time that their position is >M, then zap them back to a beginning position. Where M and N are both outside the view volume. No one will realize that the same 4 clouds have been scrolling past them all day.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this