• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签

Frequently used words (click to add to your profile)

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

Go で書き直した Ikemen


Commit MetaInfo

修订版07f269f63dfa05e26a65687d7600c6d03a259fad (tree)
时间2017-01-03 01:33:53
作者SUEHIRO <supersuehiro@user...>
CommiterSUEHIRO

Log Message

評価順を固定

更改概述

差异

--- a/src/bytecode.go
+++ b/src/bytecode.go
@@ -2097,7 +2097,8 @@ func (sc explod) Run(c *Char, _ []int32) bool {
20972097 case explod_removeongethit:
20982098 e.removeongethit = exp[0].evalB(c)
20992099 case explod_trans:
2100- e.alpha = [2]int32{exp[0].evalI(c), exp[1].evalI(c)}
2100+ e.alpha[0] = exp[0].evalI(c)
2101+ e.alpha[1] = exp[1].evalI(c)
21012102 if len(exp) >= 3 {
21022103 e.alpha[0] = Max(0, Min(255, e.alpha[0]))
21032104 e.alpha[1] = Max(0, Min(255, e.alpha[1]))
@@ -2437,11 +2438,17 @@ func (sc palFX) runSub(c *Char, pfd *PalFXDef,
24372438 case palFX_color:
24382439 pfd.color = MaxF(0, MinF(1, exp[0].evalF(c)/256))
24392440 case palFX_add:
2440- pfd.add = [3]int32{exp[0].evalI(c), exp[1].evalI(c), exp[2].evalI(c)}
2441+ pfd.add[0] = exp[0].evalI(c)
2442+ pfd.add[1] = exp[1].evalI(c)
2443+ pfd.add[2] = exp[2].evalI(c)
24412444 case palFX_mul:
2442- pfd.mul = [3]int32{exp[0].evalI(c), exp[1].evalI(c), exp[2].evalI(c)}
2445+ pfd.mul[0] = exp[0].evalI(c)
2446+ pfd.mul[1] = exp[1].evalI(c)
2447+ pfd.mul[2] = exp[2].evalI(c)
24432448 case palFX_sinadd:
2444- pfd.sinadd = [3]int32{exp[0].evalI(c), exp[1].evalI(c), exp[2].evalI(c)}
2449+ pfd.sinadd[0] = exp[0].evalI(c)
2450+ pfd.sinadd[1] = exp[1].evalI(c)
2451+ pfd.sinadd[2] = exp[2].evalI(c)
24452452 if len(exp) > 3 {
24462453 pfd.cycletime = exp[3].evalI(c)
24472454 }
@@ -3848,7 +3855,8 @@ func (sc trans) Run(c *Char, _ []int32) bool {
38483855 StateControllerBase(sc).run(c, func(id byte, exp []BytecodeExp) bool {
38493856 switch id {
38503857 case trans_trans:
3851- c.alpha = [2]int32{exp[0].evalI(c), exp[1].evalI(c)}
3858+ c.alpha[0] = exp[0].evalI(c)
3859+ c.alpha[1] = exp[1].evalI(c)
38523860 if len(exp) >= 3 {
38533861 c.alpha[0] = Max(0, Min(255, c.alpha[0]))
38543862 c.alpha[1] = Max(0, Min(255, c.alpha[1]))