Polish

Logowanie 

Ostatnio na Forum 

  • Brak postów do publikacji.

Nowiny z Internetu 

Reklama 

button rpgmakerbutton szowelbutton gamestiabutton tsukurubutton fantasybestarium manganimebutton kyaaretrobuttonrmtekabutton 1

Kto jest on-line 

Odwiedza nas 103 gości oraz 0 użytkowników.

Rozdzielczość i LocalCoord 

Spis treści

LocalCoord

rozdzielczosc skala 03

Wraz z odnowionym silnikiem Mugen 1.0 z 2009 roku, pojawiło się nowe wsparcie dla różnych rozdzielczości. Skończył się konkretny podział na Low-Res i Hi-Res, ponieważ teraz każdy element może mieć własną rozdzielczość. Mugen zgodnie z wpisem LocalCoord który informuje o rozdzielczości, przeskaluje rozdzielczość obiektu odpowiednio do rozdzielczości Mugena.

LocalCoord = 320,240 – niska rozdzielczość 4:3

LocalCoord = 640,480 – wysoka rozdzielczość 4:3

LocalCoord = 1280,720 – wysoka rozdzielczość (HD) 16:9

LocalCoord = 1920,1080 – wysoka rozdzielczość (Full HD) 16:9

LocalCoord opiera się na standardzie 4:3, więc mimo tego, że można spotkać zapis w standardzie 16:9 to i tak LocalCoord traktuje wymiar jako 4:3 i dopasowuje wysokość do szerokości. Czyli: LocalCoord = 1280,720 jest traktowany jako LocalCoord = 1280,960, wartość 1280x720 jest prawidłowa bo przy formacie 16:9 góra i dół obrazu zostają przycięte. Dzięki LocalCoord można też stworzyć własną rozdzielczość która zostanie dopasowana do ekranu np.: LocalCoord = 400,300; LocalCoord = 800,600. Jeżeli LocalCoord nie zostanie użyty to Mugen przyjmie standardowe wartości, standard to: LocalCoord = 320,240.

Występowanie w postaciach, arenach i motywach:

; Player information
[Info]
name = "Kung Fu Man 720"    ;Name of character
displayname = "Kung Fu Man" ;Name of character to display
versiondate = 09,30,2009    ;Version of character (MM-DD-YYYY or X.XX)
mugenversion = 1.0          ;Version of M.U.G.E.N character works on (X.XX)
author = "Elecbyte"         ;Character author name
pal.defaults = 1,2,3,4      ;Default palettes in order of preference (up to 4)
                            ;Numbering starts from 1
localcoord = 1280,720       ;Local coordinate space width and height
;--------------------------------------------------------
[Info]
 ;Name of the stage.
name = "Training Room 720"
displayname = "Training Room" ;Name to display
versiondate = 09,30,2009    ;Version date of stage (MM,DD,YYYY or X.XX)
mugenversion = 1.0          ;Version of M.U.G.E.N stage works on (X.XX)
author = "Elecbyte"         ;Stage author name
;--------------------------------------------------------
[StageInfo]
 ;"Ground" level where players stand at, measured in pixels from the
 ;top of the screen.
 ;Adjust this value to move the ground level up/down in the screen.
 ;***
zoffset = 660

 ;Leave this at 1. It makes the players face each other
autoturn = 1

 ;Set the following to 1 to have the background reset itself between
 ;rounds.
resetBG = 1

 ;Width and height of the local coordinate space of the stage.
localcoord = 1280, 720

 ;Horizontal and vertical scaling factor for drawing.
xscale = 1
yscale = 1
;--------------------------------------------------------
; Definitions of system screens
; Motif: MUGEN1
; Optimal resolution: 1280x720
; Supported languages: en, ja

;----------------------------
[Info]
name = "MUGEN1"           ;Name of motif
author = "Elecbyte"       ;Motif author name
versiondate = 01,01,2011  ;Version date of motif (MM-DD-YYYY) (new in MUGEN 1.0)
mugenversion = 1.0        ;Version of M.U.G.E.N motif is compatible with (new in MUGEN 1.0)
localcoord = 1280,720     ;Local coordinate space width and height (new in MUGEN 1.0)
;----------------------------

 

Ale jak to LocalCoord działa ?

Jeżeli chcesz narysować jakiegoś ludzika na kartce papieru, z jakimś tłem i obiektami, bierzesz kartkę papieru o danym rozmiarze, która jest czymś w rodzaju ekranu o danej rozdzielczości. Rysując tło na tej kartce i ludzika, starasz się zmieścić całego ludzika, i odpowiednio dobrać skalę do innych obiektów z tła.

rozdzielczosc skala 04

LocalCoord to rozmiar kartki papieru na której narysowana jest postać, czyli rozdzielczość tej postaci. Ustalając wszystkie parametry, odległości, wysokości, itd., należy je dobrać ze względu na tę rozdzielczość. Końcowe wymiary okna gry (rozdzielczość gry) nie mają żadnego znaczenia, bo wszystkie wymiary zostaną po przez LocalCoord przeskalowane w dół lub w górę do końcowej rozdzielczości.

rozdzielczosc skala 05

Przykładowe parametry dla postaci KFM:

; Player information
[Info]
name = "Kung Fu Man"        ;Name of character
displayname = "Kung Fu Man" ;Name of character to display
versiondate = 09,30,2009    ;Version date of character (MM-DD-YYYY or X.XX)
mugenversion = 1.0          ;Version of M.U.G.E.N character works on (X.XX)
author = "Elecbyte"         ;Character author name
pal.defaults = 1,2,3,4      ;Default palettes in order of preference (up to 4)
                            ;Numbering starts from 1
localcoord = 320,240        ;Local coordinate space width and height
[Size]
xscale = 1           ;Horizontal scaling factor.
yscale = 1           ;Vertical scaling factor.
ground.back = 15     ;Player width (back, ground)
ground.front = 16    ;Player width (front, ground)
air.back = 12        ;Player width (back, air)
air.front = 12       ;Player width (front, air)
height = 60          ;Height of player (for opponent to jump over)
attack.dist = 160    ;Default attack distance
proj.attack.dist = 90 ;Default attack distance for projectiles
proj.doscale = 0     ;Set to 1 to scale projectiles too
head.pos = -5, -90   ;Approximate position of head
mid.pos = -5, -60    ;Approximate position of midsection
shadowoffset = 0     ;Number of pixels to vertically offset the shadow
draw.offset = 0,0    ;Player drawing offset in pixels (x, y). Recommended 0,0

Przykładowe parametry dla postaci KFM 720:

; Player information
[Info]
name = "Kung Fu Man 720"    ;Name of character
displayname = "Kung Fu Man" ;Name of character to display
versiondate = 09,30,2009    ;Version of character (MM-DD-YYYY or X.XX)
mugenversion = 1.0          ;Version of M.U.G.E.N character works on (X.XX)
author = "Elecbyte"         ;Character author name
pal.defaults = 1,2,3,4      ;Default palettes in order of preference (up to 4)
                            ;Numbering starts from 1
LocalCoord = 1280,720       ;Local coordinate space width and height
[Size]
xscale = 1           ;Horizontal scaling factor.
yscale = 1           ;Vertical scaling factor.
ground.back = 60     ;Player width (back, ground)
ground.front = 64    ;Player width (front, ground)
air.back = 48        ;Player width (back, air)
air.front = 48       ;Player width (front, air)
height = 240         ;Height of player (for opponent to jump over)
attack.dist = 640    ;Default attack distance
proj.attack.dist = 360 ;Default attack distance for projectiles
proj.doscale = 0     ;Set to 1 to scale projectiles too
head.pos = -20, -360 ;Approximate position of head
mid.pos = -20, -240  ;Approximate position of midsection
shadowoffset = 0     ;Number of pixels to vertically offset the shadow
draw.offset = 0,0    ;Player drawing offset in pixels (x, y). Recommended 0,0

Napisz komentarz w tym Artykule