home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global Percorso, Psuoni, Posserva, Pombre, Pcasse, Macchina, Nfile, num, qombra, finito, segno, voce, Lingua
- updateStage()
- nascondi()
- go("luce")
- set Psuoni to Percorso & "Snd" & segno
- if Lingua = 0 then
- set Pombre to Percorso & "Snd" & segno & "osserva" & segno & "ombre" & segno
- set Pcasse to Percorso & "Snd" & segno & "osserva" & segno & "suoni" & segno
- set Posserva to Percorso & "Snd" & segno & "osserva" & segno
- else
- set Pombre to Percorso & "Snd" & segno & "osserva" & segno & "ombre" & segno & "ing" & segno
- set Pcasse to Percorso & "Snd" & segno & "osserva" & segno & "suoni" & segno & "ing" & segno
- set Posserva to Percorso & "Snd" & segno & "osserva" & segno & "ing" & segno
- end if
- set qombra to 0
- set finito to 0
- set voce to Lingua & 0
- voce()
- end
-
- on pigia
- global Psuoni
- sound playFile 1, Psuoni & "click.aif"
- end
-
- on Sbagliato
- global Psuoni
- sound playFile 1, Psuoni & "nyuk1.aif"
- end
-
- on giusto
- global Psuoni
- sound playFile 1, Psuoni & "Evviva.aif"
- end
-
- on alleluia
- global Psuoni, Lingua, segno
- if Lingua = 0 then
- sound playFile 1, Psuoni & "stacco.aif"
- else
- sound playFile 1, Psuoni & "ing" & segno & "stacco.aif"
- end if
- end
-
- on nascondi
- repeat with n = 2 to 9
- set the visible of sprite n to 0
- end repeat
- repeat with n = 18 to 27
- set the visible of sprite n to 0
- end repeat
- repeat with n = 28 to 42
- set the visible of sprite n to 0
- end repeat
- updateStage()
- end
-
- on pulsante
- global altezza, larghezza
- set altezza to the mouseV
- set larghezza to the mouseH
- if the stillDown then
- if (larghezza > 0) and (larghezza < 75) and (altezza > 0) and (altezza < 119) then
- set the visible of sprite 2 to 1
- updateStage()
- end if
- else
- set the visible of sprite 2 to 0
- end if
- end
-
- on mouseUp
- global larghezza, altezza, ombresprite, ombreloc, qombra, finito, dovero
- if qombra <> 0 then
- if (altezza < 377) and (altezza > 77) then
- if (larghezza < 474) and (larghezza > 346) and (qombra = 36) then
- set f to getPos(ombresprite, qombra)
- set a to ((f - 1) * 2) + 1
- set b to ((f - 1) * 2) + 2
- set c to getAt(ombresprite, 3)
- set d to getAt(ombreloc, 5)
- set e to getAt(ombreloc, 6)
- set the loc of sprite c to point(getAt(ombreloc, a), getAt(ombreloc, b))
- set the loc of sprite qombra to point(d, e)
- set dovero to 0
- setAt(ombresprite, 3, qombra)
- setAt(ombresprite, f, c)
- set the moveableSprite of sprite qombra to 0
- if (ombresprite = list(37, 38, 36)) and not finito then
- alleluia()
- repeat with n = 36 to 38
- set the moveableSprite of sprite n to 0
- end repeat
- set qombra to 0
- set finito to 1
- end if
- else
- if qombra = 36 then
- set f to getPos(ombresprite, qombra)
- set a to ((f - 1) * 2) + 1
- set b to ((f - 1) * 2) + 2
- set g to getAt(ombreloc, a)
- set h to getAt(ombreloc, b)
- set the loc of sprite qombra to point(g, h)
- set dovero to 0
- end if
- end if
- if (larghezza < 215) and (larghezza > 104) and (qombra = 37) then
- set f to getPos(ombresprite, qombra)
- set a to ((f - 1) * 2) + 1
- set b to ((f - 1) * 2) + 2
- set c to getAt(ombresprite, 1)
- set d to getAt(ombreloc, 1)
- set e to getAt(ombreloc, 2)
- set the loc of sprite c to point(getAt(ombreloc, a), getAt(ombreloc, b))
- set the loc of sprite qombra to point(d, e)
- set dovero to 0
- setAt(ombresprite, 1, qombra)
- setAt(ombresprite, f, c)
- set the moveableSprite of sprite qombra to 0
- if (ombresprite = list(37, 38, 36)) and not finito then
- alleluia()
- repeat with n = 36 to 38
- set the moveableSprite of sprite n to 0
- end repeat
- set qombra to 0
- set finito to 1
- end if
- else
- if qombra = 37 then
- set f to getPos(ombresprite, qombra)
- set a to ((f - 1) * 2) + 1
- set b to ((f - 1) * 2) + 2
- set g to getAt(ombreloc, a)
- set h to getAt(ombreloc, b)
- set the loc of sprite qombra to point(g, h)
- set dovero to 0
- end if
- end if
- if (larghezza > 215) and (larghezza < 346) and (qombra = 38) then
- set f to getPos(ombresprite, qombra)
- set a to ((f - 1) * 2) + 1
- set b to ((f - 1) * 2) + 2
- set c to getAt(ombresprite, 2)
- set d to getAt(ombreloc, 3)
- set e to getAt(ombreloc, 4)
- set the loc of sprite c to point(getAt(ombreloc, a), getAt(ombreloc, b))
- set the loc of sprite qombra to point(d, e)
- set dovero to 0
- setAt(ombresprite, 2, qombra)
- setAt(ombresprite, f, c)
- set the moveableSprite of sprite qombra to 0
- if (ombresprite = list(37, 38, 36)) and not finito then
- alleluia()
- repeat with n = 36 to 38
- set the moveableSprite of sprite n to 0
- end repeat
- set qombra to 0
- set finito to 1
- end if
- else
- if qombra = 38 then
- set f to getPos(ombresprite, qombra)
- set a to ((f - 1) * 2) + 1
- set b to ((f - 1) * 2) + 2
- set g to getAt(ombreloc, a)
- set h to getAt(ombreloc, b)
- set the loc of sprite qombra to point(g, h)
- set dovero to 0
- end if
- end if
- else
- if (qombra > 35) and (qombra < 39) then
- set the rect of sprite qombra to dovero
- set dovero to EMPTY
- end if
- end if
- end if
- end
-
- on crocitazze
- repeat with i = 28 to 35
- puppetSprite(i, 1)
- end repeat
- set the loc of sprite 28 to point(443, 84)
- set the loc of sprite 29 to point(409, 74)
- set the loc of sprite 30 to point(394, 105)
- set the loc of sprite 31 to point(430, 178)
- set the loc of sprite 32 to point(366, 263)
- set the loc of sprite 33 to point(331, 213)
- set the loc of sprite 34 to point(317, 270)
- set the loc of sprite 35 to point(433, 74)
- end
-
- on crocidadi
- repeat with i = 28 to 35
- puppetSprite(i, 1)
- end repeat
- set the loc of sprite 28 to point(309, 168)
- set the loc of sprite 29 to point(420, 121)
- set the loc of sprite 30 to point(434, 173)
- set the loc of sprite 31 to point(397, 237)
- set the loc of sprite 32 to point(401, 133)
- set the loc of sprite 33 to point(354, 151)
- set the loc of sprite 34 to point(297, 195)
- set the loc of sprite 35 to point(425, 149)
- end
-
- on crocigente
- repeat with i = 28 to 35
- puppetSprite(i, 1)
- end repeat
- set the loc of sprite 28 to point(443, 125)
- set the loc of sprite 29 to point(337, 139)
- set the loc of sprite 30 to point(307, 139)
- set the loc of sprite 31 to point(303, 203)
- set the loc of sprite 32 to point(388, 175)
- set the loc of sprite 33 to point(355, 194)
- set the loc of sprite 34 to point(333, 164)
- set the loc of sprite 35 to point(306, 254)
- end
-
- on crocitigre
- repeat with i = 28 to 35
- puppetSprite(i, 1)
- end repeat
- set the loc of sprite 28 to point(429, 119)
- set the loc of sprite 29 to point(445, 133)
- set the loc of sprite 30 to point(319, 140)
- set the loc of sprite 31 to point(333, 166)
- set the loc of sprite 32 to point(344, 218)
- set the loc of sprite 33 to point(292, 207)
- set the loc of sprite 34 to point(308, 231)
- set the loc of sprite 35 to point(416, 212)
- end
-
- on crocitELEFONI
- repeat with i = 28 to 35
- puppetSprite(i, 1)
- end repeat
- set the loc of sprite 28 to point(376, 138)
- set the loc of sprite 29 to point(376, 118)
- set the loc of sprite 30 to point(374, 191)
- set the loc of sprite 31 to point(297, 147)
- set the loc of sprite 32 to point(353, 225)
- set the loc of sprite 33 to point(326, 245)
- set the loc of sprite 34 to point(405, 234)
- set the loc of sprite 35 to point(436, 195)
- end
-