home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR9
/
EUPHOR10.ZIP
/
SOUNDEFF.E
< prev
next >
Wrap
Text File
|
1993-01-20
|
1KB
|
62 lines
-- soundeff.e: Sound Effects
without warning
global procedure sounde(positive_int effect,
positive_int duration,
positive_int nreps)
-- special sound effects
-- do nothing for now
end procedure
with warning
global procedure errbeep()
-- error signal
sound(1000)
delay(0.1)
sound(0)
end procedure
global procedure explosion_sound()
-- something is destroyed
for i = 5000 to 10 by -150 do
sound(rand(i))
delay(0.01)
end for
for i = 10 to 100 by 3 do
sound(rand(i))
delay(0.01)
end for
sound(0)
end procedure
global procedure phasor_sound(atom n)
-- phasor hits enemy with n-unit blast
for i = 1 to 5 + n/200 do
sound(1000)
delay(0.025)
sound(3000)
delay(0.025)
end for
sound(0)
end procedure
global procedure torpedo_sound()
-- torpedo hits enemy
sound(150)
delay(0.25)
sound(0)
end procedure
global procedure docking_sound()
-- Enterprise successfully docks with a planet or base
for i = 1 to 3 do
sound(2000)
delay(0.07)
sound(5000)
delay(0.07)
end for
sound(0)
end procedure