ONE BUTTON APP

Inspiration

My inspiration comes from a game. The rules of the game are to choose from three directions: up, left, right. The head of the human cannot be aligned with the direction of the opponent's hand.

 
 

UI design

I designed the interface of the game in Sketch

 
 

​code

link

I named the photos pointed by three fingers as "4.jpg", "5.jpg", "6.jpg", and then used a random number generation function to randomly select one of the three photos and put them into ImageNames [4 ].

 
 
 

©2020 by Siyuan Zan. Proudly created with Wix.com