The Mugen Fighters Guild

Help => M.U.G.E.N Development Help => Tips, Tricks, Tutorials => Topic started by: 3djake on May 30, 2015, 08:11:04 am

Title: MUGEN 1.1 Calculating Zoomout and Camera Bounds
Post by: 3djake on May 30, 2015, 08:11:04 am
Hello all,

Here is a video I made demonstrating how to calculate Zoomout and camera bounds
https://www.youtube.com/watch?v=t_0Wzthy8fA (https://www.youtube.com/watch?v=t_0Wzthy8fA)

If you are not into videos, here is a brief guide on what I covered.

Get your stage dimensions.
If stageheight or stagewidth < 1024
stageheight = stageheight * 2
stagewidth = stagewidth * 2
else
stageheight = stageheight
stagewidth = stagewidth

if stageheight < stagewidth
zoomout = 480 / stageheight
boundleft and boundright = (stagewidth - (640 / zoomout)) / 4 #boundleft must be a negative value
boundhigh = 0
zoomin = 1
else
zoomout = 640 / stagewidth
boundhigh = stageheight - (480 / zoomout) #boundhigh must be a negative value
boundleft/right = 0


Notes - You may have to use the sprite alignment tool and zoffset to get rid of black area on the top or bottom of the screen.
You may also need to add zoomdelta and play with delta for background sprites.
You should comment out verticalfollow
Title: Re: MUGEN 1.1 Calculating Zoomout and Camera Bounds
Post by: beterhans on November 13, 2016, 02:47:30 pm
Great tutorial!

can you sure me how you run mugen 1.1 under ubuntu?

I can get my Mugen 1.1 to work under wine with OpenGL settings.
only directx mode works.