App Inventor 2
Programming mobile phones with Android
by App Inventor 2 - Juan Antonio Villalpando
- Initiation Tutorial App Inventor 2 -
Return to tutorial index
____________________________
52.- Rock, paper, scissors.
ip52_rock_paper_scissors
- Presentation.
- Game Rock, Paper, Scissors.
- In other countries: jankenpon, dum-kin-go, yan ken po, bun chis potatoes, hakembó, chin-chan-pu or kokepon.
- Check Wikipedia .
________________________________________
- Rock, paper, scissors.
ip52_rock_paper_scissors
- Here is the game of rock, paper, scissors. The player presses one of the three hands are at the bottom of the screen are buttons.
- When you press a button mobile puts a picture in the picture above, as are the drawings of mobile and player, so will be the result .
|
|
_________________
Design
- Size Images, Width: 80 and High: 113
- Size Buttons, Width: 70 and High: 118
- On the buttons put different images of hand.
- In Image1 and Image2 not put anything in the design.
- Dispositons occupying the entire container.
Images files:
- These images are resized in the code.
- Yes, I know have made him very strange names.
_________________
Blocks
- With this code we get the hands of the buttons change color (brown-light brown-dark) when the press:
- Well, these are programs of learning, initiation, in this case you can improve by putting sounds, bookmarks, other drawings, even instead of pressing a button the user issues a voice message: rock, paper, scissors.
__________________________________
|