Magic 8-Ball

Componenti

ComponenteProprietàValore
ScreenScreen1TitleMagic 8-Ball 1
User Interface > ButtonButton1Imageimage_8_ball.jpg
User Interface > LabelLabel1TextAsk the Magic 8-Ball a question
User Interface > LabelLabel2TextTouch the Magic 8-Ball to receive yor answer
Media > PlayerPlayer1SourceClinking_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.

ComponenteProprietàValore
ScreenScreen1TitleMagic 8-Ball 2
Draw and Animation > ImageImage1Pictureimage_8_ball.jpg
User Interface > LabelLabel1TextAsk the Magic 8-Ball a question
User Interface > LabelLabel2TextTouch the Magic 8-Ball to receive yor answer
Sensing > AccelerometerSensorAccelerometerSensor1
Media > PlayerPlayer1SourceClinking_Teaspoon.mp3

Blocchi

Sostituisce l’evento del pulsante


Vedi: http://appinventor.mit.edu/explore/ai2/magic-8-ball

???

  1. Grassetto, corsivo, font, colori, …
  2. Animazione della palla (rotazione)
  3. Un numero per ogni frase
  4. TextToSpeech per pronunciare la frase

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.