• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版c181368b29bbfd8ad1ccd7cd76982ee939d66cf5 (tree)
时间2017-01-27 21:34:34
作者SUEHIRO <supersuehiro@user...>
CommiterSUEHIRO

Log Message

allpalfxのフォントの表示の修正と、xscaleがマイナスのときの処理の修正

更改概述

差异

--- a/ssz/action.ssz
+++ b/ssz/action.ssz
@@ -175,24 +175,21 @@ public &DrawnClsn
175175 y = `y + `yscale*(float)`clsn[i].t + (float)(.com.GameHeight-240);
176176 w = (float)`clsn[i].r - (float)`clsn[i].l;
177177 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;
182179 if(`yscale < 0.0) y *= -1.0;
183180 /?/*.cfg.OpenGL:
184181 .sdl.RenderMugenGl(:
185182 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=,
187184 `xscale*.com.WidthScale*w, `xscale*.com.WidthScale*w,
188185 `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:);
190187 /*true:
191188 {
192189 %byte dammy;
193190 .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=,
196193 `xscale*.com.WidthScale*w, `xscale*.com.WidthScale*w,
197194 `yscale*.com.WidthScale*h, 0.0, 0d0, alpha, spr.rle, spr.pluginbuf=);
198195 }
--- a/ssz/char.ssz
+++ b/ssz/char.ssz
@@ -1884,9 +1884,10 @@ public &Projectile
18841884 ^&.act.Rect clsn1 = pr.ani~ani.currentFrame()=>frm$frm~clsn2();
18851885 ^&.act.Rect clsn2 = `ani~ani.currentFrame()=>frm$frm~clsn2();
18861886 &.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);
18901891 loop{index i = 0; while; do:
18911892 loop{index j = 0; while; do:
18921893 if(ch.hantei(clsn1[i], clsn2[j])) ret true;
@@ -2874,12 +2875,12 @@ public &Char
28742875 ^&.act.Rect clsn1 = c1atk ? atk.curFrame~clsn1() : atk.curFrame~clsn2();
28752876 ^&.act.Rect clsn2 = c1slf ? `curFrame~clsn1() : `curFrame~clsn2();
28762877 &.ClsnHantei ch.set(
2877- atk.sysfvar[.fCLSNXSCALE], atk.sysfvar[.fCLSNYSCALE],
2878+ #atk.sysfvar[.fCLSNXSCALE], atk.sysfvar[.fCLSNYSCALE],
28782879 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],
28812882 `sysfvar[.fX] + `offsetX(), `sysfvar[.fY] + `offsetY(),
2882- `facing > 0 ? .pLrSet : .mLrSet);
2883+ (float)`facing*`sysfvar[.fCLSNXSCALE] > 0.0 ? .pLrSet : .mLrSet);
28832884 loop{index i = 0; while; do:
28842885 loop{index j = 0; while; do:
28852886 if(ch.hantei(clsn1[i], clsn2[j])) ret true;
@@ -2900,11 +2901,11 @@ public &Char
29002901 ^&.act.Rect clsn1 = pr.ani~ani.currentFrame()=>frm$frm~clsn1();
29012902 ^&.act.Rect clsn2 = `curFrame~clsn2();
29022903 &.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],
29062907 `sysfvar[.fX] + `offsetX(), `sysfvar[.fY] + `offsetY(),
2907- `facing > 0 ? .pLrSet : .mLrSet);
2908+ (float)`facing*`sysfvar[.fCLSNXSCALE] > 0.0 ? .pLrSet : .mLrSet);
29082909 loop{index i = 0; while; do:
29092910 loop{index j = 0; while; do:
29102911 if(ch.hantei(clsn1[i], clsn2[j])) ret true;
@@ -2923,11 +2924,11 @@ public &Char
29232924 ^&.act.Rect clsn1 = pr.ani~ani.currentFrame()=>frm$frm~clsn2();
29242925 ^&.act.Rect clsn2 = `curFrame~clsn1();
29252926 &.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],
29292930 `sysfvar[.fX] + `offsetX(), `sysfvar[.fY] + `offsetY(),
2930- `facing > 0 ? .pLrSet : .mLrSet);
2931+ (float)`facing*`sysfvar[.fCLSNXSCALE] > 0.0 ? .pLrSet : .mLrSet);
29312932 loop{index i = 0; while; do:
29322933 loop{index j = 0; while; do:
29332934 if(ch.hantei(clsn1[i], clsn2[j])) ret true;
--- a/ssz/fighting.ssz
+++ b/ssz/fighting.ssz
@@ -137,8 +137,8 @@ void game()
137137 {
138138 void put(float y=, ^/char txt)
139139 {
140- int tmp = .sff.allPalFX~time;
141- .sff.allPalFX~time = 0;
140+ bool tmp = .sff.allPalFX~enable;
141+ .sff.allPalFX~enable = false;
142142 loop{
143143 ^/char t = txt;
144144 index i;
@@ -156,7 +156,7 @@ void game()
156156 1.0/.com.WidthScale, 1.0/.com.HeightScale, 0, 1, t[0..i]);
157157 t = t[i..-1];
158158 while #t > 0:}
159- .sff.allPalFX~time = tmp;
159+ .sff.allPalFX~enable = tmp;
160160 }
161161 %char line;
162162 void drawDebug()
--- a/ssz/font.ssz
+++ b/ssz/font.ssz
@@ -274,7 +274,7 @@ public &Font
274274 dx -= (float)`textWidth(txt)*xscl;
275275 }
276276 ^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);
278278 txt:<-[void(c){
279279 dx +=
280280 `drawChar(dx, dy, xscl, yscl, bank, c, pal=) + (float)`spacingx*xscl;