修订版 | c181368b29bbfd8ad1ccd7cd76982ee939d66cf5 (tree) |
---|---|
时间 | 2017-01-27 21:34:34 |
作者 | SUEHIRO <supersuehiro@user...> |
Commiter | SUEHIRO |
allpalfxのフォントの表示の修正と、xscaleがマイナスのときの処理の修正
@@ -175,24 +175,21 @@ public &DrawnClsn | ||
175 | 175 | y = `y + `yscale*(float)`clsn[i].t + (float)(.com.GameHeight-240); |
176 | 176 | w = (float)`clsn[i].r - (float)`clsn[i].l; |
177 | 177 | h = (float)`clsn[i].b - (float)`clsn[i].t; |
178 | - if(`xscale < 0.0){ | |
179 | - x *= -1.0; | |
180 | - x += 160.0*2.0; | |
181 | - } | |
178 | + if(`xscale < 0.0) x *= -1.0; | |
182 | 179 | if(`yscale < 0.0) y *= -1.0; |
183 | 180 | /?/*.cfg.OpenGL: |
184 | 181 | .sdl.RenderMugenGl(: |
185 | 182 | spr.pxl<>, spr.colorPallet<>=, -1, spr.rct=, |
186 | - (-x+160.0)*.com.WidthScale, -y*.com.HeightScale, til=, | |
183 | + -x*.com.WidthScale, -y*.com.HeightScale, til=, | |
187 | 184 | `xscale*.com.WidthScale*w, `xscale*.com.WidthScale*w, |
188 | 185 | `yscale*.com.WidthScale*h, 1.0, 0.0, 0.0, alpha, .com.scrrect=, |
189 | - .com.WidthScale*160.0, 0.0:); | |
186 | + 0.0, 0.0:); | |
190 | 187 | /*true: |
191 | 188 | { |
192 | 189 | %byte dammy; |
193 | 190 | .sdl.renderMugenZoom( |
194 | - .com.scrrect=, .com.WidthScale*160.0, 0.0, spr.pxl, spr.colorPallet, | |
195 | - -1, spr.rct=, (-x+160.0)*.com.WidthScale, -y*.com.HeightScale, til=, | |
191 | + .com.scrrect=, 0.0, 0.0, spr.pxl, spr.colorPallet, | |
192 | + -1, spr.rct=, -x*.com.WidthScale, -y*.com.HeightScale, til=, | |
196 | 193 | `xscale*.com.WidthScale*w, `xscale*.com.WidthScale*w, |
197 | 194 | `yscale*.com.WidthScale*h, 0.0, 0d0, alpha, spr.rle, spr.pluginbuf=); |
198 | 195 | } |
@@ -1884,9 +1884,10 @@ public &Projectile | ||
1884 | 1884 | ^&.act.Rect clsn1 = pr.ani~ani.currentFrame()=>frm$frm~clsn2(); |
1885 | 1885 | ^&.act.Rect clsn2 = `ani~ani.currentFrame()=>frm$frm~clsn2(); |
1886 | 1886 | &.ClsnHantei ch.set( |
1887 | - pr.clsnscalex, pr.clsnscaley, pr.x, pr.y, | |
1888 | - pr.facing > 0 ? .pLrSet : .mLrSet, | |
1889 | - `clsnscalex, `clsnscaley, `x, `y, `facing > 0 ? .pLrSet : .mLrSet); | |
1887 | + #pr.clsnscalex, pr.clsnscaley, pr.x, pr.y, | |
1888 | + (float)pr.facing*pr.clsnscalex > 0.0 ? .pLrSet : .mLrSet, | |
1889 | + #`clsnscalex, `clsnscaley, `x, `y, | |
1890 | + (float)`facing*`clsnscalex > 0.0 ? .pLrSet : .mLrSet); | |
1890 | 1891 | loop{index i = 0; while; do: |
1891 | 1892 | loop{index j = 0; while; do: |
1892 | 1893 | if(ch.hantei(clsn1[i], clsn2[j])) ret true; |
@@ -2874,12 +2875,12 @@ public &Char | ||
2874 | 2875 | ^&.act.Rect clsn1 = c1atk ? atk.curFrame~clsn1() : atk.curFrame~clsn2(); |
2875 | 2876 | ^&.act.Rect clsn2 = c1slf ? `curFrame~clsn1() : `curFrame~clsn2(); |
2876 | 2877 | &.ClsnHantei ch.set( |
2877 | - atk.sysfvar[.fCLSNXSCALE], atk.sysfvar[.fCLSNYSCALE], | |
2878 | + #atk.sysfvar[.fCLSNXSCALE], atk.sysfvar[.fCLSNYSCALE], | |
2878 | 2879 | atk.sysfvar[.fX] + atk.offsetX(), atk.sysfvar[.fY] + atk.offsetY(), |
2879 | - atk.facing > 0 ? .pLrSet : .mLrSet, | |
2880 | - `sysfvar[.fCLSNXSCALE], `sysfvar[.fCLSNYSCALE], | |
2880 | + (float)atk.facing*atk.sysfvar[.fCLSNXSCALE] > 0.0 ? .pLrSet : .mLrSet, | |
2881 | + #`sysfvar[.fCLSNXSCALE], `sysfvar[.fCLSNYSCALE], | |
2881 | 2882 | `sysfvar[.fX] + `offsetX(), `sysfvar[.fY] + `offsetY(), |
2882 | - `facing > 0 ? .pLrSet : .mLrSet); | |
2883 | + (float)`facing*`sysfvar[.fCLSNXSCALE] > 0.0 ? .pLrSet : .mLrSet); | |
2883 | 2884 | loop{index i = 0; while; do: |
2884 | 2885 | loop{index j = 0; while; do: |
2885 | 2886 | if(ch.hantei(clsn1[i], clsn2[j])) ret true; |
@@ -2900,11 +2901,11 @@ public &Char | ||
2900 | 2901 | ^&.act.Rect clsn1 = pr.ani~ani.currentFrame()=>frm$frm~clsn1(); |
2901 | 2902 | ^&.act.Rect clsn2 = `curFrame~clsn2(); |
2902 | 2903 | &.ClsnHantei ch.set( |
2903 | - pr.clsnscalex, pr.clsnscaley, pr.x, pr.y, | |
2904 | - pr.facing > 0 ? .pLrSet : .mLrSet, | |
2905 | - `sysfvar[.fCLSNXSCALE], `sysfvar[.fCLSNYSCALE], | |
2904 | + #pr.clsnscalex, pr.clsnscaley, pr.x, pr.y, | |
2905 | + (float)pr.facing*pr.clsnscalex > 0.0 ? .pLrSet : .mLrSet, | |
2906 | + #`sysfvar[.fCLSNXSCALE], `sysfvar[.fCLSNYSCALE], | |
2906 | 2907 | `sysfvar[.fX] + `offsetX(), `sysfvar[.fY] + `offsetY(), |
2907 | - `facing > 0 ? .pLrSet : .mLrSet); | |
2908 | + (float)`facing*`sysfvar[.fCLSNXSCALE] > 0.0 ? .pLrSet : .mLrSet); | |
2908 | 2909 | loop{index i = 0; while; do: |
2909 | 2910 | loop{index j = 0; while; do: |
2910 | 2911 | if(ch.hantei(clsn1[i], clsn2[j])) ret true; |
@@ -2923,11 +2924,11 @@ public &Char | ||
2923 | 2924 | ^&.act.Rect clsn1 = pr.ani~ani.currentFrame()=>frm$frm~clsn2(); |
2924 | 2925 | ^&.act.Rect clsn2 = `curFrame~clsn1(); |
2925 | 2926 | &.ClsnHantei ch.set( |
2926 | - pr.clsnscalex, pr.clsnscaley, pr.x, pr.y, | |
2927 | - pr.facing > 0 ? .pLrSet : .mLrSet, | |
2928 | - `sysfvar[.fCLSNXSCALE], `sysfvar[.fCLSNYSCALE], | |
2927 | + #pr.clsnscalex, pr.clsnscaley, pr.x, pr.y, | |
2928 | + (float)pr.facing*pr.clsnscalex > 0.0 ? .pLrSet : .mLrSet, | |
2929 | + #`sysfvar[.fCLSNXSCALE], `sysfvar[.fCLSNYSCALE], | |
2929 | 2930 | `sysfvar[.fX] + `offsetX(), `sysfvar[.fY] + `offsetY(), |
2930 | - `facing > 0 ? .pLrSet : .mLrSet); | |
2931 | + (float)`facing*`sysfvar[.fCLSNXSCALE] > 0.0 ? .pLrSet : .mLrSet); | |
2931 | 2932 | loop{index i = 0; while; do: |
2932 | 2933 | loop{index j = 0; while; do: |
2933 | 2934 | if(ch.hantei(clsn1[i], clsn2[j])) ret true; |
@@ -137,8 +137,8 @@ void game() | ||
137 | 137 | { |
138 | 138 | void put(float y=, ^/char txt) |
139 | 139 | { |
140 | - int tmp = .sff.allPalFX~time; | |
141 | - .sff.allPalFX~time = 0; | |
140 | + bool tmp = .sff.allPalFX~enable; | |
141 | + .sff.allPalFX~enable = false; | |
142 | 142 | loop{ |
143 | 143 | ^/char t = txt; |
144 | 144 | index i; |
@@ -156,7 +156,7 @@ void game() | ||
156 | 156 | 1.0/.com.WidthScale, 1.0/.com.HeightScale, 0, 1, t[0..i]); |
157 | 157 | t = t[i..-1]; |
158 | 158 | while #t > 0:} |
159 | - .sff.allPalFX~time = tmp; | |
159 | + .sff.allPalFX~enable = tmp; | |
160 | 160 | } |
161 | 161 | %char line; |
162 | 162 | void drawDebug() |
@@ -274,7 +274,7 @@ public &Font | ||
274 | 274 | dx -= (float)`textWidth(txt)*xscl; |
275 | 275 | } |
276 | 276 | ^uint pal = `mpl~img[bank].colorPallet; |
277 | - if(.sff.allPalFX~time != 0) pal = .sff.allPalFX~getFxPal(pal, false); | |
277 | + if(.sff.allPalFX~enable) pal = .sff.allPalFX~getFxPal(pal, false); | |
278 | 278 | txt:<-[void(c){ |
279 | 279 | dx += |
280 | 280 | `drawChar(dx, dy, xscl, yscl, bank, c, pal=) + (float)`spacingx*xscl; |