
Componenti
Componente | Proprietà | Valore | |
---|---|---|---|
Screen | Screen1 | Title | Magic 8-Ball 1 |
User Interface > Button | Button1 | Image | image_8_ball.jpg |
User Interface > Label | Label1 | Text | Ask the Magic 8-Ball a question |
User Interface > Label | Label2 | Text | Touch the Magic 8-Ball to receive yor answer |
Media > Player | Player1 | Source | Clinking_Teaspoon.mp3 |


Clinking_Teaspoon.mp3 / Cha_Ching.mp3
Blocchi
Crea una lista con 8 frasi fatte

Ogni volta che la palla viene toccata viene emesso un suono e appare una frase a caso


Componenti
Per utilizzare la palla magica è sufficiente agitare il dispositivo (tramite AccelerometerSensor).
Button viene sostituito da Image.
Componente | Proprietà | Valore | |
---|---|---|---|
Screen | Screen1 | Title | Magic 8-Ball 2 |
Draw and Animation > Image | Image1 | Picture | image_8_ball.jpg |
User Interface > Label | Label1 | Text | Ask the Magic 8-Ball a question |
User Interface > Label | Label2 | Text | Touch the Magic 8-Ball to receive yor answer |
Sensing > AccelerometerSensor | AccelerometerSensor1 | ||
Media > Player | Player1 | Source | Clinking_Teaspoon.mp3 |
Blocchi
Sostituisce l’evento del pulsante

Vedi: http://appinventor.mit.edu/explore/ai2/magic-8-ball
???
- Grassetto, corsivo, font, colori, …
- Animazione della palla (rotazione)
- Un numero per ogni frase
- TextToSpeech per pronunciare la frase
- …