Skip to content

Latest commit

 

History

History
37 lines (19 loc) · 1.01 KB

File metadata and controls

37 lines (19 loc) · 1.01 KB

IOS-SWIFT-Animation-RIsk-Dice

Swift, IOS

Animtion

  • CGAffineTransform
  • scale
  • rotationAngle
  • translationX
  • UIButtonExtension

Simulator Screen Shot

Risk Dice

This projet is personnal, i love to play Risk, and i wanted to learn animation in Swift.
Created a UIButton Extension with function for animation (shake, pulse, flash).
Created func for animate the dice (rotate, scale, translationX).
So when you press the attack or defense button the buttons and the dices will start to be animate.

Screenshot

Simulator Screen Shot


UIButtonExtension

Capture d’écran 2020-02-11 à 15 55 46