• 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

修订版bc923fd469bf51ce4d655692b10504a70c9b1ecc (tree)
时间2018-12-20 23:13:11
作者neatunsou <sisiy4excite@gmai...>
Commiterneatunsou

Log Message

ミスがあったので修正

更改概述

差异

--- a/src/anim.go
+++ b/src/anim.go
@@ -539,6 +539,9 @@ func (a *Animation) UpdateSprite() {
539539 if a.drawidx+1 == i {
540540 a.interpolate_blend_srcalpha += (float32(a.frames[a.drawidx+1].SrcAlpha) - a.interpolate_blend_srcalpha) / float32(a.curFrame().Time) * float32(a.time)
541541 a.interpolate_blend_dstalpha += (float32(a.frames[a.drawidx+1].DstAlpha) - a.interpolate_blend_dstalpha) / float32(a.curFrame().Time) * float32(a.time)
542+ if byte(a.interpolate_blend_srcalpha) == 1 && byte(a.interpolate_blend_dstalpha) == 255 {
543+ a.interpolate_blend_srcalpha = 0
544+ }
542545 break
543546 }
544547 }
@@ -600,9 +603,6 @@ func (a *Animation) alpha() int32 {
600603 } else {
601604 sa = byte(a.interpolate_blend_srcalpha)
602605 da = byte(a.interpolate_blend_dstalpha)
603- if sa == 1 && da == 255 {
604- sa = 0
605- }
606606 }
607607 if sa == 1 && da == 255 {
608608 return -2