Converting from Mugen 1.0 to Mugen 1.1
|
|
|
Дата: Четверг, 04.04.2013, 10:02 | Сообщение # 1
- Легенда
- 5095Сообщений:
- 4 +Награды:
-
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.
|
|
Дата: Четверг, 04.04.2013, 14:10 | Сообщение # 2
- Член Совета Ниндзя
- 318Сообщений:
- 0 +Награды:
-
well well this looks like nice info.......
|
|
Дата: Четверг, 04.04.2013, 23:28 | Сообщение # 3
- Студент академии
- 10Сообщений:
- 0 +Награды:
-
can you put new stage herre
|
|
Дата: Воскресенье, 07.04.2013, 11:30 | Сообщение # 4
- Легенда
- 5095Сообщений:
- 4 +Награды:
-
|