| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
by Song
흐름도
연속 입력 성공 시 피버 모드로 진입
enum GameSetting {
static let feverGaugeMax = 20
static let feverTime = 10
}피버 모드 진입 시 전용 Time View 노출
피버 모드 중 배경 레이어 애니메이션 구현
final class GameBackgroundView: ReplicateAnimationView {
func startFever() {
backgroundAnimation(duration: 5, colors: feverColors, repeatCount: .infinity)
draw(withImage: .fever, countPerLine: 2.5) // superclass의 메소드
}
func stopFever() {
layer.sublayers?.forEach({ sublayer in
sublayer.removeFromSuperlayer()
})
}
}결과
created by 우송
Sorry, there was an error rendering this page.
| Back | FazBrowse Home | New Git URL |