Файлы: 857 Видео: 13 Комментарии: 242 Статьи: 306 Новости: 155 Форум: 39179 Пользователи: 3407 + 0 |Добавить на сайт ...

Новое на форуме Новые статьи Мини профиль
[ Обновленные темы · Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Модератор форума: Manoichi, Ronnie, Skamp  
Converting from Mugen 1.0 to Mugen 1.1
Manoichi
Дата: Четверг, 04.04.2013, 10:02 | Сообщение # 1
Stage Zoom and Camera Bounds
Stages now support the zoomin and zoomout parameters which determine the minimum and maximum amount of the stage that can be shown at once. Zoomin should usually be kept at the default value of 1.0 while zoomout will be a value less than one and greater than 0. The maximum zoomout dimensions are also automatically factored into the camera bounds, so there is some math involved in order to keep your stages in bounds.
[mcode][Camera]
boundhigh = -544
boundlow = 0
boundleft = -192
boundright = 192[/mcode]
For a high resolution stage (640x480) of size 1024x1024, these are the camera settings you'd expect to have. However, if we allow the stage to zoom out to the entire stage width we would see these settings instead:
[mcode][Camera]
boundhigh = -256
boundlow = 0
boundleft = 0
boundright = 0
zoomin = 1
zoomout = 0.625[/mcode]
To get our scale factor, we divide our screen width by the stage's total width:
640/1024 = 0.625
Then to adjust the boundhigh, we subtract the stage height by the maximum visible stage height
1024-(480/0.625) = 256

If we want to set an arbitrary zoom factor rather than one that goes the whole width of the stage, we can use this method instead:
[mcode][Camera]
boundhigh = -424
boundlow = 0
boundleft = -112
boundright = 112
zoomin = 1
zoomout = 0.8[/mcode]
1024-(640/0.8 ) = 224 - Horizontal pixels not visible at any given time
224/2 = 112 - Camera left and right bounds
1024-(480/0.8 ) = 424 - Vertical pixels not visible at any given time
Again this is with a 1024x1024 stage.
Kishor
Дата: Четверг, 04.04.2013, 14:10 | Сообщение # 2
well well this looks like nice info....... happy
TT
Дата: Четверг, 04.04.2013, 23:28 | Сообщение # 3
can you put new stage herre
Manoichi
Дата: Воскресенье, 07.04.2013, 11:30 | Сообщение # 4
All stages are here http://mugenworks.com/forum/7
  • Страница 1 из 1
  • 1
Поиск: