home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global altezza, larghezza, oksuono, Pcasse, pOggetti
- set larghezza to the mouseH
- set altezza to the mouseV
- if soundBusy(1) then
- sound stop 1
- end if
- if oksuono = 0 then
- if (larghezza > 104) and (larghezza < 215) and (altezza > 47) and (altezza < 171) then
- set pOggetti to "piano"
- set indovinato to 0
- end if
- if (larghezza > 355) and (larghezza < 436) and (altezza > 51) and (altezza < 155) then
- set pOggetti to "pallonc"
- set indovinato to 0
- end if
- if (larghezza > 194) and (larghezza < 349) and (altezza > 167) and (altezza < 234) then
- set pOggetti to "treno"
- set indovinato to 1
- set oksuono to 1
- end if
- if (larghezza > 117) and (larghezza < 197) and (altezza > 254) and (altezza < 334) then
- set pOggetti to "bicch"
- set indovinato to 0
- end if
- if (larghezza > 374) and (larghezza < 448) and (altezza > 232) and (altezza < 331) then
- set pOggetti to "cane"
- set indovinato to 0
- end if
- sound playFile 1, Pcasse & pOggetti & ".aif"
- tieni()
- set pOggetti to EMPTY
- if indovinato = 1 then
- giusto()
- end if
- if indovinato = 0 then
- Sbagliato()
- end if
- end if
- end
-