|   FORUM      |     Tutoriales    |     KIO4 |      
   Start B4A (Basic4Android) App inventor 2 Arduino
   Elastix - VoIP Things of Windows Interesting Webs  Telecomunications

 


Nuevo concurso para España, Argentina, Brasil, Chile, Colombia, Ecuador, México, Perú y Portugal.

App Inventor 2
Programming mobi
le 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.

__________________________________

 

- My e-mail:
juana1991@yahoo.com
- Who I am. - Cookies. Texts and images propierty autor:
© Juan A. Villalpando
Not copy texts neither images.
We use our own cookies and third-party cookies on our websites to maintain the session and your preferences, customize your user experience and obtain website use statistics.
Si continúa navegando consideramos que acepta su uso. OK    Más información